Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 63 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 63 Rev 101
1
#!/bin/sh -e
1
#!/bin/sh -e
2
2
3
mode=$1
3
mode=$1
4
4
5
source_package=libspf2
5
source_package=libspf2
6
6
7
case "$mode" in
7
case "$mode" in
8
  configure )
8
  configure )
9
    prev_version=$2
9
    prev_version=$2
10
    
10
    
11
    update-alternatives --install /usr/bin/spfquery spfquery      /usr/bin/spfquery.$source_package 25 \
11
    update-alternatives --install /usr/bin/spfquery spfquery      /usr/bin/spfquery.$source_package 25 \
12
        --slave /usr/share/man/man1/spfquery.1.gz spfquery.1.gz   /usr/share/man/man1/spfquery.$source_package.1.gz
12
        --slave /usr/share/man/man1/spfquery.1.gz spfquery.1.gz   /usr/share/man/man1/spfquery.$source_package.1.gz
13
    update-alternatives --install /usr/sbin/spfd    spfd          /usr/sbin/spfd.$source_package    25
13
    update-alternatives --install /usr/sbin/spfd    spfd          /usr/sbin/spfd.$source_package    25
14
    ;;
14
    ;;
15
esac
15
esac
16
16
17
# Replace documentation directory with symlink
17
# Replace documentation directory with symlink
18
docdir="/usr/share/doc/spfquery"
18
docdir="/usr/share/doc/spfquery"
19
if [ -d $docdir ] && [ ! -L $docdir ]; then
19
if [ -d $docdir ] && [ ! -L $docdir ]; then
20
    if rmdir $docdir 2>/dev/null; then
20
    if rmdir $docdir 2>/dev/null; then
21
        ln -sf libspf2-2 $docdir
21
        ln -sf libspf2-2 $docdir
22
    fi
22
    fi
23
fi
23
fi
24
24
25
#DEBHELPER#
25
#DEBHELPER#