From 8e1e001c9cae894dd971240298f75fd672d06059 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 21 Jul 1999 20:38:55 +0000 Subject: Add standard script to launch INN at system startup. --- news/inn/Makefile | 6 +++++- news/inn/files/innd.sh | 10 ++++++++++ news/inn/pkg/PLIST | 3 ++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 news/inn/files/innd.sh (limited to 'news/inn') 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 -- cgit v1.2.3