ports/152836: [patch] port ports-mgmt/genplist update to version 0.6
Olli Hauer
ohauer at FreeBSD.org
Sat Dec 4 17:50:08 UTC 2010
>Number: 152836
>Category: ports
>Synopsis: [patch] port ports-mgmt/genplist update to version 0.6
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 04 17:50:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: ohauer <ohauer at FreeBSD.org>
>Release:
>Organization:
>Environment:
>Description:
Update genplist to version 0.6.
New Features:
- Handling off: PLIST_FILES, PORTEXAMPLES, PORTDOCS, PLIST_DIRS, PLIST_DIRSTRY
- Specific return codes which can be used for automated testing
- Ability to execute external scripts ( ~/.genplist/${portname} )
Sample script for the nmap port:
$> cat ~/.genplist/nmap
#!/bin/sh
sed -i '' -E -e 's|^(share/ncat/)|%%WITHSSL%%\1|g' \
-e 's|^(@dirrm share/ncat)|%%WITHSSL%%\1|' ${1}
>How-To-Repeat:
>Fix:
--- patch_genplist.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ports-mgmt/genplist/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 7 Sep 2010 15:40:33 -0000 1.5
+++ Makefile 4 Dec 2010 17:10:15 -0000
@@ -6,8 +6,7 @@
#
PORTNAME= genplist
-PORTVERSION= 0.5
-PORTREVISION= 1
+PORTVERSION= 0.6
CATEGORIES= ports-mgmt
MASTER_SITES= http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \
http://jbacon.dyndns.org/~bacon/Ports/distfiles/
@@ -25,7 +24,4 @@
@${INSTALL_SCRIPT} ${WRKSRC}/genplist ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/genplist.1 ${PREFIX}/man/man1
-post-patch:
- @${REINPLACE_CMD} 's|/etc/mtree|$${PORTSDIR=/usr/ports}/Templates|' ${WRKSRC}/genplist
-
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/ports-mgmt/genplist/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo 13 Aug 2010 19:19:08 -0000 1.4
+++ distinfo 4 Dec 2010 17:10:15 -0000
@@ -1,3 +1,2 @@
-MD5 (genplist-0.5.tar.gz) = 942c6a367822bef552cd8dba77aeef33
-SHA256 (genplist-0.5.tar.gz) = 31b1f5977b1277b68de1b6cf1af08e129fcc0bacc69749fda085fec723905f2f
-SIZE (genplist-0.5.tar.gz) = 4444
+SHA256 (genplist-0.6.tar.gz) = 0a3758c703b4c75715a57cb6f5a97df3ef2ed532333bd8c3e978ac1f9ff3346b
+SIZE (genplist-0.6.tar.gz) = 5712
Index: files/patch-genplist
===================================================================
RCS file: files/patch-genplist
diff -N files/patch-genplist
--- files/patch-genplist 7 Sep 2010 15:40:33 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
---- ./genplist.orig 2010-08-13 20:57:55.000000000 +0200
-+++ ./genplist 2010-09-05 23:01:20.000000000 +0200
-@@ -15,7 +15,7 @@
- porttype="local"
- portname=`awk '($1 == "PORTNAME=") || ($1 == "PORTNAME?=") { print $2 }' Makefile`
- echo "PORTNAME = ${portname}"
-- prefix=$1/${portname}
-+ prefix=`echo $1/${portname} | tr -s '//' '/'`
- echo "${prefix}" > genplist.prefix
- echo "PREFIX = ${prefix}"
-
-@@ -76,6 +76,7 @@
- sed "s|share/${portname}|%%DATADIR%%|g" < pkg-plist.new \
- | sed "s|share/doc/${portname}|%%DOCSDIR%%|g" \
- | sed "s|share/examples/${portname}|%%EXAMPLESDIR%%|g" \
-+ | sed "s|share/java/classes|%%JAVAJARDIR%%|g" \
- | sed "s|www/${portname}|%%WWWDIR%%|g" \
- | sed "s|etc/${portname}|%%ETCDIR%%|g" \
- | awk -F '.' ' { if (($2 == "so") && (NF == 4)) \
--- patch_genplist.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list