aboutsummaryrefslogtreecommitdiffstats
path: root/news/nntpcache
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-17 09:48:09 +0800
committerobrien <obrien@FreeBSD.org>1997-02-17 09:48:09 +0800
commitc6a772e74532b844cc9166158bec31aaf5db7413 (patch)
tree51b3a85521d040e436365a9598898b1705961bc7 /news/nntpcache
parent7f275b4e0b268900e8fb1c9e20fd9abba4dac893 (diff)
downloadfreebsd-ports-gnome-c6a772e74532b844cc9166158bec31aaf5db7413.tar.gz
freebsd-ports-gnome-c6a772e74532b844cc9166158bec31aaf5db7413.tar.zst
freebsd-ports-gnome-c6a772e74532b844cc9166158bec31aaf5db7413.zip
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. ;-)
Diffstat (limited to 'news/nntpcache')
-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