wok-next diff squid/receipt @ rev 20177
Up sctp-tools (1.0.17), sg3_utils (1.42), squid (3.5.27), strigi (0.7.8), unixODBC (2.3.4), vcdimager (0.7.24)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 02 09:14:23 2017 +0100 (2017-11-02) |
parents | 9e01bc6321ea |
children | 66ea853c51e4 |
line diff
1.1 --- a/squid/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/squid/receipt Thu Nov 02 09:14:23 2017 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="squid" 1.8 -VERSION="3.4.2" 1.9 +VERSION="3.5.27" 1.10 CATEGORY="network" 1.11 SHORT_DESC="Web/ftp proxy." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 @@ -9,16 +9,13 @@ 1.14 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 WEB_SITE="http://www.squid-cache.org/" 1.16 WGET_URL="${WEB_SITE}Versions/v3/${VERSION%.*}/$TARBALL" 1.17 -CONFIG_FILES="/etc/squid" 1.18 1.19 -DEPENDS="libsasl libldap libssl libltdl" 1.20 BUILD_DEPENDS="perl openssl-dev openldap-dev cyrus-sasl-dev libcap-dev" 1.21 -SUGGESTED="iptables" 1.22 +SPLIT="squid squid-auth-helpers squid-langpack" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 - cd $src 1.28 ./configure \ 1.29 --prefix=/usr \ 1.30 --sysconfdir=/etc/squid \ 1.31 @@ -52,39 +49,44 @@ 1.32 # Rules to gen a SliTaz package suitable for Tazpkg. 1.33 genpkg_rules() 1.34 { 1.35 - mkdir -p $fs/usr/share/squid/errors $fs/var/cache/squid $fs/var/log/squid \ 1.36 - $fs/usr/lib/squid $fs/etc/squid/conf.d 1.37 + case $PACKAGE in 1.38 + squid) 1.39 + CONFIG_FILES="/etc/squid" 1.40 + DEPENDS="libsasl libldap libssl libltdl" 1.41 + SUGGESTED="iptables" 1.42 + mkdir -p $fs/usr/share/squid/errors $fs/var/cache/squid \ 1.43 + $fs/var/log/squid $fs/usr/lib/squid $fs/etc/squid/conf.d 1.44 1.45 - touch $fs/var/log/squid/cache.log 1.46 + touch $fs/var/log/squid/cache.log 1.47 1.48 - cp -a $install/etc $fs 1.49 - rm -rf $fs/etc/squid/*.default 1.50 - cp -a $stuff/etc $fs 1.51 + cp -a $install/etc $fs 1.52 + rm -rf $fs/etc/squid/*.default 1.53 + cp -a $stuff/etc $fs 1.54 1.55 - cp -a $install/var $fs 1.56 - cp -a $install/usr/bin $fs/usr 1.57 - cp -a $install/usr/sbin $fs/usr 1.58 - cp -a $install/usr/lib/squid/* $fs/usr/lib/squid 1.59 + cp -a $install/var $fs 1.60 + cp -a $install/usr/bin $fs/usr 1.61 + cp -a $install/usr/sbin $fs/usr 1.62 + cp -a $install/usr/lib/squid/* $fs/usr/lib/squid 1.63 1.64 - # Remove auth libs 1.65 - rm -f $fs/usr/lib/squid/*_auth* 1.66 + # Remove auth libs 1.67 + rm -f $fs/usr/lib/squid/*_auth* 1.68 1.69 - cp -a $install/usr/share/squid/mib.txt $fs/usr/share/squid 1.70 - cp -a $install/usr/share/squid/icons $fs/usr/share/squid 1.71 - cp -a $install/usr/share/squid/errors/templates $fs/usr/share/squid/errors 1.72 - cp -a $install/usr/share/squid/errors/en* $fs/usr/share/squid/errors 1.73 - cp -a $install/usr/share/squid/errors/fr* $fs/usr/share/squid/errors 1.74 + cp -a $install/usr/share/squid/mib.txt $fs/usr/share/squid 1.75 + cp -a $install/usr/share/squid/icons $fs/usr/share/squid 1.76 + cp -a $install/usr/share/squid/errors/templates $fs/usr/share/squid/errors 1.77 + cp -a $install/usr/share/squid/errors/en* $fs/usr/share/squid/errors 1.78 + cp -a $install/usr/share/squid/errors/fr* $fs/usr/share/squid/errors 1.79 1.80 - sed -i \ 1.81 - -e 's/TAG: visible_hostname/TAG: visible_hostname\nvisible_hostname slitaz/' \ 1.82 - -e 's|^#cache_dir ufs /var/cache 100|cache_dir ufs /var/cache/squid 256|' \ 1.83 - -e 's|^#pid_filename /var/logs|pid_filename /var/run/squid.pid|' \ 1.84 - -e "s|^coredump_dir.*|coredump_dir /var/cache/squid|" \ 1.85 - -e 's|^# error_directory|error_directory /usr/share/squid/errors/French|' \ 1.86 - -e 's|^# error_directory|error_directory /usr/share/squid/errors/French|' \ 1.87 - $fs/etc/squid/squid.conf 1.88 + sed -i \ 1.89 + -e 's/TAG: visible_hostname/TAG: visible_hostname\nvisible_hostname slitaz/' \ 1.90 + -e 's|^#cache_dir ufs /var/cache 100|cache_dir ufs /var/cache/squid 256|' \ 1.91 + -e 's|^#pid_filename /var/logs|pid_filename /var/run/squid.pid|' \ 1.92 + -e "s|^coredump_dir.*|coredump_dir /var/cache/squid|" \ 1.93 + -e 's|^# error_directory|error_directory /usr/share/squid/errors/French|' \ 1.94 + -e 's|^# error_directory|error_directory /usr/share/squid/errors/French|' \ 1.95 + $fs/etc/squid/squid.conf 1.96 1.97 - cat <<EOF>>$fs/etc/squid/squid.conf 1.98 + cat <<EOF>>$fs/etc/squid/squid.conf 1.99 1.100 cache_effective_user squid 1.101 cache_effective_group squid 1.102 @@ -95,10 +97,26 @@ 1.103 1.104 include /etc/squid/conf.d/*.conf 1.105 EOF 1.106 + ;; 1.107 + squid-auth-helpers) 1.108 + CAT="network|Web/ftp proxy." 1.109 + DEPENDS="squid libldap libsasl libssl libcrypto libkrb5 libcomerr3" 1.110 + mkdir -p $fs/usr/lib/squid 1.111 + cp -a $install/usr/lib/squid/*_auth* $fs/usr/lib/squid 1.112 + ;; 1.113 + squid-langpack) 1.114 + CAT="network|Web/ftp proxy language pack." 1.115 + DEPENDS="squid" 1.116 + mkdir -p $fs/usr/share 1.117 + cp -a $install/usr/share/squid/errors $fs/usr/share 1.118 + rm -rf $fs/usr/share/squid/errors/en* 1.119 + rm -rf $fs/usr/share/squid/errors/fr* 1.120 + ;; 1.121 + esac 1.122 } 1.123 1.124 # Pre and post install commands for Tazpkg. 1.125 -post_install() 1.126 +post_install_squid() 1.127 { 1.128 local user 1.129 local group 1.130 @@ -130,7 +148,7 @@ 1.131 } 1.132 1.133 1.134 -post_remove() 1.135 +post_remove_squid() 1.136 { 1.137 echo "Removing stalled files..." 1.138 test -d /var/cache/squid && rm -rf /var/cache/squid