From owner-freebsd-ports Sun Sep 10 12:51:34 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ms.tokyo.jcom.ne.jp (ms.tokyo.jcom.ne.jp [210.234.123.18]) by hub.freebsd.org (Postfix) with ESMTP id C0BD237B422; Sun, 10 Sep 2000 12:51:31 -0700 (PDT) Received: from daemon.local.idaemons.org (203-165-77-17.sugnm1.kt.home.ne.jp [203.165.77.17]) by ms.tokyo.jcom.ne.jp (8.9.3/3.7W 04/27/00) with ESMTP id EAA14152; Mon, 11 Sep 2000 04:51:15 +0900 (JST) Received: by daemon.local.idaemons.org (8.9.3/3.7W) id EAA62111; Mon, 11 Sep 2000 04:50:07 +0900 (JST) Date: Mon, 11 Sep 2000 04:50:05 +0900 Message-ID: <86g0n8yqky.wl@archon.local.idaemons.org> From: "Akinori -Aki- MUSHA" To: asami@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: a bugfix for bsd.port.mk User-Agent: Wanderlust/2.3.0 (Roam) EMIKO/1.13.12 (Euglena sociabilis) FLIM/1.13.2 (Kasanui) APEL/10.2 MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE X-PGP-Comment: I changed my key on 2000-08-10 MIME-Version: 1.0 (generated by EMIKO 1.13.12 - "Euglena sociabilis") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I found a possible bug in bsd.port.mk. It shows "SECURITY NOTE" when a startup script is installed, with its absolute path printed. However, there seems a bug there. It fails to expand PREFIX and only shows "/etc/rc.d/foo.sh". Applying the following patch should fix it. Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.349 diff -u -r1.349 bsd.port.mk --- bsd.port.mk 2000/09/09 13:21:14 1.349 +++ bsd.port.mk 2000/09/10 19:40:22 @@ -2074,7 +2074,7 @@ if [ -s ${WRKDIR}/.PLIST.startup ] ; then \ echo " This port has installed the following startup scripts which may cause"; \ echo " network services to be started at boot time."; \ - ${SED} s,^,$$PREFIX/, < ${WRKDIR}/.PLIST.startup; \ + ${SED} s,^,${PREFIX}/, < ${WRKDIR}/.PLIST.startup; \ echo; \ fi; \ echo " If there are vulnerabilities in these programs there may be a security"; \ -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( @ idaemons.org / FreeBSD.org "We're only at home when we're on the run, on the wing, on the fly" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message