diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2000-07-05 12:37:06 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2000-07-05 12:37:06 +0000 |
commit | 546041ba3113a4a58d8f3e7e7cb90e78fcb38ea8 (patch) | |
tree | 7b9cd553a62be7a9bd52800d334be8b703eb93a1 /www | |
parent | 01ab6da99c55af36e516b7f8016373124c4039cf (diff) | |
download | ports-546041ba3113a4a58d8f3e7e7cb90e78fcb38ea8.tar.gz ports-546041ba3113a4a58d8f3e7e7cb90e78fcb38ea8.zip |
Notes
Diffstat (limited to 'www')
53 files changed, 615 insertions, 120 deletions
diff --git a/www/adzapper/files/rc.adzapper.sh b/www/adzapper/files/rc.adzapper.sh index dae560de5241..b7949ad8646a 100644 --- a/www/adzapper/files/rc.adzapper.sh +++ b/www/adzapper/files/rc.adzapper.sh @@ -1,6 +1,19 @@ #!/bin/sh -if [ -f __PRERFIX__/etc/adzapper.conf ]; then - __PREFIX__/sbin/adzapper & - test $? -eq 0 && echo -n ' adzapper' -fi +case $1 in +start) + if [ -f __PREFIX__/etc/adzapper.conf ]; then + __PREFIX__/sbin/adzapper & + test $? -eq 0 && echo -n ' adzapper' + fi + ;; +stop) + killall adzapper && echo -n ' adzapper' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/apache13+ipv6/Makefile b/www/apache13+ipv6/Makefile index c1b0bec56d33..ed43b35cdc18 100644 --- a/www/apache13+ipv6/Makefile +++ b/www/apache13+ipv6/Makefile @@ -79,8 +79,6 @@ pre-configure: post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.post.mk> diff --git a/www/apache13+ipv6/files/apache.sh b/www/apache13+ipv6/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache13+ipv6/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache13-modssl/files/apache.sh b/www/apache13-modssl/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache13-modssl/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache13/Makefile b/www/apache13/Makefile index dd375e352db8..62259aaf3c63 100644 --- a/www/apache13/Makefile +++ b/www/apache13/Makefile @@ -63,9 +63,7 @@ MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.mk> diff --git a/www/apache13/files/apache.sh b/www/apache13/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache13/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache2/Makefile b/www/apache2/Makefile index dd375e352db8..62259aaf3c63 100644 --- a/www/apache2/Makefile +++ b/www/apache2/Makefile @@ -63,9 +63,7 @@ MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.mk> diff --git a/www/apache2/files/apache.sh b/www/apache2/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache2/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache20/Makefile b/www/apache20/Makefile index dd375e352db8..62259aaf3c63 100644 --- a/www/apache20/Makefile +++ b/www/apache20/Makefile @@ -63,9 +63,7 @@ MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.mk> diff --git a/www/apache20/files/apache.sh b/www/apache20/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache20/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache21/Makefile b/www/apache21/Makefile index dd375e352db8..62259aaf3c63 100644 --- a/www/apache21/Makefile +++ b/www/apache21/Makefile @@ -63,9 +63,7 @@ MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.mk> diff --git a/www/apache21/files/apache.sh b/www/apache21/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache21/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/apache22/Makefile b/www/apache22/Makefile index dd375e352db8..62259aaf3c63 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -63,9 +63,7 @@ MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include <bsd.port.mk> diff --git a/www/apache22/files/apache.sh b/www/apache22/files/apache.sh new file mode 100644 index 000000000000..619918254852 --- /dev/null +++ b/www/apache22/files/apache.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start > /dev/null && echo -n ' apache' + ;; +stop) + [ -r /var/run/httpd.pid ] && ${PREFIX}/apachectl stop > /dev/null && echo -n ' apache' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/httptunnel/files/httptunnel.sh b/www/httptunnel/files/httptunnel.sh index 153c3faa8754..c919064ea036 100644 --- a/www/httptunnel/files/httptunnel.sh +++ b/www/httptunnel/files/httptunnel.sh @@ -16,21 +16,35 @@ HTCPROXYBUFFER=1K # Buffer size for buffered proxies HTCBROWSER='Mozilla/4.7 [en] (X11; I; Linux 2.2.12 i386)' # Pretend to be this HTCARGS=-S # Any other arguments required -if [ -n "$HTSPORT" -a -x /usr/local/bin/hts ]; then - [ -n "$HTSFORWARD" ] && args="-F $HTSFORWARD" - [ -n "$HTSDEVICE" ] && args="-d $HTSDEVICE" - /usr/local/bin/hts $args $HTSPORT && echo -n ' hts' -fi +case $1 in +start) + if [ -n "$HTSPORT" -a -x $HTS ]; then + [ -n "$HTSFORWARD" ] && args="-F $HTSFORWARD" + [ -n "$HTSDEVICE" ] && args="-d $HTSDEVICE" + /usr/local/bin/hts $args $HTSPORT && echo -n ' hts' + fi -if [ -n "$HTCPORT" -a -x /usr/local/bin/htc ]; then - set -- - [ -n "$HTCFORWARD" ] && set -- -F $HTCFORWARD - [ -n "$HTCDEVICE" ] && set -- -d $HTCDEVICE - [ -n "$HTCBROWSER" ] && set -- -U "$HTCBROWSER" "$@" - if [ -n "$HTCPROXY" ]; then - [ -n "$HTCPROXYBUFFER" ] && set -- -B $HTCPROXYBUFFER "$@" - [ -n "$HTCPROXYAUTH" ] && set -- -A $HTCPROXYAUTH "$@" - set -- -P $HTCPROXY "$@" + if [ -n "$HTCPORT" -a -x $HTC ]; then + set -- + [ -n "$HTCFORWARD" ] && set -- -F $HTCFORWARD + [ -n "$HTCDEVICE" ] && set -- -d $HTCDEVICE + [ -n "$HTCBROWSER" ] && set -- -U "$HTCBROWSER" "$@" + if [ -n "$HTCPROXY" ]; then + [ -n "$HTCPROXYBUFFER" ] && set -- -B $HTCPROXYBUFFER "$@" + [ -n "$HTCPROXYAUTH" ] && set -- -A $HTCPROXYAUTH "$@" + set -- -P $HTCPROXY "$@" + fi + /usr/local/bin/htc "$@" $HTCARGS $HTCPORT && echo -n ' htc' fi - /usr/local/bin/htc "$@" $HTCARGS $HTCPORT && echo -n ' htc' -fi + ;; +stop) + killall htc && echo -n ' htc' + killall hts && echo -n ' hts' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/junkbuster-zlib/files/junkbuster.sh.in b/www/junkbuster-zlib/files/junkbuster.sh.in index d0b89028f6ad..9f3e639a9494 100644 --- a/www/junkbuster-zlib/files/junkbuster.sh.in +++ b/www/junkbuster-zlib/files/junkbuster.sh.in @@ -1,5 +1,19 @@ #!/bin/sh -test -d JDIR -a -x PREFIX/sbin/junkbuster -a -f JDIR/configfile || exit 1 -cd JDIR -su -m nobody -c "PREFIX/sbin/junkbuster configfile &" -echo -n " junkbuster" + +case $1 in +start) + test -d JDIR -a -x PREFIX/sbin/junkbuster -a -f JDIR/configfile || exit 1 + cd JDIR + su -m nobody -c "PREFIX/sbin/junkbuster configfile &" + echo -n " junkbuster" + ;; +stop) + killall junkbuster && echo -n " junkbuster" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/junkbuster/files/junkbuster.sh.in b/www/junkbuster/files/junkbuster.sh.in index d0b89028f6ad..9f3e639a9494 100644 --- a/www/junkbuster/files/junkbuster.sh.in +++ b/www/junkbuster/files/junkbuster.sh.in @@ -1,5 +1,19 @@ #!/bin/sh -test -d JDIR -a -x PREFIX/sbin/junkbuster -a -f JDIR/configfile || exit 1 -cd JDIR -su -m nobody -c "PREFIX/sbin/junkbuster configfile &" -echo -n " junkbuster" + +case $1 in +start) + test -d JDIR -a -x PREFIX/sbin/junkbuster -a -f JDIR/configfile || exit 1 + cd JDIR + su -m nobody -c "PREFIX/sbin/junkbuster configfile &" + echo -n " junkbuster" + ;; +stop) + killall junkbuster && echo -n " junkbuster" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/mathopd/Makefile b/www/mathopd/Makefile index 64e527abd0ed..146952e45843 100644 --- a/www/mathopd/Makefile +++ b/www/mathopd/Makefile @@ -23,9 +23,7 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mathopd .endif @if [ ! -f ${PREFIX}/etc/rc.d/mathopd.sh ]; then \ - ${ECHO} "#! ${SH}" > ${PREFIX}/etc/rc.d/mathopd.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/mathopd ] && ${PREFIX}/sbin/mathopd < ${PREFIX}/etc/mathopd.conf && ${ECHO} -n ' mathopd'" >> ${PREFIX}/etc/rc.d/mathopd.sh; \ - ${CHMOD} 440 ${PREFIX}/etc/rc.d/mathopd.sh; \ + ${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${PREFIX}/etc/rc.d/mathopd.sh; \ fi @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE} diff --git a/www/mathopd/files/mathopd.sh b/www/mathopd/files/mathopd.sh new file mode 100644 index 000000000000..eea3bacb5712 --- /dev/null +++ b/www/mathopd/files/mathopd.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/mathopd ] && ${PREFIX}/sbin/mathopd < ${PREFIX}/etc/mathopd.conf && echo -n ' mathopd' + ;; +stop) + killall mathopd && echo -n ' mathopd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/roxen/files/roxen.sh.in b/www/roxen/files/roxen.sh.in index 2ad784a42659..0ea626d2c349 100644 --- a/www/roxen/files/roxen.sh.in +++ b/www/roxen/files/roxen.sh.in @@ -1,7 +1,19 @@ #!/bin/sh roxen=%%PREFIX%%/roxen/server -if [ -x $roxen/start ]; then - ( cd $roxen; ./start --log-dir=/var/log/roxen ) > /dev/null - echo -n ' Roxen' -fi +case $1 in +start) + if [ -x $roxen/start ]; then + ( cd $roxen; ./start --log-dir=/var/log/roxen ) > /dev/null + echo -n ' Roxen' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/squid/Makefile b/www/squid/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid/files/squid.sh b/www/squid/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid22/Makefile b/www/squid22/Makefile index a1befca5c73d..84b00c8a5f8d 100644 --- a/www/squid22/Makefile +++ b/www/squid22/Makefile @@ -95,11 +95,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid22/files/squid.sh b/www/squid22/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid22/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid23/Makefile b/www/squid23/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid23/Makefile +++ b/www/squid23/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid23/files/squid.sh b/www/squid23/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid23/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid24/Makefile b/www/squid24/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid24/Makefile +++ b/www/squid24/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid24/files/squid.sh b/www/squid24/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid24/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid25/Makefile b/www/squid25/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid25/Makefile +++ b/www/squid25/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid25/files/squid.sh b/www/squid25/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid25/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid26/Makefile b/www/squid26/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid26/Makefile +++ b/www/squid26/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid26/files/squid.sh b/www/squid26/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid26/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid27/Makefile b/www/squid27/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid27/Makefile +++ b/www/squid27/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid27/files/squid.sh b/www/squid27/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid27/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid30/Makefile b/www/squid30/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid30/Makefile +++ b/www/squid30/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid30/files/squid.sh b/www/squid30/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid30/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/squid31/Makefile b/www/squid31/Makefile index 7595a8afd6f6..92a95b12339c 100644 --- a/www/squid31/Makefile +++ b/www/squid31/Makefile @@ -108,11 +108,7 @@ post-install: ${MKDIR} ${PREFIX}/squid/cache @if [ ! -f ${PREFIX}/etc/rc.d/squid.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/squid.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "if [ -x ${PREFIX}/sbin/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} " (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; ${ECHO} -n ' squid'" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/squid.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/squid.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/squid.sh ${PREFIX}/etc/rc.d/squid.sh; \ fi .include <bsd.port.mk> diff --git a/www/squid31/files/squid.sh b/www/squid31/files/squid.sh new file mode 100644 index 000000000000..e9a3144e8c93 --- /dev/null +++ b/www/squid31/files/squid.sh @@ -0,0 +1,21 @@ +#!/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/RunCache -a -f ${PREFIX}/etc/squid/squid.conf ]; then + (cd /tmp; ${PREFIX}/sbin/RunCache >/dev/null 2>&1 &) ; echo -n ' squid' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index ff4fb236a0ba..6b57a4e4b8ac 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -53,9 +53,7 @@ do-install: @${ECHO} "pidfile=/var/run/thttpd.pid" >> ${PREFIX}/etc/thttpd.conf.sample @if [ ! -f ${PREFIX}/etc/rc.d/thttpd.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/thttpd.sh startup file."; \ - ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/thttpd.sh; \ - ${ECHO} "[ -x ${PREFIX}/sbin/thttpd_wrapper ] && ${PREFIX}/sbin/thttpd_wrapper && ${ECHO} -n ' thttpd'" >> ${PREFIX}/etc/rc.d/thttpd.sh; \ - ${CHMOD} 751 ${PREFIX}/etc/rc.d/thttpd.sh; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/thttpd.sh ${PREFIX}/etc/rc.d/thttpd.sh; \ fi .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/thttpd diff --git a/www/thttpd/files/thttpd.sh b/www/thttpd/files/thttpd.sh new file mode 100644 index 000000000000..34a848a96082 --- /dev/null +++ b/www/thttpd/files/thttpd.sh @@ -0,0 +1,20 @@ +#!/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) + [ -x ${PREFIX}/sbin/thttpd_wrapper ] && ${PREFIX}/sbin/thttpd_wrapper && echo -n ' thttpd' + ;; +stop) + killall thttpd_wrapper && killall thttpd && echo -n ' thttpd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/wwwoffle/files/wwwoffled.sh b/www/wwwoffle/files/wwwoffled.sh index a902bb203d68..3764e197d88b 100644 --- a/www/wwwoffle/files/wwwoffled.sh +++ b/www/wwwoffle/files/wwwoffled.sh @@ -1,2 +1,17 @@ #!/bin/sh -[ -x %PREFIX%/sbin/wwwoffled ] && %PREFIX%/sbin/wwwoffled > /dev/null && echo -n ' wwwoffled' + +case $1 in +start) + [ -x %PREFIX%/sbin/wwwoffled ] && \ + %PREFIX%/sbin/wwwoffled > /dev/null && echo -n ' wwwoffled' + ;; +stop) + killall wwwoffled && echo -n ' wwwoffled' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 diff --git a/www/zope/Makefile b/www/zope/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope/Makefile +++ b/www/zope/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope/files/zope.sh.in b/www/zope/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/zope210/Makefile b/www/zope210/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope210/Makefile +++ b/www/zope210/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope210/files/zope.sh.in b/www/zope210/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope210/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/zope211/Makefile b/www/zope211/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope211/Makefile +++ b/www/zope211/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope211/files/zope.sh.in b/www/zope211/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope211/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/zope213/Makefile b/www/zope213/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope213/Makefile +++ b/www/zope213/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope213/files/zope.sh.in b/www/zope213/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope213/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/zope28/Makefile b/www/zope28/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope28/Makefile +++ b/www/zope28/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope28/files/zope.sh.in b/www/zope28/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope28/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/www/zope29/Makefile b/www/zope29/Makefile index 11ec49d80dca..21e3eb68c7c6 100644 --- a/www/zope29/Makefile +++ b/www/zope29/Makefile @@ -65,9 +65,8 @@ do-install: # ${ECHO} "===> Please have a look at this file and the instructions" ; \ ${ECHO} "===> therein and incorporate them to your apache.conf." ; \ ${ECHO} "===> Creating rc startup file for Zope-${PORTVERSION}..." ; \ - ${ECHO} "#! /bin/sh" > ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "${ZOPEBASEDIR}/start -w '' -f '' -m '' -p ${CGI_BIN_DIR}/Zope.cgi &" >> ${PREFIX}/etc/rc.d/zope.sh ; \ - ${ECHO} "echo -n \" Zope\"" >> ${PREFIX}/etc/rc.d/zope.sh ; \ + ${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" -e "s|%%CGI_BIN_DIR%%|${CGI_BIN_DIR}|g" \ + < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc.rc.d/zope.sh; \ ${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh ; \ ${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh." ; \ ${CAT} ${FILESDIR}/Message ; \ diff --git a/www/zope29/files/zope.sh.in b/www/zope29/files/zope.sh.in new file mode 100644 index 000000000000..156a319c8125 --- /dev/null +++ b/www/zope29/files/zope.sh.in @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +start) + %%ZOPEBASEDIR%%/start -w '' -f '' -m '' -p %%CGI_BIN_DIR%%/Zope.cgi & + echo -n " Zope" + ;; +stop) + %%ZOPEBASEDIR%% stop + echo -n " Zope" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |