diff options
Diffstat (limited to 'sysutils/puppet-devel/files')
-rw-r--r-- | sysutils/puppet-devel/files/pkg-deinstall.in | 13 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/pkg-install.in | 14 | ||||
-rw-r--r-- | sysutils/puppet-devel/files/pkg-message.in | 5 |
3 files changed, 29 insertions, 3 deletions
diff --git a/sysutils/puppet-devel/files/pkg-deinstall.in b/sysutils/puppet-devel/files/pkg-deinstall.in new file mode 100644 index 000000000000..415066ce8a94 --- /dev/null +++ b/sysutils/puppet-devel/files/pkg-deinstall.in @@ -0,0 +1,13 @@ +#!/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 index 9abe03a0e148..08e41588ae0f 100644 --- a/sysutils/puppet-devel/files/pkg-install.in +++ b/sysutils/puppet-devel/files/pkg-install.in @@ -8,6 +8,7 @@ UID=814 GID=$UID RUNDIR=%%PUPPET_RUNDIR%% +WORKDIR=%%PUPPET_WORKDIR%% PW="pw" CHOWN="chown" @@ -36,7 +37,18 @@ if [ "$2" = "PRE-INSTALL" ]; then fi elif [ "$2" = "POST-INSTALL" ]; then - ${INSTALL_DIR} ${RUNDIR} + 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 index 6f90cbeecc9e..2fa9f3421251 100644 --- a/sysutils/puppet-devel/files/pkg-message.in +++ b/sysutils/puppet-devel/files/pkg-message.in @@ -1,3 +1,4 @@ + To enable puppetd and/or puppetmasterd, add: puppetd_enable="YES" @@ -5,7 +6,7 @@ puppetmasterd_enable="YES" to /etc/rc.conf -Indivisual config files such as %%PREFIX%%/etc/puppetmasterd.conf are -deprecated. Use a single file, %%PREFIX%%/puppet/puppet.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%%. |