FreeBSD Bugzilla – Attachment 21688 Details for
Bug 37917
[PATCH] squid24 does not support local_startup in rc.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.83 KB, created by
dirk.meyer
on 2002-05-10 07:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dirk.meyer
Created:
2002-05-10 07:10:01 UTC
Size:
1.83 KB
patch
obsolete
>--- squid24/Makefile Sat Mar 23 05:38:35 2002 >+++ squid24/Makefile Sat Apr 20 17:22:40 2002 >@@ -95,6 +95,9 @@ > > post-extract: > @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure >+ @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/squid.sh \ >+ > ${WRKSRC}/squid.sh >+ > > post-install: > # I don't think many people use the pinger nowadays, and if you >@@ -117,7 +120,7 @@ > ${CHOWN} nobody:nogroup ${PREFIX}/squid/cache > @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ > ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ >- ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ >+ ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ > fi > > .include <bsd.port.mk> >diff squid24/files/squid.sh squid24/files/squid.sh >--- squid24/files/squid.sh Sat Sep 1 10:34:14 2001 >+++ squid24/files/squid.sh Sun Apr 21 05:58:19 2002 >@@ -1,25 +1,23 @@ > #!/bin/sh > >-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >- echo "$0: Cannot determine the PREFIX" >&2 >- exit 1 >-fi >- > case "$1" in > start) >- if [ -x ${PREFIX}/sbin/squid -a -f ${PREFIX}/etc/squid/squid.conf ]; then >- (cd /${PREFIX}/squid/logs; ${PREFIX}/sbin/squid >/dev/null 2>&1 &) ; echo -n ' squid' >+ if [ -x %%PREFIX%%/sbin/squid -a -f %%PREFIX%%/etc/squid/squid.conf ]; then >+ (cd /%%PREFIX%%/squid/logs; %%PREFIX%%/sbin/squid >/dev/null 2>&1 &) ; echo -n ' squid' > fi > ;; > stop) >- ${PREFIX}/sbin/squid -k shutdown 2>&1 >+ %%PREFIX%%/sbin/squid -k shutdown 2>&1 > # Uncomment this if you'd like the system to (attempt to > # wait for) squid to shut down cleanly > #echo "Sleeping for 45 seconds to allow squid to shutdown.." > #sleep 45 > ;; >+restart) >+ %%PREFIX%%/sbin/squid -k reconfigure >+ ;; > *) >- echo "Usage: `basename $0` {start|stop}" >&2 >+ echo "Usage: `basename $0` {start|stop|restart}" >&2 > ;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37917
: 21688