summaryrefslogtreecommitdiff
path: root/news/inn
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-07-21 20:38:55 +0000
committertron <tron@pkgsrc.org>1999-07-21 20:38:55 +0000
commit8e1e001c9cae894dd971240298f75fd672d06059 (patch)
tree2559d3ae59ac84daf9ce1c030dc4fe5ca0d78597 /news/inn
parent51dcf0b11590836c3b408e037b8a88d3b47b6f3b (diff)
downloadpkgsrc-8e1e001c9cae894dd971240298f75fd672d06059.tar.gz
Add standard script to launch INN at system startup.
Diffstat (limited to 'news/inn')
-rw-r--r--news/inn/Makefile6
-rw-r--r--news/inn/files/innd.sh10
-rw-r--r--news/inn/pkg/PLIST3
3 files changed, 17 insertions, 2 deletions
diff --git a/news/inn/Makefile b/news/inn/Makefile
index ea025877925..93393e6ea81 100644
--- a/news/inn/Makefile
+++ b/news/inn/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1999/07/18 23:34:12 tron Exp $
+# $NetBSD: Makefile,v 1.5 1999/07/21 20:38:55 tron Exp $
DISTNAME= inn-2.2
CATEGORIES= news
@@ -32,6 +32,9 @@ INSTALL_FILE= ${WRKDIR}/INSTALL
#INSTALL_TARGET= update
post-build:
+ ${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
+ -e 's#@@PREFIX@@#${PREFIX}#g' \
+ ${FILESDIR}/innd.sh >${WRKDIR}/innd.sh
.for FILE in DEINSTALL INSTALL
${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
-e 's#@@PREFIX@@#${PREFIX}#g' \
@@ -47,6 +50,7 @@ post-install:
${EGREP} -v '\.(in|orig)$'`; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/inn; \
done
+ ${INSTALL_SCRIPT} ${WRKDIR}/innd.sh ${PREFIX}/etc/rc.d
# @${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
diff --git a/news/inn/files/innd.sh b/news/inn/files/innd.sh
new file mode 100644
index 00000000000..4594f56e95c
--- /dev/null
+++ b/news/inn/files/innd.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# $NetBSD: innd.sh,v 1.1 1999/07/21 20:38:56 tron Exp $
+#
+if [ -x @@PREFIX@@/bin/inndstart -a -s @@INN_DATA_DIR@@/db/active ];
+then
+ @@PREFIX@@/bin/inndstart >/dev/null 2>&1
+ echo -n ' innd'
+fi
+exit 0
diff --git a/news/inn/pkg/PLIST b/news/inn/pkg/PLIST
index afe8fcdc730..c868358eb13 100644
--- a/news/inn/pkg/PLIST
+++ b/news/inn/pkg/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 1999/07/18 23:34:14 tron Exp $
+@comment $NetBSD: PLIST,v 1.3 1999/07/21 20:38:56 tron Exp $
bin/actived
bin/actmerge
bin/actsync
@@ -95,6 +95,7 @@ bin/sm
bin/startinnfeed
bin/tally.control
bin/writelog
+etc/rc.d/innd.sh
lib/docheckgroups
lib/innreport_inn.pm
lib/innshellvars