- update genplist to version 0.6

New Features:
==============
- Handling of: 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}

PR:		ports/152836
Submitted by:	ohauer
Approved by:	Jason Bacon <jwbacon _at_ tds.net> (maintainer) via mail.
This commit is contained in:
Olli Hauer 2010-12-04 18:12:06 +00:00
parent bff542234a
commit 16478b3f54
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265686
3 changed files with 3 additions and 27 deletions

View File

@ -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 @@ do-install:
@${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>

View File

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

View File

@ -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)) \