aboutsummaryrefslogtreecommitdiffstats
path: root/news/cleanfeed/pkg-install
blob: c46663b490908422248afc7661acf1e88a864546 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

PKGNAME=$1
[ ! -n "${PKG_PREFIX}" ] && exit 1

case $2 in
    POST-INSTALL)
    cd ${PKG_PREFIX}/news/bin/filter \
        && mv filter_innd.pl filter_innd.pl.orig \
        && ln -s cleanfeed filter_innd.pl
    ;;
    POST-DEINSTALL)
    cd ${PKG_PREFIX}/news/bin/filter \
        && mv filter_innd.pl.orig filter_innd.pl
    ;;
esac
exit 0