diff options
Diffstat (limited to 'mail/horde-turba/files/pkg-install.in')
-rw-r--r-- | mail/horde-turba/files/pkg-install.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/horde-turba/files/pkg-install.in b/mail/horde-turba/files/pkg-install.in new file mode 100644 index 000000000000..e0611782bf84 --- /dev/null +++ b/mail/horde-turba/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 %%TURBADIR%%/config/*.dist | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.dist $cf + fi + done + fi + ;; +esac |