ports/80023: [bsd.port.mk]: make PORTDOCS= * work properly

Clement Laforet clement at FreeBSD.org
Sun Apr 17 10:40:16 UTC 2005


>Number:         80023
>Category:       ports
>Synopsis:       [bsd.port.mk]: make PORTDOCS= * work properly
>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:   Sun Apr 17 10:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Clement Laforet
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
FreeBSD
>Environment:
System: FreeBSD goofy.cultdeadsheep.org 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Wed Jul 21 08:16:17 CEST 2004 root at goofy.cultdeadsheep.org:/usr/obj/usr/src/sys/GOOFY i386


	
>Description:
When using PORTDOCS= *, add-plist-doc target print error due to '*' shell
wildcard.
Example:
[: /usr/local/share/doc/apache2/LICENSE: unexpected operator

>How-To-Repeat:
# cd ${PORTSDIR}/www/apache2
# make install


>Fix:

	

--- bsd.port.mk.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.511
diff -u -r1.511 bsd.port.mk
--- Mk/bsd.port.mk	17 Mar 2005 23:22:07 -0000	1.511
+++ Mk/bsd.port.mk	17 Apr 2005 10:14:51 -0000
@@ -4803,12 +4803,14 @@
 		[ "`${SED} -En -e '/^@cw?d[ 	]*/s,,,p' ${TMPPLIST} | ${TAIL} -n 1`" != "${PREFIX}" ]; then \
 		${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST}; \
 	fi
+.if ${PORTDOCS} != *
 .for x in ${PORTDOCS}
 	@if [ ! -e ${DOCSDIR}/${x} ]; then \
 		@${ECHO_CMD} ${DOCSDIR}/${x} | \
 			${SED} -e 's,^${PREFIX}/,,' >> ${TMPPLIST}; \
 	fi
 .endfor
+.endif
 	@${FIND} -P ${PORTDOCS:S/^/${DOCSDIR}\//} ! -type d 2>/dev/null | \
 		${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
 	@${FIND} -P -d ${PORTDOCS:S/^/${DOCSDIR}\//} -type d 2>/dev/null | \
--- bsd.port.mk.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list