2007-03-06 21:13:56 +01:00
|
|
|
# New ports collection makefile for: rubygem-puppet
|
|
|
|
# Date created: 2007-03-03
|
|
|
|
# Whom: Tomoyuki Sakurai <cherry@trombik.mine.nu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= puppet
|
2007-04-17 21:41:20 +02:00
|
|
|
PORTVERSION= 0.22.3
|
2007-03-06 21:13:56 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.reductivelabs.com/downloads/puppet/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= cherry@trombik.org
|
|
|
|
COMMENT= A configuration management framework written in Ruby
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${RUBY_SITELIBDIR}/facter.rb:${PORTSDIR}/sysutils/facter
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_RUBY= yes
|
2007-04-13 15:37:08 +02:00
|
|
|
USE_RC_SUBR= puppetmasterd puppetd
|
2007-03-06 21:13:56 +01:00
|
|
|
|
|
|
|
DOCS= CHANGELOG TODO README LICENSE COPYING
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${SETENV} DSTDIR=${DSTDIR}/${PREFIX} \
|
|
|
|
${RUBY} ${WRKSRC}/install.rb --full
|
|
|
|
${INSTALL} -d ${DOCSDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL} -d ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
2007-04-13 15:37:08 +02:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2007-03-06 21:13:56 +01:00
|
|
|
.endif
|
|
|
|
|
2007-04-13 15:37:08 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL} -d ${PREFIX}/etc/${PORTNAME}
|
|
|
|
.for DIR in ssl manifests
|
|
|
|
${INSTALL} -d ${PREFIX}/etc/${PORTNAME}/${DIR}
|
|
|
|
.endfor
|
|
|
|
${RUBY} ${PREFIX}/bin/puppetmasterd \
|
|
|
|
--confdir=${PREFIX}/etc/${PORTNAME} \
|
2007-04-17 21:41:20 +02:00
|
|
|
--rundir=/var/run \
|
2007-04-13 15:37:08 +02:00
|
|
|
--genconfig | \
|
|
|
|
${SED} -e 's/genconfig = true/# genconfig = false/' \
|
2007-04-17 21:41:20 +02:00
|
|
|
> ${PREFIX}/etc/${PORTNAME}/puppetmasterd.conf-dist
|
2007-04-13 15:37:08 +02:00
|
|
|
|
2007-03-06 21:13:56 +01:00
|
|
|
.include <bsd.port.post.mk>
|