summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1997-02-17 01:48:09 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1997-02-17 01:48:09 +0000
commitf6effc09698fffd2b271341cdd7ed24ed5537527 (patch)
tree65a9facfadc584f0e7e73ecb714ec7de307bf2da
parentenabled mlvwm. (diff)
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. ;-)
-rw-r--r--news/nntpcache/Makefile11
-rw-r--r--news/nntpcache/files/nntpcached.rc4
-rw-r--r--news/nntpcache/pkg-plist8
3 files changed, 18 insertions, 5 deletions
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 <bsd.port.mk>
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