aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-09-04 22:46:02 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-09-04 22:46:02 +0000
commita750421cbfef5b66297628d7e65a120211389d5a (patch)
treeee5f684e71d02f0ae9f9ded3f23502856cefadfd /sysutils
parent396556b091cb4493cb0732bdfaedd047712f806d (diff)
downloadports-a750421cbfef5b66297628d7e65a120211389d5a.tar.gz
ports-a750421cbfef5b66297628d7e65a120211389d5a.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/puppet-devel/Makefile29
1 files changed, 9 insertions, 20 deletions
diff --git a/sysutils/puppet-devel/Makefile b/sysutils/puppet-devel/Makefile
index 0a719b92e62a..94e2578468eb 100644
--- a/sysutils/puppet-devel/Makefile
+++ b/sysutils/puppet-devel/Makefile
@@ -24,7 +24,8 @@ CONFLICTS= puppet-[0-9]*
NO_BUILD= yes
USE_RUBY= yes
USE_RC_SUBR= puppetmasterd puppetd
-DOCS= CHANGELOG README LICENSE COPYING
+PORTDOCS= CHANGELOG README LICENSE COPYING
+PORTEXAMPLES= *
PUPPET_USER:= puppet
PUPPET_GROUP:= ${PUPPET_USER}
PUPPET_RUNDIR:= /var/run/${PORTNAME}
@@ -48,15 +49,6 @@ pre-install:
do-install:
cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ${RUBY} ${WRKSRC}/install.rb
- ${INSTALL} -d ${DOCSDIR}
-.if !defined(NOPORTDOCS)
-.for FILE in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
- ${INSTALL} -d ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
-.endif
post-install:
${INSTALL} -d ${PREFIX}/etc/${PORTNAME}
@@ -73,19 +65,16 @@ post-install:
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type f | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
- @${FIND} ${EXAMPLESDIR} -type f | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
- @${FIND} ${DOCSDIR} -type f | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${DOCSDIR} -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-.endif
@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.if !defined(NOPORTDOCS)
+ ${INSTALL} -d ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+.if !defined(NOPORTEXAMPLES)
+ cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
+.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>