diff options
author | leeym <leeym@FreeBSD.org> | 2004-12-19 00:45:06 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-12-19 00:45:06 +0000 |
commit | 26b389c40d5dbd0402cf635e7049b464ee3d9469 (patch) | |
tree | 218443824aba831a94490e45279b6f8081e299a6 /news/cleanfeed/pkg-install | |
parent | f768c41644af8db6de87fe3d615bed0d5e428f9e (diff) | |
download | FreeBSD-ports-26b389c40d5dbd0402cf635e7049b464ee3d9469.zip FreeBSD-ports-26b389c40d5dbd0402cf635e7049b464ee3d9469.tar.gz |
- add PKGINSTALL / PKGDEINSTALL to backup and restore file(s).
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 |