diff options
author | pav <pav@FreeBSD.org> | 2004-07-26 00:30:43 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-07-26 00:30:43 +0800 |
commit | ef1b14e395af97cc3f2f6f4e582c396baa34f3eb (patch) | |
tree | 181d29fda6573a4f2f3b197b5e4b244b4aee3b19 | |
parent | 35f85bacb8477f2937ea06fb2ad3cd1a4e230974 (diff) | |
download | freebsd-ports-gnome-ef1b14e395af97cc3f2f6f4e582c396baa34f3eb.tar.gz freebsd-ports-gnome-ef1b14e395af97cc3f2f6f4e582c396baa34f3eb.tar.zst freebsd-ports-gnome-ef1b14e395af97cc3f2f6f4e582c396baa34f3eb.zip |
- Tweaks to RC script
- Fix dynamic plist generation to not include files that happen to be
in target directories. This prevents their removal on deinstallation
or upgrade.
PR: ports/69552, ports/69266
Submitted by: Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
-rw-r--r-- | www/squid/Makefile | 54 | ||||
-rw-r--r-- | www/squid/files/squid.sh | 5 | ||||
-rw-r--r-- | www/squid25/Makefile | 54 | ||||
-rw-r--r-- | www/squid25/files/squid.sh | 5 | ||||
-rw-r--r-- | www/squid26/Makefile | 54 | ||||
-rw-r--r-- | www/squid26/files/squid.sh | 5 | ||||
-rw-r--r-- | www/squid27/Makefile | 54 | ||||
-rw-r--r-- | www/squid27/files/squid.sh | 5 | ||||
-rw-r--r-- | www/squid30/Makefile | 54 | ||||
-rw-r--r-- | www/squid30/files/squid.sh | 5 | ||||
-rw-r--r-- | www/squid31/Makefile | 54 | ||||
-rw-r--r-- | www/squid31/files/squid.sh | 5 |
12 files changed, 282 insertions, 72 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid/files/squid.sh b/www/squid/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid/files/squid.sh +++ b/www/squid/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then diff --git a/www/squid25/Makefile b/www/squid25/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid25/Makefile +++ b/www/squid25/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid25/files/squid.sh b/www/squid25/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid25/files/squid.sh +++ b/www/squid25/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then diff --git a/www/squid26/Makefile b/www/squid26/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid26/Makefile +++ b/www/squid26/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid26/files/squid.sh b/www/squid26/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid26/files/squid.sh +++ b/www/squid26/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then diff --git a/www/squid27/Makefile b/www/squid27/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid27/Makefile +++ b/www/squid27/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid27/files/squid.sh b/www/squid27/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid27/files/squid.sh +++ b/www/squid27/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then diff --git a/www/squid30/Makefile b/www/squid30/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid30/Makefile +++ b/www/squid30/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid30/files/squid.sh b/www/squid30/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid30/files/squid.sh +++ b/www/squid30/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then diff --git a/www/squid31/Makefile b/www/squid31/Makefile index c678e215cbe2..180d38785736 100644 --- a/www/squid31/Makefile +++ b/www/squid31/Makefile @@ -74,7 +74,7 @@ PORTNAME= squid PORTVERSION= 2.5.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www MASTER_SITES= \ ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ @@ -145,6 +145,33 @@ PLIST_FILES= etc/rc.d/squid.sh etc/squid/mib.txt etc/squid/mime.conf.default \ etc/squid/msntauth.conf.default etc/squid/squid.conf.default \ sbin/RunAccel sbin/RunCache sbin/squidclient sbin/squid +icon_files= anthony-binhex.gif anthony-bomb.gif anthony-box.gif \ + anthony-box2.gif anthony-c.gif anthony-compressed.gif \ + anthony-dir.gif anthony-dirup.gif anthony-dvi.gif \ + anthony-f.gif anthony-image.gif anthony-image2.gif \ + anthony-layout.gif anthony-link.gif anthony-movie.gif \ + anthony-pdf.gif anthony-portal.gif anthony-ps.gif \ + anthony-quill.gif anthony-script.gif anthony-sound.gif \ + anthony-tar.gif anthony-tex.gif anthony-text.gif \ + anthony-unknown.gif anthony-xbm.gif anthony-xpm.gif + +error_files= ERR_ACCESS_DENIED ERR_CACHE_ACCESS_DENIED \ + ERR_CACHE_MGR_ACCESS_DENIED ERR_CANNOT_FORWARD \ + ERR_CONNECT_FAIL ERR_DNS_FAIL ERR_FORWARDING_DENIED \ + ERR_FTP_DISABLED ERR_FTP_FAILURE ERR_FTP_FORBIDDEN \ + ERR_FTP_NOT_FOUND ERR_FTP_PUT_CREATED \ + ERR_FTP_PUT_ERROR ERR_FTP_PUT_MODIFIED \ + ERR_FTP_UNAVAILABLE ERR_INVALID_REQ ERR_INVALID_URL \ + ERR_LIFETIME_EXP ERR_NO_RELAY ERR_ONLY_IF_CACHED_MISS \ + ERR_READ_ERROR ERR_READ_TIMEOUT ERR_SHUTTING_DOWN \ + ERR_SOCKET_FAILURE ERR_TOO_BIG ERR_UNSUP_REQ \ + ERR_URN_RESOLVE ERR_WRITE_ERROR ERR_ZERO_SIZE_OBJECT + +libexec= cachemgr.cgi digest_pw_auth diskd dnsserver ip_user_check \ + squid_ldap_auth squid_ldap_group msnt_auth ncsa_auth ntlm_auth \ + pam_auth pinger smb_auth smb_auth.sh squid_unix_group \ + unlinkd wb_auth wb_group wb_ntlmauth wbinfo_group.pl yp_auth + CONFIGURE_ARGS= --bindir=${PREFIX}/sbin --sysconfdir=${PREFIX}/etc/squid \ --datadir=${PREFIX}/etc/squid \ --libexecdir=${PREFIX}/libexec/squid \ @@ -323,17 +350,24 @@ post-install: @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL # Create package list: - @cd ${PREFIX} && ${FIND} libexec/squid -type f -o -type l | ${SORT} \ - >>${TMPPLIST} - @${ECHO_CMD} "@dirrm libexec/squid" >>${TMPPLIST} - @cd ${PREFIX} && ${FIND} etc/squid/icons -type f -o -type l | ${SORT} \ + @for f in ${libexec}; do \ + ${TEST} -f ${PREFIX}/libexec/squid/$${f} && \ + ${ECHO_CMD} "libexec/squid/$${f}" >>${TMPPLIST} || ${TRUE} ; \ + done + @${ECHO_CMD} "@unexec rmdir %D/libexec/squid 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/icons" >>${TMPPLIST} -.for d in ${SQUID_LANGUAGES} - @cd ${PREFIX} && ${FIND} etc/squid/errors/${d} -type f | ${SORT} \ + @for f in ${icon_files}; do \ + ${ECHO_CMD} "etc/squid/icons/$${f}" >>${TMPPLIST}; \ + done + @${ECHO_CMD} "@unexec rmdir %D/etc/squid/icons 2>/dev/null || true" \ >>${TMPPLIST} - @${ECHO_CMD} "@dirrm etc/squid/errors/${d}" >>${TMPPLIST} -.endfor + @for d in ${SQUID_LANGUAGES}; do \ + for f in ${error_files}; do \ + ${ECHO_CMD} "etc/squid/errors/$${d}/$${f}" >>${TMPPLIST} ; \ + done; \ + ${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors/$${d} 2>/dev/null || true" \ + >>${TMPPLIST}; \ + done @${ECHO_CMD} "@unexec rmdir %D/etc/squid/errors 2>/dev/null || true" \ >>${TMPPLIST} diff --git a/www/squid31/files/squid.sh b/www/squid31/files/squid.sh index 4102d27fbc11..d56db73352b5 100644 --- a/www/squid31/files/squid.sh +++ b/www/squid31/files/squid.sh @@ -5,7 +5,7 @@ # PROVIDE: squid # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON -# KEYWORD: FreeBSD +# KEYWORD: FreeBSD shutdown # # Note: # If you are running an rcNG-System (i.e. FreeBSD 5 and later) you need to set @@ -21,8 +21,9 @@ extra_commands=reload reload_cmd="${command} -k reconfigure" stop_cmd="${command} -k shutdown" squid_chdir=${squid_chdir:-%%PREFIX%%/squid/logs} -squid_user=${squid_user:-%%SQUID_UID%%} +squid_enable=${squid_enable:-"NO"} squid_flags=${squid_flags:-"-D"} +squid_user=${squid_user:-%%SQUID_UID%%} default_config=%%PREFIX%%/etc/squid/squid.conf if [ -f /etc/rc.subr ]; then |