diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-12-19 00:45:06 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-12-19 00:45:06 +0000 |
commit | a72e57e994fe7b8459f873f800a60f7fd56c57d3 (patch) | |
tree | 99d5c7b28dc2ecddf848a6a95ddc75c3401b0bfc /news/cleanfeed/pkg-install | |
parent | Improve pkg-plist. (diff) |
- add PKGINSTALL / PKGDEINSTALL to backup and restore file(s).
Notes
Notes:
svn path=/head/; revision=124443
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 000000000000..c46663b49090 --- /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 |