summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2004-10-19 03:15:13 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2004-10-19 03:15:13 +0000
commit0356a8b603a992b0fe3d7d64c7f6ee9ffa237f73 (patch)
treee3b69d959a3c3683657dc70a9ef2072180d8586e /devel
parent1) fix build after changes to make(1) on FreeBSD >= 5.x. (diff)
- auto create pkg-plist in pre-install phase.
PR: ports/71694 Submitted by: Michael Johnson <ahze AT ahze dot net> Reviewed by: maintainer Approved by: co-mentor (vanilla)
Notes
Notes: svn path=/head/; revision=119769
Diffstat (limited to 'devel')
-rw-r--r--devel/websvn/Makefile10
-rw-r--r--devel/websvn/pkg-plist96
2 files changed, 9 insertions, 97 deletions
diff --git a/devel/websvn/Makefile b/devel/websvn/Makefile
index 6629be71df59..57174835e329 100644
--- a/devel/websvn/Makefile
+++ b/devel/websvn/Makefile
@@ -19,14 +19,20 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/WebSVN
WEBSVNDIR?= www/data/WebSVN
+PLIST= ${WRKDIR}/pkg-plist
-PLIST_SUB+= WEBSVNDIR=${WEBSVNDIR}
+pre-install:
+ @${CP} ${WRKSRC}/include/distconfig.inc ${WRKSRC}/include/config.in
+ cd ${WRKSRC} && ${FIND} -s * -type f | \
+ ${SED} -e 's|^|${WEBSVNDIR}/|' > ${PLIST} \
+ && ${FIND} -d * -type d | \
+ ${SED} -e 's|^|@dirrm ${WEBSVNDIR}/|' >> ${PLIST} \
+ && ${ECHO_CMD} @dirrm ${WEBSVNDIR} >> ${PLIST}
do-install:
${MKDIR} ${PREFIX}/${WEBSVNDIR}
${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBSVNDIR}
${CHOWN} -R www:www ${PREFIX}/${WEBSVNDIR}
- ${CP} ${PREFIX}/${WEBSVNDIR}/include/distconfig.inc ${PREFIX}/${WEBSVNDIR}/include/config.inc
${FIND} ${PREFIX}/${WEBSVNDIR} -type f | ${XARGS} ${CHMOD} 644
post-install:
diff --git a/devel/websvn/pkg-plist b/devel/websvn/pkg-plist
index 02e0c58fff45..d0ac09258d04 100644
--- a/devel/websvn/pkg-plist
+++ b/devel/websvn/pkg-plist
@@ -1,95 +1 @@
-www/data/WebSVN/blame.php
-www/data/WebSVN/cache/tmp
-www/data/WebSVN/changes.txt
-www/data/WebSVN/comp.php
-www/data/WebSVN/diff.php
-www/data/WebSVN/dl.php
-www/data/WebSVN/filedetails.php
-www/data/WebSVN/form.php
-www/data/WebSVN/include/bugtraq.inc
-www/data/WebSVN/include/command.inc
-www/data/WebSVN/include/configclass.inc
-www/data/WebSVN/include/config.inc
-www/data/WebSVN/include/distconfig.inc
-www/data/WebSVN/include/feedcreator.class.php
-www/data/WebSVN/include/setup.inc
-www/data/WebSVN/include/svnlook.inc
-www/data/WebSVN/include/template.inc
-www/data/WebSVN/include/utils.inc
-www/data/WebSVN/include/version.inc
-www/data/WebSVN/index.php
-www/data/WebSVN/install.txt
-www/data/WebSVN/languages/english.inc
-www/data/WebSVN/languages/french.inc
-www/data/WebSVN/languages/german.inc
-www/data/WebSVN/languages/japanese-euc.inc
-www/data/WebSVN/languages/japanese-jis.inc
-www/data/WebSVN/languages/japanese-sjis.inc
-www/data/WebSVN/languages/japanese-utf8.inc
-www/data/WebSVN/languages/korean-euc.inc
-www/data/WebSVN/languages/korean-utf8.inc
-www/data/WebSVN/languages/portuguese.inc
-www/data/WebSVN/languages/russian.inc
-www/data/WebSVN/languages/spanish.inc
-www/data/WebSVN/languages/swedish.inc
-www/data/WebSVN/languages/tchinese-utf8.inc
-www/data/WebSVN/languages/tchinese.inc
-www/data/WebSVN/licence.txt
-www/data/WebSVN/listing.php
-www/data/WebSVN/log.php
-www/data/WebSVN/rss.php
-www/data/WebSVN/templates.txt
-www/data/WebSVN/templates/BlueGrey/blame.tmpl
-www/data/WebSVN/templates/BlueGrey/compare.tmpl
-www/data/WebSVN/templates/BlueGrey/diff.tmpl
-www/data/WebSVN/templates/BlueGrey/directory.tmpl
-www/data/WebSVN/templates/BlueGrey/e-node.png
-www/data/WebSVN/templates/BlueGrey/file.png
-www/data/WebSVN/templates/BlueGrey/file.tmpl
-www/data/WebSVN/templates/BlueGrey/filec.png
-www/data/WebSVN/templates/BlueGrey/fileh.png
-www/data/WebSVN/templates/BlueGrey/files.png
-www/data/WebSVN/templates/BlueGrey/folder.png
-www/data/WebSVN/templates/BlueGrey/footer.tmpl
-www/data/WebSVN/templates/BlueGrey/header.tmpl
-www/data/WebSVN/templates/BlueGrey/i-node.png
-www/data/WebSVN/templates/BlueGrey/index.tmpl
-www/data/WebSVN/templates/BlueGrey/l-node.png
-www/data/WebSVN/templates/BlueGrey/log.tmpl
-www/data/WebSVN/templates/BlueGrey/png.js
-www/data/WebSVN/templates/BlueGrey/repo.png
-www/data/WebSVN/templates/BlueGrey/styles.css
-www/data/WebSVN/templates/BlueGrey/subversion.png
-www/data/WebSVN/templates/BlueGrey/t-node.png
-www/data/WebSVN/templates/BlueGrey/xml.gif
-www/data/WebSVN/templates/Standard/blame.tmpl
-www/data/WebSVN/templates/Standard/compare.tmpl
-www/data/WebSVN/templates/Standard/diff.tmpl
-www/data/WebSVN/templates/Standard/directory.tmpl
-www/data/WebSVN/templates/Standard/file.tmpl
-www/data/WebSVN/templates/Standard/footer.tmpl
-www/data/WebSVN/templates/Standard/header.tmpl
-www/data/WebSVN/templates/Standard/index.tmpl
-www/data/WebSVN/templates/Standard/log.tmpl
-www/data/WebSVN/templates/Standard/styles.css
-www/data/WebSVN/templates/Standard/xml.gif
-www/data/WebSVN/templates/Zinn/blame.tmpl
-www/data/WebSVN/templates/Zinn/compare.tmpl
-www/data/WebSVN/templates/Zinn/diff.tmpl
-www/data/WebSVN/templates/Zinn/directory.tmpl
-www/data/WebSVN/templates/Zinn/file.tmpl
-www/data/WebSVN/templates/Zinn/footer.tmpl
-www/data/WebSVN/templates/Zinn/header.tmpl
-www/data/WebSVN/templates/Zinn/index.tmpl
-www/data/WebSVN/templates/Zinn/log.tmpl
-www/data/WebSVN/templates/Zinn/styles.css
-www/data/WebSVN/wsvn.php
-@dirrm www/data/WebSVN/templates/Zinn
-@dirrm www/data/WebSVN/templates/Standard
-@dirrm www/data/WebSVN/templates/BlueGrey
-@dirrm www/data/WebSVN/templates
-@dirrm www/data/WebSVN/temp
-@dirrm www/data/WebSVN/languages
-@dirrm www/data/WebSVN/include
-@dirrm www/data/WebSVN/cache
-@dirrm www/data/WebSVN
+@comment real PLIST will be generated in pre-install phase