freebsd-ports/www/squid/files/squid.in

61 lines
1.4 KiB
Text
Raw Normal View History

#!/bin/sh
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
#
# $FreeBSD$
#
# PROVIDE: squid
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
# Note:
# Set "squid_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
# /etc/rc.conf.d/squid to make this script actually do something. There
# you can also set squid_chdir, squid_pidfile, squid_user, and squid_flags.
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
#
# Please see squid(8), rc.conf(5) and rc(8) for further details.
#
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
squid_checkrunning() {
${command} ${squid_flags} -k check 2>/dev/null
}
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
squid_stop() {
echo "Stopping ${name}."
${command} ${squid_flags} -k shutdown
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
run_rc_command poll
}
. %%RC_SUBR%%
name=squid
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
rcvar=${name}_enable
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
command=%%PREFIX%%/sbin/squid
extra_commands=reload
reload_cmd="${command} ${squid_flags} -k reconfigure"
stop_precmd="squid_checkrunning"
stop_cmd="squid_stop"
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
load_rc_config ${name}
squid_chdir=${squid_chdir:-"%%PREFIX%%/squid/logs"}
squid_enable=${squid_enable:-"NO"}
squid_flags=${squid_flags-"-D"}
squid_pidfile=${squid_pidfile:-"%%PREFIX%%/squid/logs/squid.pid"}
squid_user=${squid_user:-%%SQUID_UID%%}
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
default_config=%%PREFIX%%/etc/squid/squid.conf
pidfile=${squid_pidfile}
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
required_dirs=${squid_chdir}
# squid(8) will not start if ${default_config} is not present so try
# to catch that beforehand via ${required_files} rather than make
# squid(8) crash.
# If you remove the default configuration file make sure to add
# '-f /path/to/your/squid.conf' to squid_flags
if [ -z "${squid_flags}" ]; then
required_files=${default_config}
- configure squid to run under a dedicated "squid" user by default; make use of SQUID_{UID,GID} which other squid-related ports already implemented. The user/group will be created on the fly if they do not already exist. - introduce WITH_SQUID_LDAP_AUTH to pull in the necessary bits to compile and use the ldap_auth helper - install some more authentication helper applications by default - install helper applications to ${PREFIX}/libexec/squid instead of ${PREFIX}/libexec, add notes about it in pkg-install and pkg-descr - cleanup the pre-installation tasks and move them from Makefile and pkg-plist into the pkg-install script; make 'make install' and 'pkg_add' actually do the same thing - introduce a pkg-deinstall script - make squid.sh rcNG compatible (when either /etc/rc_subr or ${PREFIX}/etc/rc_subr is present, the first one will be used, otherwise the script will work as a "rc classic" script so no additional dependency on the rc_subr port should be needed) - some Makefile cleanups: + the squid installation procedure now correctly strips binaries, so there is no need to do this manually anymore + generate those parts of pkg-plist dynamically that may be affected by user set tunables (currently the localized error pages and helper applications) + document the available configuration options in a slightly different style + remove some obsolete variable declarations and comments + honor NOPORTDOCS - add CONFLICTS - add another vendor patch, see http://www.squid-cache.org/bugs/show_bug.cgi?id=890 for a thorough explanation of what has been fixed. - since we can no longer take the presence of Lithuanian error pages for granted, wrap the workaround for the errorpages.patch with '.if exists()' - bump PORTREVISION PR: 61315 Submitted by: maintainer
2004-01-16 22:18:20 +01:00
fi
The squid developers have just released 2.6.STABLE1 as the new stable Squid release. Because of the large amount changes introduced in 2.6, we keep 2.5 as www/squid and make www/squid26. New OPTIONS: - WITH_/WITHOUT_SQUID_KQUEUE: use kqueue(2) support (defaults to yes) - WITH_/WITHOUT_SQUID_WCCPV2: enable WCCPv2 support (defaults to no) - WITH_/WITHOUT_SQUID_REFERER_LOG: enable referer-header logging (default no) - make WITH_DEBUG a synonym for WITH_SQUID_STACKTRACES Removed OPTIONS: - WITH_SQUID_CUSTOM_LOG: the code is now part of mainline squid and can be configured via squid.conf - WITH_/WITHOUT_SQUID_UNDERSCORES: no longer configurable - WITH_/WITHOUT_SQUID_CHECK_HOSTNAME: no longer configurable - WITH_/WITHOUT_SQUID_RCNG: the start script is now rc.d only Changed default: - CARP support is enabled by default in squid 2.6 and needs to be explicitly disabled defining WITHOUT_SQUID_CARP Port infrastructural changes: - no longer check for invalid user/group id; this problem should no longer be an issue (if it ever was one, but you never know) and remove the 'changeuser:' target - use files/squid.in instead of files/squid.sh.in as template - remove ancient information about Harvest from pkg-descr, tighten COMMENT - add some HTTP mirror sites taken from <http://www.squid-cache.org/Mirrors/http-mirrors.html> as additional PATCH_SITES (thanks to Robert Backhaus for the initial submission) - ICAP support is not yet available, the squid-devel CVS is not synchronized with mainline squid as I write this so mark WITH_SQUID_ICAP as IGNORE for now. I'll add the necessary patches ASAP. - spell "squid" as "Squid" when referring to the project as this seems to be the spelling the Squid project prefers - some cosmetic changes in macro definitions PR: ports/99750 Submitted by: Thomas-Martin Seck <tmseck_at_netcologne.de> (squid maintainer)
2006-07-09 17:20:10 +02:00
run_rc_command "$1"