ports/116007: [NEW PORT] sysutils/puppet-devel: A configuration management framework written in Ruby

Tomoyuki Sakurai cherry at trombik.org
Sun Sep 2 04:00:15 UTC 2007


>Number:         116007
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/puppet-devel: A configuration management framework written in Ruby
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 02 04:00:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Tomoyuki Sakurai
>Release:        FreeBSD 6.2-STABLE-200706 i386
>Organization:
>Environment:
System: FreeBSD spica.trombik.org 6.2-STABLE-200706 FreeBSD 6.2-STABLE-200706 #0: Sun Jun  3 13:54:03 UTC
>Description:
Puppet lets you centrally manage every important aspect of your system using
a cross-platform specification language that manages all the separate
elements normally aggregated in different files, like users, cron jobs, and
hosts, along with obviously discrete elements like packages, services, and
files.

WWW:	http://reductivelabs.com/trac/puppet

This is a developement version of sysutils/puppet. Use this if you'd like to
give the latest release a try. Do NOT use in production environment.

What makes it stable depends on comments from developers, such as
http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet and feedback from
users.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

This fixes ports/115236.

--- puppet-devel-0.23.2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	puppet-devel
#	puppet-devel/files
#	puppet-devel/files/patch-optional-p-P
#	puppet-devel/files/puppetd.in
#	puppet-devel/files/puppetmasterd.in
#	puppet-devel/Makefile
#	puppet-devel/distinfo
#	puppet-devel/pkg-descr
#	puppet-devel/pkg-plist
#
echo c - puppet-devel
mkdir -p puppet-devel > /dev/null 2>&1
echo c - puppet-devel/files
mkdir -p puppet-devel/files > /dev/null 2>&1
echo x - puppet-devel/files/patch-optional-p-P
sed 's/^X//' >puppet-devel/files/patch-optional-p-P << 'END-of-puppet-devel/files/patch-optional-p-P'
X--- lib/puppet/provider/package/ports.rb.orig	Tue Aug  7 21:52:46 2007
X+++ lib/puppet/provider/package/ports.rb	Tue Aug  7 21:53:49 2007
X@@ -17,11 +17,9 @@
X     end
X 
X     def install
X-        # -p: create a package
X         # -N: install if the package is missing, otherwise upgrade
X-        # -P: prefer binary packages
X         # -M: yes, we're a batch, so don't ask any questions
X-        cmd = %w{-p -N -P  -M BATCH=yes} << @resource[:name]
X+        cmd = %w{-N -M BATCH=yes} << @resource[:name]
X 
X         output = portupgrade(*cmd)
X         if output =~ /\*\* No such /
END-of-puppet-devel/files/patch-optional-p-P
echo x - puppet-devel/files/puppetd.in
sed 's/^X//' >puppet-devel/files/puppetd.in << 'END-of-puppet-devel/files/puppetd.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/sysutils/puppet/files/puppetd.in,v 1.3 2007/05/27 11:31:25 miwi Exp $
X#
X# PROVIDE: puppetd
X# REQUIRE: NETWORK
X
X# Add the following lines to /etc/rc.conf to enable puppetd:
X#
X# puppetd_enable="YES"
X
X. %%RC_SUBR%%
X
Xname="puppetd"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/${name}"
Xcommand_interpreter="%%PREFIX%%/bin/ruby18"
X
Xload_rc_config "$name"
X: ${puppetd_enable="NO"}
X: ${puppetd_confdir="%%PREFIX%%/etc/puppet"}
X: ${puppetd_pid="/var/run/${name}.pid"}
X: ${puppetd_flags="--confdir $puppetd_confdir --rundir /var/run"}
Xpidfile="$puppetd_pid"
X
Xrun_rc_command "$1"
END-of-puppet-devel/files/puppetd.in
echo x - puppet-devel/files/puppetmasterd.in
sed 's/^X//' >puppet-devel/files/puppetmasterd.in << 'END-of-puppet-devel/files/puppetmasterd.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/sysutils/puppet/files/puppetmasterd.in,v 1.3 2007/05/27 11:31:25 miwi Exp $
X#
X# PROVIDE: puppetmasterd
X# REQUIRE: NETWORK
X
X# Add the following lines to /etc/rc.conf to enable puppetmasterd:
X#
X# puppetmasterd_enable="YES"
X# puppetmasterd_confdir:	Set to %%PREFIX%%/etc/puppet by default
X# puppetmasterd_flags:		Set to --confdir $puppetmasterd_confdir --rundir /var/run" by default
X#
X
X. %%RC_SUBR%%
X
Xname="puppetmasterd"
Xrcvar=`set_rcvar`
X
Xcommand="%%PREFIX%%/bin/${name}"
Xcommand_interpreter="%%PREFIX%%/bin/ruby18"
Xstart_precmd="puppetmasterd_checkconfig"
Xrestart_precmd="puppetmasterd_checkconfig"
X
Xpuppetmasterd_checkconfig() {
X	echo -n "Performing sanity check of ${name} configuration: "
X	${command} --parseonly ${puppetmasterd_flags} >/dev/null 2>&1
X	rv=$?
X	if [ $rv != 0 ]; then
X		echo "FAILED, ${name} exited with status ${rv}"
X		${command} --parseonly ${puppetmasterd_flags}
X		return 1
X	else
X		echo "OK"
X	fi
X}
X
Xload_rc_config "$name"
X: ${puppetmasterd_enable="NO"}
X: ${puppetmasterd_confdir="%%PREFIX%%/etc/puppet"}
X: ${puppetmasterd_pid="/var/run/${name}.pid"}
X: ${puppetmasterd_flags="--confdir $puppetmasterd_confdir --rundir /var/run"}
Xpidfile="$puppetmasterd_pid"
X
Xrun_rc_command "$1"
END-of-puppet-devel/files/puppetmasterd.in
echo x - puppet-devel/Makefile
sed 's/^X//' >puppet-devel/Makefile << 'END-of-puppet-devel/Makefile'
X# New ports collection makefile for:	rubygem-puppet
X# Date created:		2007-03-03
X# Whom:			Tomoyuki Sakurai <cherry at trombik.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	puppet
XPORTVERSION=	0.23.2
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.reductivelabs.com/downloads/puppet/
XPKGNAMESUFFIX=	-devel
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	cherry at trombik.org
XCOMMENT=	A configuration management framework written in Ruby
X
XBUILD_DEPENDS=	${RUBY_SITELIBDIR}/facter.rb:${PORTSDIR}/sysutils/facter
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XCONFLICTS=	puppet-[0-9]*
XNO_BUILD=	yes
XUSE_RUBY=	yes
XUSE_RC_SUBR=	puppetmasterd puppetd
X
XDOCS=	CHANGELOG README LICENSE COPYING
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	${REINPLACE_CMD} -e "s|/etc/puppet|${PREFIX}/etc/puppet|" \
X		${WRKSRC}/lib/puppet/configuration.rb
X
Xdo-install:
X	cd ${WRKSRC} && \
X		${SETENV} DSTDIR=${DSTDIR}/${PREFIX} \
X		${RUBY} ${WRKSRC}/install.rb --full
X	${INSTALL} -d ${DOCSDIR}
X.if !defined(NOPORTDOCS)
X.for FILE in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	${INSTALL} -d ${EXAMPLESDIR}
X	${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR}
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
X.endif
X
Xpost-install:
X	${INSTALL} -d ${PREFIX}/etc/${PORTNAME}
X.for DIR in ssl manifests
X	${INSTALL} -d ${PREFIX}/etc/${PORTNAME}/${DIR}
X.endfor
X	${RUBY} -I ${RUBY_SITELIBDIR} ${PREFIX}/bin/puppetmasterd \
X		--confdir=${PREFIX}/etc/${PORTNAME} \
X		--rundir=/var/run \
X		--genconfig | \
X		${SED} -e 's/genconfig = true/# genconfig = false/' \
X		> ${PREFIX}/etc/${PORTNAME}/puppet.conf-dist
X	@${ECHO} ${RUBY_SITELIBDIR}/puppet.rb | \
X		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
X	@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type f | \
X		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
X	@${FIND} ${RUBY_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \
X		${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
X
X.include <bsd.port.post.mk>
END-of-puppet-devel/Makefile
echo x - puppet-devel/distinfo
sed 's/^X//' >puppet-devel/distinfo << 'END-of-puppet-devel/distinfo'
XMD5 (puppet-0.23.2.tgz) = 496373ce2a7affbb639f85bcff38da0b
XSHA256 (puppet-0.23.2.tgz) = eb80e4d4adeb174c2ec5198f73d581f9a77cb07a2cae15114b9b11b13021bfa8
XSIZE (puppet-0.23.2.tgz) = 698593
END-of-puppet-devel/distinfo
echo x - puppet-devel/pkg-descr
sed 's/^X//' >puppet-devel/pkg-descr << 'END-of-puppet-devel/pkg-descr'
XPuppet lets you centrally manage every important aspect of your system using
Xa cross-platform specification language that manages all the separate
Xelements normally aggregated in different files, like users, cron jobs, and
Xhosts, along with obviously discrete elements like packages, services, and
Xfiles.
X
XWWW:	http://reductivelabs.com/trac/puppet
X
XThis is a developement version of sysutils/puppet. Use this if you'd like to
Xgive the latest release a try. Do NOT use in production environment.
X
XWhat makes it stable depends on comments from developers, such as
Xhttp://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet and feedback from
Xusers.
END-of-puppet-devel/pkg-descr
echo x - puppet-devel/pkg-plist
sed 's/^X//' >puppet-devel/pkg-plist << 'END-of-puppet-devel/pkg-plist'
X at comment $FreeBSD: ports/sysutils/puppet/pkg-plist,v 1.4 2007/05/27 11:31:25 miwi Exp $
Xbin/filebucket
Xbin/puppetd
Xbin/puppetca
Xbin/puppet
Xbin/puppetdoc
Xbin/puppetrun
Xbin/puppetmasterd
Xbin/ralsh
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/puppet/tagmail.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/puppet/puppetmasterd.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/puppet/puppetd.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/puppet/namespaceauth.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/puppet/fileserver.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/otherfile
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/init.d/sleeper
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/debian-syslog.conf
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/debian-passwd
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/etc/configfile
X%%PORTDOCS%%%%EXAMPLESDIR%%/root/bin/sleeper
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/svncommit
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/simpletests
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/selectors
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/relationships
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/one
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/nodes
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/mac_pkgdmg.pp
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/mac_netinfo.pp
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/mac_dscl_revert.pp
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/mac_dscl.pp
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/mac_automount.pp
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/importing
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/head
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/groups
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/functions
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/filerecursion
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/fileparsing
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/filedefaults
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/file.bl
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/execs
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/components
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/assignments
X%%PORTDOCS%%%%EXAMPLESDIR%%/code/allatonce
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/root/bin
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/root/etc/init.d
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/root/etc/puppet
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/root/etc
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/root
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/code/modules
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%/code
X%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%
Xetc/puppet/puppet.conf-dist
X at dirrmtry etc/puppet/ssl
X at dirrmtry etc/puppet/manifests
X at dirrmtry etc/puppet
END-of-puppet-devel/pkg-plist
exit
--- puppet-devel-0.23.2.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list