summaryrefslogtreecommitdiff
path: root/deskutils/horde4-nag/files/pkg-install.in
blob: f7ec7e0017b6efda1b91f67af8f67a1ea82d6b8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 %%NAGDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
                if [ ! -f $cf ]; then
                    cp -p $cf.dist $cf
                fi
            done
        fi
    ;;
esac