Add rc scripts for puppetd and puppetmasterd.

Set GPL version while here.

ok robert@ (maintainer)
This commit is contained in:
ajacoutot 2011-03-20 15:46:34 +00:00
parent 4f1d224b85
commit 24c65f886d
4 changed files with 34 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.29 2011/03/09 10:31:52 robert Exp $
# $OpenBSD: Makefile,v 1.30 2011/03/20 15:46:34 ajacoutot Exp $
COMMENT= centralised configuration management for networks
@ -7,12 +7,14 @@ DISTNAME= puppet-${VERSION}
PKGNAME= ruby-${DISTNAME}
CATEGORIES= sysutils net
REVISION= 0
HOMEPAGE= http://reductivelabs.com/projects/puppet/
MASTER_SITES= http://reductivelabs.com/downloads/puppet/
MAINTAINER= Robert Nagy <robert@openbsd.org>
# GPL
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.12 2011/03/09 10:31:52 robert Exp $
@comment $OpenBSD: PLIST,v 1.13 2011/03/20 15:46:34 ajacoutot Exp $
@newgroup _puppet:580
@newuser _puppet:580:580:daemon:Puppet user:/var/empty:/sbin/nologin
bin/filebucket
@ -693,3 +693,8 @@ ${MODRUBY_RELEXAMPLEDIR}/puppet/tagmail.conf
@sample /var/puppet/reports/
@extraunexec rm -rf ${SYSCONFDIR}/puppet/
@extraunexec rm -rf /var/puppet/
@mode
@owner
@group
@rcscript ${RCDIR}/puppetd
@rcscript ${RCDIR}/puppetmasterd

View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# $OpenBSD: puppetd.rc,v 1.1 2011/03/20 15:46:34 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/puppetd"
. /etc/rc.d/rc.subr
pexp=".*ruby.* ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_cmd $1

View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# $OpenBSD: puppetmasterd.rc,v 1.1 2011/03/20 15:46:34 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/puppetmasterd"
. /etc/rc.d/rc.subr
pexp=".*ruby.* ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_cmd $1