Date: Mon, 14 Jun 1999 11:10:18 -0400 (EDT) From: matt@zigg.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12206: www/apache13 rc.d startup script has /usr/local hardcoded Message-ID: <199906141510.LAA68874@torgo.zigg.local>
next in thread | raw e-mail | index | archive | help
>Number: 12206 >Category: ports >Synopsis: www/apache13 rc.d startup script has /usr/local hardcoded >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 14 08:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Matt Behrens >Release: FreeBSD 3.2-STABLE i386 >Organization: zigg.com >Environment: FreeBSD torgo.zigg.local 3.2-STABLE FreeBSD 3.2-STABLE #0: Mon Jun 7 08:14:20 EDT 1999 root@torgo.zigg.local:/usr/src/sys/compile/TORGO i386 >Description: The port www/apache13 generates a script in $PREFIX/etc/rc.d but does not modify said script to comply with the setting of the PREFIX variable. Therefore, the startup script will not work if $PREFIX is modified. >How-To-Repeat: # cd /usr/ports/www/apache13 # PREFIX=/foo/bar make install # reboot (startup script will fail) >Fix: *** Makefile.broken Thu Mar 25 17:25:43 1999 --- Makefile Mon Jun 14 11:04:24 1999 *************** *** 71,77 **** @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 /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start > /dev/null && echo -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \ chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \ fi --- 71,77 ---- @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; \ fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906141510.LAA68874>