Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2009 02:07:27 GMT
From:      Aragon Gouveia <aragon@phat.za.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139245: [patch] security/nss header file permission fix
Message-ID:  <200909300207.n8U27RoT023473@www.freebsd.org>
Resent-Message-ID: <200909300210.n8U2A1NE017735@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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