aboutsummaryrefslogtreecommitdiffstats
path: root/news/inn-current/pkg-install
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-09-26 14:32:40 +0800
committerdaichi <daichi@FreeBSD.org>2003-09-26 14:32:40 +0800
commit592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63 (patch)
tree2a27e2c74674c54778e55220b04ba613b8881b85 /news/inn-current/pkg-install
parent8666323e06d31ce6185f8969559532f370184ece (diff)
downloadfreebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.tar.gz
freebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.tar.zst
freebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.zip
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)
Diffstat (limited to 'news/inn-current/pkg-install')
-rw-r--r--news/inn-current/pkg-install18
1 files changed, 18 insertions, 0 deletions
diff --git a/news/inn-current/pkg-install b/news/inn-current/pkg-install
index 78f7bdb4cc1f..fa27dc71c03b 100644
--- a/news/inn-current/pkg-install
+++ b/news/inn-current/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 \