diff options
Diffstat (limited to 'news/cleanfeed/pkg-install')
-rw-r--r-- | news/cleanfeed/pkg-install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/news/cleanfeed/pkg-install b/news/cleanfeed/pkg-install new file mode 100644 index 0000000..c46663b --- /dev/null +++ b/news/cleanfeed/pkg-install @@ -0,0 +1,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 |