diff options
author | frueauf <frueauf@pkgsrc.org> | 1998-06-06 15:28:35 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1998-06-06 15:28:35 +0000 |
commit | 4a004c1a1ec37beed80c8dde0b8c5150d1094fb7 (patch) | |
tree | 93782144bd5be30e3358aee8e63ca28dcd0e7f75 /news | |
parent | aacca668616835e163e01de32bb8c51d26b51429 (diff) | |
download | pkgsrc-4a004c1a1ec37beed80c8dde0b8c5150d1094fb7.tar.gz |
Initial addition of an nntp multi-server caching daemon.
Fixes pr 4752, based on the pkg by Ty Sarna with minor changes.
Diffstat (limited to 'news')
-rw-r--r-- | news/nntpcache/Makefile | 30 | ||||
-rw-r--r-- | news/nntpcache/files/md5 | 1 | ||||
-rw-r--r-- | news/nntpcache/files/nntpcached.rc | 5 | ||||
-rw-r--r-- | news/nntpcache/patches/patch-aa | 19 | ||||
-rw-r--r-- | news/nntpcache/pkg/COMMENT | 1 | ||||
-rw-r--r-- | news/nntpcache/pkg/DESCR | 9 | ||||
-rw-r--r-- | news/nntpcache/pkg/MESSAGE | 9 | ||||
-rw-r--r-- | news/nntpcache/pkg/PLIST | 14 |
8 files changed, 88 insertions, 0 deletions
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 <install.msg + + ftp: spotless VERSION diff --git a/news/nntpcache/pkg/COMMENT b/news/nntpcache/pkg/COMMENT new file mode 100644 index 00000000000..74d8e9b5f37 --- /dev/null +++ b/news/nntpcache/pkg/COMMENT @@ -0,0 +1 @@ +nntp multi-server caching daemon. diff --git a/news/nntpcache/pkg/DESCR b/news/nntpcache/pkg/DESCR new file mode 100644 index 00000000000..5680911b722 --- /dev/null +++ b/news/nntpcache/pkg/DESCR @@ -0,0 +1,9 @@ +nntpcache (very efficiently) executes on the localhost pretending to be +an NNRP news reading server. In fact, what it does is pass certain NNTP +commands through to real (remote and possibly local) news-servers based +on various pattern matching rules. nntpcache then takes the output from +those servers and caches & indexes it in funky ways (much specific case +magic goes into this). The next time such information is asked for, or +other information which can be logically inferred from the previously +collated information, it is sent directly from the cache, without +consulting the remote servers. diff --git a/news/nntpcache/pkg/MESSAGE b/news/nntpcache/pkg/MESSAGE new file mode 100644 index 00000000000..0da4387c8ff --- /dev/null +++ b/news/nntpcache/pkg/MESSAGE @@ -0,0 +1,9 @@ + +You may want to customize + + ${PREFIX}/etc/nntpcache/access + ${PREFIX}/etc/nntpcache/config + ${PREFIX}/etc/nntpcache/servers + ${PREFIX}/etc/nntpcache/spam.filter + +to fit your personal needs. diff --git a/news/nntpcache/pkg/PLIST b/news/nntpcache/pkg/PLIST new file mode 100644 index 00000000000..d0fe962913c --- /dev/null +++ b/news/nntpcache/pkg/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1 1998/06/06 15:28:36 frueauf Exp $ +etc/nntpcache/access +etc/nntpcache/access.default +etc/nntpcache/config +etc/nntpcache/config.default +etc/nntpcache/servers +etc/nntpcache/servers.default +etc/nntpcache/spam.filter +etc/nntpcache/spam.filter.default +etc/rc.d/nntpcached.sh +sbin/nntpcached +man/man8/nntpcache.8.gz +@dirrm etc/nntpcache +@unexec rm -rf /var/spool/nntpcache |