From f6effc09698fffd2b271341cdd7ed24ed5537527 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 17 Feb 1997 01:48:09 +0000 Subject: Add etc/rc.d script to kick off nntpcached at boot. Remove *.bak config files. Closes-PR: ports/1813 Forgotten by: peter Please don't forget to close PR's. Duplicated effort is effort that could be used elsewhere. ;-) --- news/nntpcache/Makefile | 11 ++++++++++- news/nntpcache/files/nntpcached.rc | 4 ++++ news/nntpcache/pkg-plist | 8 ++++---- 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 news/nntpcache/files/nntpcached.rc (limited to 'news/nntpcache') diff --git a/news/nntpcache/Makefile b/news/nntpcache/Makefile index 2d51cc6ba23a..79df70d3a45e 100644 --- a/news/nntpcache/Makefile +++ b/news/nntpcache/Makefile @@ -3,7 +3,7 @@ # Date created: 6 January 1997 # Whom: proff@suburbia.net # -# $Id: Makefile,v 1.1.1.1 1997/01/06 15:28:33 peter Exp $ +# $Id: Makefile,v 1.2 1997/01/07 06:46:45 asami Exp $ # DISTNAME= nntpcache-1.0.1 @@ -13,6 +13,15 @@ MASTER_SITES= ftp://nntpcache.org/pub/nntpcache/ MAINTAINER= nntpcache@nntpcache.org GNU_CONFIGURE= TRUE +CONFIGURE_ARGS+= --localstatedir=/var/spool MAN8= nntpcache.8 +post-configure: + @sed -e "s:%%PREFIX%%:${PREFIX}:g" \ + ${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh ${PREFIX}/etc/rc.d + @${RM} ${PREFIX}/etc/nntpcache/*.bak + .include diff --git a/news/nntpcache/files/nntpcached.rc b/news/nntpcache/files/nntpcached.rc new file mode 100644 index 000000000000..7d152a697284 --- /dev/null +++ b/news/nntpcache/files/nntpcached.rc @@ -0,0 +1,4 @@ +#!/bin/sh + +PATH=%%PREFIX%%/sbin:/bin:/usr/bin +[ -x %%PREFIX%%/sbin/nntpcached ] && nntpcached && echo -n ' nntpcached' diff --git a/news/nntpcache/pkg-plist b/news/nntpcache/pkg-plist index 0b90c4ab1698..f28b9ec00d2e 100644 --- a/news/nntpcache/pkg-plist +++ b/news/nntpcache/pkg-plist @@ -1,9 +1,9 @@ -etc/nntpcache/config etc/nntpcache/access +etc/nntpcache/config etc/nntpcache/servers etc/nntpcache/spam.filter -etc/nntpcache/spam.filter.bak +etc/rc.d/nntpcached.sh sbin/nntpcached man/man8/nntpcache.8.gz -@unexec rm -rf %D/newscache -@dirrm etc/nntpcache +@dirrm %D/etc/nntpcache +@unexec rm -rf /var/spool/nntpcache -- cgit v1.2.3