diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-09-26 06:32:40 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-09-26 06:32:40 +0000 |
commit | 5471197f6a21a7f7a9a56fb0cae4f787c13b09c4 (patch) | |
tree | dfc86d4f25897bc33a5bf202b6cf0cd40eff0ef6 /news/inn/pkg-install | |
parent | I forgot to remove files/patch-Makefile (diff) |
update: news/inn
- Now config files are not removed
- add many knobs
- Use USE_OPENSSL hook
PR: 57160
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
Notes
Notes:
svn path=/head/; revision=89416
Diffstat (limited to 'news/inn/pkg-install')
-rw-r--r-- | news/inn/pkg-install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/news/inn/pkg-install b/news/inn/pkg-install index 78f7bdb4cc1f..fa27dc71c03b 100644 --- a/news/inn/pkg-install +++ b/news/inn/pkg-install @@ -2,10 +2,28 @@ PKGNAME=$1 [ ! -n PKG_PREFIX ] && exit 1 +PKG_PREFIX=${PKG_PREFIX:-/usr/local} case $2 in PRE-INSTALL) ;; + CHECK-CONF) + NEWSBASE=${PKG_PREFIX}/news + echo "Checking for configuration files" + for f in $(find ${NEWSBASE}/etc/ -name "*.dist" -type f) + do + REALFILE=${f%%.dist} + echo -n "Checking if ${REALFILE} exists: " + if [ -e ${REALFILE} ] + then + echo "[YES]" + else + echo "[NO]" + echo " Installing ${f} to ${REALFILE}" + cp ${f} ${REALFILE} + fi + done + ;; POST-INSTALL) NEWSBASE=${PKG_PREFIX}/news install -d -o news -g news -m 755 \ |