ports/63083: [patch] bsd.port.mk proposal: UNIQUENAME in DOCSDIR, et al.

Brandon D. Valentine ports at brandon.dvalentine.com
Thu Feb 19 21:30:16 UTC 2004


>Number:         63083
>Category:       ports
>Synopsis:       [patch] bsd.port.mk proposal: UNIQUENAME in DOCSDIR, et al.
>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:   Thu Feb 19 13:30:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Brandon D. Valentine
>Release:        FreeBSD 5.2.1-RC2 i386
>Organization:
N/A
>Environment:
System: FreeBSD dallben.prydain.us 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Wed Feb 11 18:49:59 CST 2004 root at dallben.prydain.us:/usr/obj/usr/src/sys/DALLBEN i386

>Description:

  I propose the attached small change to bsd.port.mk which will define
  DOCSDIR, EXAMPLESDIR and DATADIR using UNIQUENAME rather than
  PORTNAME.  This seems to be the right thing to do for the same reasons
  that UNIQUENAME is valuable in OPTIONSFILE.  There any many PORTNAME
  conflicts in the tree and using PORTNAME to define DOCSDIR,
  EXAMPLESDIR, and DATADIR may cause collisions.

>How-To-Repeat:
	N/A
>Fix:

--- bsd.port.mk-dir_20040219.patch begins here ---
Index: ports/Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- ports/Mk/bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ ports/Mk/bsd.port.mk	19 Feb 2004 21:09:53 -0000
@@ -2760,9 +2760,9 @@
 .endif
 .endif
 
-DOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
-EXAMPLESDIR?=	${PREFIX}/share/examples/${PORTNAME}
-DATADIR?=	${PREFIX}/share/${PORTNAME}
+DOCSDIR?=	${PREFIX}/share/doc/${UNIQUENAME}
+EXAMPLESDIR?=	${PREFIX}/share/examples/${UNIQUENAME}
+DATADIR?=	${PREFIX}/share/${UNIQUENAME}
 
 PLIST_SUB+=	DOCSDIR="${DOCSDIR:S,^${PREFIX}/,,}" \
 		EXAMPLESDIR="${EXAMPLESDIR:S,^${PREFIX}/,,}" \
--- bsd.port.mk-dir_20040219.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list