diff options
Diffstat (limited to 'www/horde-passwd/files/pkg-install.in')
-rw-r--r-- | www/horde-passwd/files/pkg-install.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/horde-passwd/files/pkg-install.in b/www/horde-passwd/files/pkg-install.in new file mode 100644 index 000000000000..7ada28ff461b --- /dev/null +++ b/www/horde-passwd/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PATH=/usr/sbin:/usr/bin:/bin ; export PATH + +case $2 in + PRE-INSTALL) + ;; + + POST-INSTALL) + if [ -z "${PACKAGE_BUILDING}" ]; then + # Copy over sample config files unless they already exist + + for cf in `ls %%PWDDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.dist $cf + fi + done + fi + ;; +esac |