aboutsummaryrefslogtreecommitdiffstats
path: root/databases/namazu2/pkg-install
blob: 86ceb619d750101765b7c4240138475dad78cad6 (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
24
25
26
27
28
29
30
#!/bin/sh
#
# $FreeBSD$

PATH=/bin:/usr/bin

files="${PKG_PREFIX}/lib/charset.alias ${PKG_PREFIX}/share/locale/locale.alias"
sfx=.namazu2.backup

case $2 in
    PRE-INSTALL)
    for f in $files; do
        if [ -f $f ]; then
        cp $f $f$sfx
        fi
    done
    ;;

    POST-INSTALL)
    for f in $files; do
        if [ -f $f$sfx ]; then
        touch $f$sfx
        else
        cp $f $f$sfx
        fi
    done
    ;;
esac

exit 0