diff options
author | spz <spz> | 2008-12-21 16:00:04 +0000 |
---|---|---|
committer | spz <spz> | 2008-12-21 16:00:04 +0000 |
commit | 4f8e8444d375c180eca1f7acac1645d84f1b7673 (patch) | |
tree | 017ee3fc9d90394d218a7a1880ee8cbecccb099f /news/inn/files | |
parent | 8573d9b249f63a9f253b25b450cbd5b99239cc7d (diff) | |
download | pkgsrc-4f8e8444d375c180eca1f7acac1645d84f1b7673.tar.gz |
make package DESTDIR'able
Diffstat (limited to 'news/inn/files')
-rw-r--r-- | news/inn/files/innd.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/news/inn/files/innd.sh b/news/inn/files/innd.sh index 5c04e7d80b2..8734017ab8e 100644 --- a/news/inn/files/innd.sh +++ b/news/inn/files/innd.sh @@ -1,11 +1,24 @@ #!/bin/sh # -# $NetBSD: innd.sh,v 1.15 2008/09/03 20:19:39 spz Exp $ +# $NetBSD: innd.sh,v 1.16 2008/12/21 16:00:04 spz Exp $ # # PROVIDE: inn # REQUIRE: DAEMON # KEYWORD: shutdown +if [ -d @INN_DATA_DIR@/etc ] ; then + echo "" + echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING" + echo "" + echo "WARNING: old inn config directory @INN_DATA_DIR@/etc found" + echo "WARNING: please move your config to @PREFIX@/etc/inn" + echo "WARNING: before starting your new inn install" + echo "" + echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING" + echo "" + sleep 120 +fi + if [ -x @INN_PATHBIN@/rc.news -a -s @INN_DATA_DIR@/db/active ] then if [ ! -f @PREFIX@/etc/nntp/server ] @@ -22,6 +35,12 @@ then fi) fi + if [ -f @INN_DATA_DIR@/db/history -a \ + ! -s @INN_DATA_DIR@/db/history ] + then + @INN_PATHBIN@/makedbz -i -o -s 10000 + fi + if [ $# -eq 0 ] then echo -n ' innd' |