Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2000 04:50:05 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        asami@FreeBSD.org
Cc:        freebsd-ports@FreeBSD.org
Subject:   a bugfix for bsd.port.mk
Message-ID:  <86g0n8yqky.wl@archon.local.idaemons.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86g0n8yqky.wl>