diff options
Diffstat (limited to 'sysutils/puppet-devel/files')
-rw-r--r-- | sysutils/puppet-devel/files/patch-install.rb | 25 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/pkg-deinstall.in | 13 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/pkg-install.in | 54 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/pkg-message.in | 12 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/puppetd.in | 26 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/puppetmasterd.in | 45 |
6 files changed, 0 insertions, 175 deletions
diff --git a/sysutils/puppet-devel/files/patch-install.rb b/sysutils/puppet-devel/files/patch-install.rb deleted file mode 100644 index fe86bcc97199..000000000000 --- a/sysutils/puppet-devel/files/patch-install.rb +++ /dev/null @@ -1,25 +0,0 @@ ---- install.rb.orig 2008-07-24 08:03:04.000000000 +0900 -+++ install.rb 2008-08-01 18:48:33.000000000 +0900 -@@ -98,11 +98,12 @@ - end - - def do_man(man, strip = 'man/') -+ return - man.each do |mf| - omf = File.join(InstallOptions.man_dir, mf.gsub(/#{strip}/, '')) - om = File.dirname(omf) - File.makedirs(om, true) -- File.chmod(0644, om) -+ File.chmod(0755, om) - File.install(mf, omf, 0644, true) - gzip = %x{which gzip} - gzip.chomp! -@@ -223,7 +224,7 @@ - else - bindir = Config::CONFIG['bindir'] - sbindir = Config::CONFIG['sbindir'] -- mandir = Config::CONFIG['mandir'] -+ mandir = ENV['PREFIX'] + "/man" - tmpdirs << Config::CONFIG['bindir'] - end - diff --git a/sysutils/puppet-devel/files/pkg-deinstall.in b/sysutils/puppet-devel/files/pkg-deinstall.in deleted file mode 100644 index 415066ce8a94..000000000000 --- a/sysutils/puppet-devel/files/pkg-deinstall.in +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/sysutils/puppet-devel/files/Attic/pkg-deinstall.in,v 1.1 2008-09-04 19:08:58 beech Exp $ -PATH="/bin:/sbin:/usr/bin:/usr/sbin" - -RUNDIR=%%PUPPET_RUNDIR%% -WORKDIR=%%PUPPET_WORKDIR%% - -if [ "$2" = "POST-DEINSTALL" ]; then - echo "=> Deleting ${RUNDIR} if empty..." - rm -d ${RUNDIR} 2>/dev/null || true - echo "=> Deleting ${WORKDIR} if empty..." - rm -d ${WORKDIR} 2>/dev/null || true -fi diff --git a/sysutils/puppet-devel/files/pkg-install.in b/sysutils/puppet-devel/files/pkg-install.in deleted file mode 100644 index 08e41588ae0f..000000000000 --- a/sysutils/puppet-devel/files/pkg-install.in +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -PATH="/bin:/sbin:/usr/bin:/usr/sbin" - -PUPPET_USER=%%PUPPET_USER%% -PUPPET_GROUP=%%PUPPET_GROUP%% -UID=814 -GID=$UID - -RUNDIR=%%PUPPET_RUNDIR%% -WORKDIR=%%PUPPET_WORKDIR%% - -PW="pw" -CHOWN="chown" -INSTALL_DIR="install -d -o ${PUPPET_USER} -g ${PUPPET_GROUP} -m 0755" - -if [ "$2" = "PRE-INSTALL" ]; then - - if ! ${PW} groupshow ${PUPPET_GROUP} 2>/dev/null 1>&2; then - if ${PW} groupadd ${PUPPET_GROUP} -g $GID; then - echo "=> Added group \"${PUPPET_GROUP}\"." - else - echo "=> Adding group \"${PUPPET_GROUP}\" failed..." - exit 1 - fi - fi - - if ! ${PW} usershow ${PUPPET_USER} 2>/dev/null 1>&2; then - if ${PW} useradd ${PUPPET_USER} -u $UID -g ${PUPPET_GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" \ - -c "Puppet Daemon"; then - echo "=> Added user \"${PUPPET_USER}\"." - else - echo "=> Adding user \"${PUPPET_USER}\" failed..." - exit 1 - fi - fi - -elif [ "$2" = "POST-INSTALL" ]; then - if [ -d ${RUNDIR} ]; then - echo "=> ${RUNDIR} already exists." - else - echo -n "=> Creating RUNDIR ${RUNDIR}... " - ${INSTALL_DIR} ${RUNDIR} || echo "failed" - fi - if [ -d ${WORKDIR} ]; then - echo "=> ${WORKDIR} already exists." - else - echo -n "=> Creating WORKDIR ${WORKDIR}... " - ${INSTALL_DIR} ${WORKDIR} || echo "failed" - fi -fi - -exit 0 diff --git a/sysutils/puppet-devel/files/pkg-message.in b/sysutils/puppet-devel/files/pkg-message.in deleted file mode 100644 index 2fa9f3421251..000000000000 --- a/sysutils/puppet-devel/files/pkg-message.in +++ /dev/null @@ -1,12 +0,0 @@ - -To enable puppetd and/or puppetmasterd, add: - -puppetd_enable="YES" -puppetmasterd_enable="YES" - -to /etc/rc.conf - -Individual config files such as %%PREFIX%%/etc/puppet/puppetmasterd.conf are -deprecated. Use a single file, %%PREFIX%%/etc/puppet/puppet.conf. - -Now the default PID directory is %%PUPPET_RUNDIR%%. diff --git a/sysutils/puppet-devel/files/puppetd.in b/sysutils/puppet-devel/files/puppetd.in deleted file mode 100644 index e417ae6bd8f7..000000000000 --- a/sysutils/puppet-devel/files/puppetd.in +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: puppetd -# REQUIRE: NETWORK - -# Add the following lines to /etc/rc.conf to enable puppetd: -# -# puppetd_enable="YES" - -. %%RC_SUBR%% - -name="puppetd" -rcvar=`set_rcvar` - -command="%%PREFIX%%/bin/${name}" -command_interpreter="%%PREFIX%%/bin/ruby18" - -load_rc_config "$name" -: ${puppetd_enable="NO"} -: ${puppetd_pid="%%PUPPET_RUNDIR%%/${name}.pid"} -: ${puppetd_flags="--rundir %%PUPPET_RUNDIR%%"} -pidfile="$puppetd_pid" - -run_rc_command "$1" diff --git a/sysutils/puppet-devel/files/puppetmasterd.in b/sysutils/puppet-devel/files/puppetmasterd.in deleted file mode 100644 index 3afb97663a24..000000000000 --- a/sysutils/puppet-devel/files/puppetmasterd.in +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# PROVIDE: puppetmasterd -# REQUIRE: NETWORK - -# Add the following lines to /etc/rc.conf to enable puppetmasterd: -# -# puppetmasterd_enable="YES" -# puppetmasterd_confdir: Set to %%PREFIX%%/etc/puppet by default -# puppetmasterd_flags: Set to "--pidfile ${puppetmasterd_pid}" by default -# - -. %%RC_SUBR%% - -name="puppetmasterd" -rcvar=`set_rcvar` - -command="%%PREFIX%%/bin/${name}" -command_interpreter="%%PREFIX%%/bin/ruby18" -start_precmd="puppetmasterd_checkconfig" -restart_precmd="puppetmasterd_checkconfig" - -puppetmasterd_checkconfig() { - echo -n "Performing sanity check of ${name} configuration: " - ${command} --parseonly ${puppetmasterd_flags} >/dev/null 2>&1 - rv=$? - if [ $rv != 0 ]; then - echo "FAILED, ${name} exited with status ${rv}" - ${command} --parseonly ${puppetmasterd_flags} - return 1 - else - echo "OK" - fi -} - -load_rc_config "$name" -: ${puppetmasterd_enable="NO"} -: ${puppetmasterd_confdir="%%PREFIX%%/etc/puppet"} -: ${puppetmasterd_pid="%%PUPPET_RUNDIR%%/${name}.pid"} -: ${puppetmasterd_flags="--pidfile ${puppetmasterd_pid}"} -pidfile="$puppetmasterd_pid" - -run_rc_command "$1" |