ports/109536: fix ports/www/apache22 rc.d script for multiple profiles
Eygene Ryabinkin
rea-fbsd at codelabs.ru
Sun Feb 25 20:30:08 UTC 2007
>Number: 109536
>Category: ports
>Synopsis: fix ports/www/apache22 rc.d script for multiple profiles
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 25 20:30:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Eygene Ryabinkin
>Release: FreeBSD 6.2-STABLE i386
>Organization:
Code Labs
>Environment:
System: FreeBSD XXX 6.2-STABLE FreeBSD 6.2-STABLE #13: Mon Feb 12 15:59:07 MSK 2007 root at XXX:/usr/obj/usr/src/sys/XXX i386
>Description:
The port www/apache22 installs its rc.d script without the '.sh'
extension since 5.x or 6.x. But the script references itself
as the apache22.sh. This breaks the multiple Apache profiles
case, since script is trying to invoke itself but ises the wrong name.
>How-To-Repeat:
Look into the files/apache22.sh.in, line 91: you will see that
the script tries to call /usr/local/etc/rc.d/apache22.sh.
>Fix:
The following patch will cure the things on 6.x and 7.x, but I
do not have 4.x at hand to test if it will work on it.
--- Makefile.orig Sun Feb 25 22:41:47 2007
+++ Makefile Sun Feb 25 23:00:18 2007
@@ -50,6 +50,7 @@
USE_AUTOTOOLS= autoconf:259 libtool:15
USE_PERL5= yes
USE_RC_SUBR= apache22.sh
+SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
LIBTOOLFILES= configure
.if !defined(WITH_APR_FROM_PORTS)
--- files/apache22.sh.in.orig Sun Feb 25 22:45:08 2007
+++ files/apache22.sh.in Sun Feb 25 22:46:38 2007
@@ -91,7 +91,7 @@
if [ "x$1" != "xrestart" ]; then
for profile in ${apache22_profiles}; do
echo "===> apache22 profile: ${profile}"
- %%PREFIX%%/etc/rc.d/apache22.sh $1 ${profile}
+ %%PREFIX%%/etc/rc.d/apache22%%RC_SUBR_SUFFIX%% $1 ${profile}
retcode="$?"
if [ "0${retcode}" -ne 0 ]; then
failed="${profile} (${retcode}) ${failed:-}"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list