ports/139245: [patch] security/nss header file permission fix
Aragon Gouveia
aragon at phat.za.net
Wed Sep 30 02:10:02 UTC 2009
>Number: 139245
>Category: ports
>Synopsis: [patch] security/nss header file permission fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 30 02:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Aragon Gouveia
>Release: 8.0-BETA3
>Organization:
>Environment:
FreeBSD igor.geek.sh 8.0-BETA3 FreeBSD 8.0-BETA3 #0: Thu Sep 17 14:02:41 SAST 2009 root at igor.geek.sh:/usr/obj/usr/src/sys/IGOR amd64
>Description:
When NSS is installed, its header files get installed with permission 640. My attached patch corrects this to the usual 444.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2009-09-30 04:03:37.000000000 +0200
+++ Makefile 2009-09-30 04:03:29.000000000 +0200
@@ -7,6 +7,7 @@
PORTNAME= nss
PORTVERSION= ${_MAJOR}.${_MINOR}.${_PATCH}
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= security/nss/releases/NSS_${PORTVERSION:S/./_/g}_RTM/src
@@ -93,9 +94,9 @@
.endif
do-install:
- ${MKDIR} ${PREFIX}/include/nss ${PREFIX}/lib/nss
- ${TAR} -C ${DIST}/public --dereference -cf - . | \
- ${TAR} -C ${PREFIX}/include/nss -xf -
+ ${MKDIR} -p ${PREFIX}/include/nss/nss ${PREFIX}/lib/nss
+ ${FIND} ${DIST}/public/nss -type l \
+ -exec ${INSTALL_DATA} {} ${PREFIX}/include/nss/nss \;
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/*.so.1 \
${PREFIX}/lib/nss
${INSTALL_DATA} ${DIST}/FreeBSD${OSREL:C/.$/*/}_OPT.OBJ/lib/libcrmf.a \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list