1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
maintainer/commiter timeout (1 year)
This commit is contained in:
Dirk Meyer 2003-06-27 04:30:46 +00:00
parent ff0af8db03
commit f432bf4579
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83714
2 changed files with 8 additions and 6 deletions

View File

@ -102,6 +102,8 @@ MAKEFILE= makefile
post-extract:
@${REINPLACE_CMD} -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
@ -128,7 +130,7 @@ post-install:
fi
@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>

View File

@ -1,9 +1,6 @@
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
PREFIX=%%PREFIX%%
case "$1" in
start)
@ -18,8 +15,11 @@ stop)
#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