From owner-freebsd-ports Thu May 9 23:20:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9CF7837B40C for ; Thu, 9 May 2002 23:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4A6K1R67585; Thu, 9 May 2002 23:20:01 -0700 (PDT) (envelope-from gnats) Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by hub.freebsd.org (Postfix) with ESMTP id 8469D37B406 for ; Thu, 9 May 2002 23:12:53 -0700 (PDT) Received: from home.dinoex.sub.org (home [217.6.200.196]) by net2.dinoex.sub.org (8.12.3/8.12.3) with ESMTP id g4A6CQiS007075 for ; Fri, 10 May 2002 08:12:27 +0200 (CEST) (envelope-from dm@home.dinoex.sub.org) Received: (from dm@localhost) by home.dinoex.sub.org (8.12.3/8.12.2/Submit) id g4A6AbE8008495; Fri, 10 May 2002 08:10:37 +0200 (CEST) (envelope-from dm) Message-Id: <200205100610.g4A6AbE8008495@home.dinoex.sub.org> Date: Fri, 10 May 2002 08:10:37 +0200 (CEST) From: dirk.meyer@dinoex.sub.org Reply-To: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37918: [PATCH] ports does not support local_startup in rc.conf Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37918 >Category: ports >Synopsis: [PATCH] ports does not support local_startup in rc.conf >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: Thu May 09 23:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 4.5-STABLE i386 >Organization: privat >Environment: System: FreeBSD 4.5-STABLE i386 >Description: startscript does not work in other directories. >How-To-Repeat: Use a diffrent startup-dir so builds don't add services or samples. /etc/rc.conf: local_startup="/usr/local/etc/rc.local" >Fix: Apply this patch: diff apache13+ipv6/Makefile apache13+ipv6/Makefile --- apache13+ipv6/Makefile Sun Dec 9 01:39:30 2001 +++ apache13+ipv6/Makefile Fri Apr 19 19:29:09 2002 @@ -65,13 +65,17 @@ MAN1= dbmmanage.1 htdigest.1 htpasswd.1 MAN8= ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 +post-extract: + @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/apache.sh \ + > ${WRKSRC}/apache.sh + pre-install: PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL post-install: @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ - ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ + ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \ fi .include diff apache13+ipv6/files/apache.sh apache13+ipv6/files/apache.sh --- apache13+ipv6/files/apache.sh Wed Aug 9 04:16:31 2000 +++ apache13+ipv6/files/apache.sh Fri Apr 19 19:30:08 2002 @@ -1,16 +1,11 @@ #!/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' + [ -x %%PREFIX%%/sbin/apachectl ] && %%PREFIX%%/sbin/apachectl start > /dev/null && echo -n ' apache' ;; stop) - [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache' + [ -r /var/run/httpd.pid ] && %%PREFIX%%/sbin/apachectl stop > /dev/null && echo -n ' apache' ;; *) echo "Usage: `basename $0` {start|stop}" >&2 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message