diff options
author | tonnerre <tonnerre@pkgsrc.org> | 2009-08-30 21:57:07 +0000 |
---|---|---|
committer | tonnerre <tonnerre@pkgsrc.org> | 2009-08-30 21:57:07 +0000 |
commit | 88416479840adfc8107df1471aef2c2a884c7afa (patch) | |
tree | 251e9a917fb558f1f44c0b7d238076fed9d744f9 /sysutils/puppet | |
parent | 2fe2d0de6bab289719cf5300b3853b9002a99ccd (diff) | |
download | pkgsrc-88416479840adfc8107df1471aef2c2a884c7afa.tar.gz |
Install manifest and SMF methods for puppetd and puppetmasterd when on
Solaris. Bump PKGREVISION.
XXX: This should be formalized for all services.
Diffstat (limited to 'sysutils/puppet')
-rw-r--r-- | sysutils/puppet/Makefile | 28 | ||||
-rw-r--r-- | sysutils/puppet/PLIST | 6 |
2 files changed, 31 insertions, 3 deletions
diff --git a/sysutils/puppet/Makefile b/sysutils/puppet/Makefile index 2db77f6d83d..af3e2115cc4 100644 --- a/sysutils/puppet/Makefile +++ b/sysutils/puppet/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.4 2009/02/08 23:01:56 tonnerre Exp $ +# $NetBSD: Makefile,v 1.5 2009/08/30 21:57:07 tonnerre Exp $ DISTNAME= puppet-0.24.7 +PKGREVISION= 1 CATEGORIES= sysutils MAINTAINER= tonnerre@NetBSD.org @@ -8,6 +9,8 @@ HOMEPAGE= http://www.reductivelabs.com/projects/puppet/ MASTER_SITE= http://reductivelabs.com/downloads/gems/ COMMENT= Configuration management framework written in Ruby +.include "../../mk/bsd.prefs.mk" + DEPENDS+= ${RUBY_PKGPREFIX}-facter>=1.3.8:../../sysutils/ruby-facter GEM_BUILD= gemspec @@ -26,10 +29,21 @@ SUBST_FILES.prefix+= conf/solaris/smf/puppetd.xml SUBST_FILES.prefix+= conf/solaris/smf/puppetmasterd.xml SUBST_FILES.prefix+= man/man8/puppetrun.8 man/man8/puppet.conf.8 SUBST_SED.prefix= -e "s|/etc/puppet|${PKG_SYSCONFDIR}|g" +SUBST_SED.prefix+= -e "s|/opt/csw/lib|${PREFIX}/lib|g" EGDIR= ${PREFIX}/share/examples/${PKGBASE} CONF_FILES= ${EGDIR}/puppet.conf ${PKG_SYSCONFDIR}/puppet.conf +PLIST_VARS+= sunos + +.if ${OPSYS} == "SunOS" +INSTALLATION_DIRS= lib/svc/method ${EGDIR}/svc +CONF_DIR+= ${VARBASE}/svc/manifest +CONF_FILES+= ${EGDIR}/svc/puppetd.xml ${VARBASE}/svc/manifest/puppetd.xml +CONF_FILES+= ${EGDIR}/svc/puppetmasterd.xml ${VARBASE}/svc/manifest/puppetmasterd.xml +PLIST.sunos= yes +.endif + pre-build: cd ${WRKSRC} && ${RUBY} -Ilib bin/puppetmasterd \ --confdir=${PKG_SYSCONFDIR:Q} --rundir=${VARBASE:Q}/run \ @@ -39,8 +53,18 @@ pre-build: post-install: ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/puppet.conf \ + ${INSTALL_DATA} ${WRKSRC}/examples/puppet.conf \ ${DESTDIR}${EGDIR} +.if ${OPSYS} == "SunOS" + ${INSTALL_DATA} ${WRKSRC}/conf/solaris/smf/puppetd.xml \ + ${DESTDIR}${EGDIR}/svc + ${INSTALL_DATA} ${WRKSRC}/conf/solaris/smf/puppetmasterd.xml \ + ${DESTDIR}${EGDIR}/svc + ${INSTALL_SCRIPT} ${WRKSRC}/conf/solaris/smf/svc-puppetd \ + ${DESTDIR}${PREFIX}/lib/svc/method + ${INSTALL_SCRIPT} ${WRKSRC}/conf/solaris/smf/svc-puppetmasterd \ + ${DESTDIR}${PREFIX}/lib/svc/method +.endif .include "../../misc/rubygems/rubygem.mk" .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/puppet/PLIST b/sysutils/puppet/PLIST index d1748db6252..addf0f902ec 100644 --- a/sysutils/puppet/PLIST +++ b/sysutils/puppet/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:16:12 joerg Exp $ +@comment $NetBSD: PLIST,v 1.6 2009/08/30 21:57:07 tonnerre Exp $ bin/puppet bin/puppetca bin/puppetd @@ -6,6 +6,8 @@ bin/puppetdoc bin/puppetmasterd bin/puppetrun bin/ralsh +${PLIST.sunos}lib/svc/method/svc-puppetd +${PLIST.sunos}lib/svc/method/svc-puppetmasterd ${GEM_HOME}/cache/puppet-${PKGVERSION}.gem ${GEM_LIBDIR}/CHANGELOG ${GEM_LIBDIR}/COPYING @@ -985,3 +987,5 @@ ${GEM_HOME}/specifications/puppet-${PKGVERSION}.gemspec share/examples/puppet/puppet.conf share/examples/rc.d/puppetd share/examples/rc.d/puppetmasterd +${PLIST.sunos}share/examples/puppet/svc/puppetd.xml +${PLIST.sunos}share/examples/puppet/svc/puppetmasterd.xml |