From 4a004c1a1ec37beed80c8dde0b8c5150d1094fb7 Mon Sep 17 00:00:00 2001 From: frueauf Date: Sat, 6 Jun 1998 15:28:35 +0000 Subject: Initial addition of an nntp multi-server caching daemon. Fixes pr 4752, based on the pkg by Ty Sarna with minor changes. --- news/nntpcache/Makefile | 30 ++++++++++++++++++++++++++++++ news/nntpcache/files/md5 | 1 + news/nntpcache/files/nntpcached.rc | 5 +++++ news/nntpcache/patches/patch-aa | 19 +++++++++++++++++++ news/nntpcache/pkg/COMMENT | 1 + news/nntpcache/pkg/DESCR | 9 +++++++++ news/nntpcache/pkg/MESSAGE | 9 +++++++++ news/nntpcache/pkg/PLIST | 14 ++++++++++++++ 8 files changed, 88 insertions(+) create mode 100644 news/nntpcache/Makefile create mode 100644 news/nntpcache/files/md5 create mode 100644 news/nntpcache/files/nntpcached.rc create mode 100644 news/nntpcache/patches/patch-aa create mode 100644 news/nntpcache/pkg/COMMENT create mode 100644 news/nntpcache/pkg/DESCR create mode 100644 news/nntpcache/pkg/MESSAGE create mode 100644 news/nntpcache/pkg/PLIST (limited to 'news') diff --git a/news/nntpcache/Makefile b/news/nntpcache/Makefile new file mode 100644 index 00000000000..698b779b743 --- /dev/null +++ b/news/nntpcache/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1 1998/06/06 15:28:35 frueauf Exp $ +# FreeBSD Id: Makefile,v 1.6 1997/07/31 06:36:03 asami Exp +# + +DISTNAME= nntpcache-1.0.7.1 +CATEGORIES= news +MASTER_SITES= ftp://nntpcache.org/pub/nntpcache/ \ + ftp://ftp.ntnu.no/pub/unix/news/ \ + ftp://ftp.nethelp.no/pub/unix/news/ \ + ftp://suburbia.net/pub/nntpcache/ + +MAINTAINER= packages@netbsd.org + +GNU_CONFIGURE= YES +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 +.for file in config access servers spam.filter + @${CP} ${PREFIX}/etc/nntpcache/${file} ${PREFIX}/etc/nntpcache/${file}.default +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/news/nntpcache/files/md5 b/news/nntpcache/files/md5 new file mode 100644 index 00000000000..05e2b7d0194 --- /dev/null +++ b/news/nntpcache/files/md5 @@ -0,0 +1 @@ +MD5 (nntpcache-1.0.7.1.tar.gz) = 1aebe46659ee0b4d8bb5eac77c12d8eb diff --git a/news/nntpcache/files/nntpcached.rc b/news/nntpcache/files/nntpcached.rc new file mode 100644 index 00000000000..a7148b686b5 --- /dev/null +++ b/news/nntpcache/files/nntpcached.rc @@ -0,0 +1,5 @@ +#!/bin/sh +# $NetBSD: nntpcached.rc,v 1.1 1998/06/06 15:28:36 frueauf Exp $ + +PATH=%%PREFIX%%/sbin:/bin:/usr/bin +[ -x %%PREFIX%%/sbin/nntpcached ] && nntpcached && echo -n ' nntpcached' diff --git a/news/nntpcache/patches/patch-aa b/news/nntpcache/patches/patch-aa new file mode 100644 index 00000000000..6f3972e6c39 --- /dev/null +++ b/news/nntpcache/patches/patch-aa @@ -0,0 +1,19 @@ +--- ./Makefile.in.org Fri Nov 8 12:47:37 1996 ++++ ./Makefile.in Mon Jan 6 22:20:33 1997 +@@ -119,8 +119,14 @@ + $(INSTALL_PROGRAM) nntpcached $(sbindir)/nntpcached + -strip $(sbindir)/nntpcached + for d in $(SUBDIRS) ; do { ( cd $$d && $(MAKE) $@ ) ;} done +- -for n in config access servers ; do { cp -i nntpcache.$$n $(CONFIG_DIR)/$$n ;} done +- -cp -i filters/* $(CONFIG_DIR) ++ -for n in config access servers ; do { if [ -e $(CONFIG_DIR)/$$n ]; \ ++ then cp nntpcache.$$n $(CONFIG_DIR)/$$n-dist; \ ++ else cp nntpcache.$$n $(CONFIG_DIR)/$$n ; \ ++ fi } done ++ -cd filters && for n in * ; do { if [ -e $(CONFIG_DIR)/$$n ]; \ ++ then cp $$n $(CONFIG_DIR)/$$n-dist; \ ++ else cp $$n $(CONFIG_DIR)/$$n ; \ ++ fi } done + cat