ports/150337: Add PLIST_DIRSTRY macro

Koop Mast kwm at FreeBSD.org
Mon Sep 6 23:50:02 UTC 2010


>Number:         150337
>Category:       ports
>Synopsis:       Add PLIST_DIRSTRY macro
>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:   Mon Sep 06 23:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Koop Mast
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hermes.rainbow-runner.nl 8.1-RELEASE FreeBSD 8.1-RELEASE #0 r210193: Sat Jul 17 18:42:05 CEST 2010 root at hermes.rainbow-runner.nl:/var/obj/usr/src/sys/Hermes amd64


	
>Description:
	Add PLIST_DIRSTRY macro that does the same as PLIST_DIRS but
	for the @dirrmtry macro instead of the @dirrm macro. 
<how to correct or work around the problem, if known (multiple lines)>

--- bsd.port.mk-dirstry begins here ---
Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.644
diff -a -u -r1.644 bsd.port.mk
--- Mk/bsd.port.mk	20 Aug 2010 12:15:02 -0000	1.644
+++ Mk/bsd.port.mk	6 Sep 2010 23:17:29 -0000
@@ -966,6 +966,7 @@
 #				  Default: ${PORTSDIR}/Templates/BSD.local.dist or
 #				  /etc/mtree/BSD.usr.dist if ${PREFIX} == "/usr".
 # PLIST_DIRS	- Directories to be added to packing list
+# PLIST_DIRSTRY	- Directories to be added to packing list and try to remove them.
 # PLIST_FILES	- Files and symbolic links to be added to packing list
 #
 # PLIST			- Name of the `packing list' file.
@@ -5687,6 +5688,9 @@
 .for dir in ${PLIST_DIRS}
 	@${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^, at dirrm ,' >> ${TMPPLIST}
 .endfor
+.for dir in ${PLIST_DIRSTRY}
+	@${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} -e 's,^, at dirrmtry ,' >> ${TMPPLIST}
+.endfor
 .if defined(USE_LINUX_PREFIX)
 .if defined(USE_LDCONFIG)
 	@${ECHO_CMD} "@exec ${LDCONFIG_CMD}" >> ${TMPPLIST}
--- bsd.port.mk-dirstry ends here ---


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list