Subject: pkg/16398: Update nntpcache to 3.0.1
To: None <gnats-bugs@gnats.netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: netbsd-bugs
Date: 04/18/2002 12:32:52
>Number:         16398
>Category:       pkg
>Synopsis:       Update pkg news/nntpcache to 3.0.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 18 03:33:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Olaf Seibert
>Release:        n/a
>Organization:
	
>Environment:
	
System: NetBSD klei.intern.polderland.nl 1.4.2 NetBSD 1.4.2 (KIELDRECHT) #15: Wed Jul 11 18:02:11 CEST 2001 root@klei.intern.polderland.nl:/usr/src/sys/arch/i386/compile/KIELDRECHT i386


>Description:
	The nntpcache package is out of date.
>How-To-Repeat:
	The nntpcached was misbehaving so I was looking for an update.
>Fix:
	I modified the previous nntpcache package, which turned out
	to be fairly trivial.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	nntpcache
#	nntpcache/files
#	nntpcache/files/nntpcached.rc
#	nntpcache/PLIST
#	nntpcache/MESSAGE
#	nntpcache/DESCR
#	nntpcache/Makefile
#	nntpcache/distinfo
#
echo c - nntpcache
mkdir -p nntpcache > /dev/null 2>&1
echo c - nntpcache/files
mkdir -p nntpcache/files > /dev/null 2>&1
echo x - nntpcache/files/nntpcached.rc
sed 's/^X//' >nntpcache/files/nntpcached.rc << 'END-of-nntpcache/files/nntpcached.rc'
X#!/bin/sh
X# $NetBSD: nntpcached.rc,v 1.1 1998/06/06 15:28:36 frueauf Exp $
X
XPATH=%%PREFIX%%/sbin:/bin:/usr/bin
X[ -x %%PREFIX%%/sbin/nntpcached ] && nntpcached && echo -n ' nntpcached'
END-of-nntpcache/files/nntpcached.rc
echo x - nntpcache/PLIST
sed 's/^X//' >nntpcache/PLIST << 'END-of-nntpcache/PLIST'
X@comment $NetBSD: PLIST,v 1.2 2002/02/15 10:12:56 skrll Exp $
Xetc/nntpcache/VERSION
Xetc/nntpcache/innreport.conf-dist
Xetc/nntpcache/innreport.pl
Xetc/nntpcache/innreport.pm
Xetc/nntpcache/newshound.conf-dist
Xetc/nntpcache/nntpcache.config-dist
Xetc/nntpcache/nntpcache.access-dist
Xetc/nntpcache/nntpcache.servers-dist
Xetc/nntpcache/pubring.asc-dist
Xetc/nntpcache/pubring.pgp-dist
Xetc/nntpcache/spam.filter
Xetc/nntpcache/http/index.html
Xetc/nntpcache/http/moose.gif
Xetc/nntpcache/http/nntpcache.jpg
X@exec ${MKDIR} -p %D/etc/nntpcache/http/innreport/pics
X@exec ${CHOWN} -R news:news %D/etc/nntpcache
X@exec ${CHMOD} 700 %D/etc/nntpcache
X@unexec ${RMDIR} -p %D/etc/nntpcache/http/innreport/pics 2>/dev/null || true
Xetc/rc.d/nntpcached
Xsbin/innreport.sh
Xsbin/newshound
Xsbin/nntpcached
Xlibexec/unixauth
Xlibexec/nntpcache-gdb.sh
Xlibexec/nntpcache.gdb
Xman/man8/newshound.8
Xman/man8/nntpcached.8
X@unexec ${RMDIR} etc/nntpcache 2>/dev/null || true
X@exec ${MKDIR} -p /var/spool/nntpcache
X@exec cp %D/etc/nntpcache/VERSION /var/spool/nntpcache/VERSION
X@exec ${CHOWN} -R news:news /var/spool/nntpcache
X@exec ${CHMOD} 700 /var/spool/nntpcache
X@unexec ${RM} -rf /var/spool/nntpcache
Xshare/doc/nntpcache/INSTALL
Xshare/doc/nntpcache/README
Xshare/doc/nntpcache/FAQ
Xshare/doc/nntpcache/FAQ.html
Xshare/doc/nntpcache/LICENSING
X@dirrm share/doc/nntpcache
END-of-nntpcache/PLIST
echo x - nntpcache/MESSAGE
sed 's/^X//' >nntpcache/MESSAGE << 'END-of-nntpcache/MESSAGE'
X======================================================================
X$NetBSD: MESSAGE,v 1.1 2001/10/31 21:03:47 zuntum Exp $
X
XYou may want to customize
X
X	${PREFIX}/etc/nntpcache/nntpcache.access
X	${PREFIX}/etc/nntpcache/nntpcache.config
X	${PREFIX}/etc/nntpcache/nntpcache.servers
X
Xto fit your personal needs.
X
X======================================================================
END-of-nntpcache/MESSAGE
echo x - nntpcache/DESCR
sed 's/^X//' >nntpcache/DESCR << 'END-of-nntpcache/DESCR'
XNNTPCache is Squid for news (plus lots more).
X
XNNTPCache (very efficiently, using shared memory, COW, mmaps, etc)
Xexecutes on the localhost pretending to be an NNRP news reading
Xserver. In fact, what it does is pass certain NNTP commands through
Xto real (remote and possibly local) news-servers based on various
Xpattern matching rules. nntpcache then takes the output from those
Xservers and caches & indexes it in funky ways (much specific case
Xmagic goes into this).  The next time such information is asked
Xfor, or other information which can be logically inferred from the
Xpreviously collated information, it is sent directly from the cache,
Xwithout consulting the remote servers. NNTPCache can transparently
Xmerge multiple servers, (permiting local newsgroups with remote
XNNTP feeds), filter articles, xovers, and headers based on weighted
Xregular expressions, and has built in NoCem/PGP (anti-spam) support
X(see www.nntpcache.org or www.nocem.org for details). NNTPcache
Xalso supports a wide variety of authentication types, including
XLDAP, /etc/{passwd,shadow}, generic unixpipe and RADIUS.
END-of-nntpcache/DESCR
echo x - nntpcache/Makefile
sed 's/^X//' >nntpcache/Makefile << 'END-of-nntpcache/Makefile'
X# $NetBSD: Makefile,v 1.11 2001/09/27 23:18:34 jlam Exp $
X# FreeBSD Id: Makefile,v 1.11 1998/02/01 03:04:11 itojun Exp
X#
X
XDISTNAME=		nntpcache-3.0.1
XCATEGORIES=		news
XMASTER_SITES=		ftp://ftp.nntpcache.org/pub/nntpcache/ \
X			ftp://ftp.cs.tu-berlin.de/pub/net/news/nntpcache/ \
X			ftp://ftp.sbs.de/pub/news/servers/nntpcache/ \
X			ftp://ftp.tuwien.ac.at/z134/infosys/servers/news/nntpcache/ \
X			ftp://ftp.ntua.gr/pub/net/news/nntpcache/ \
X			ftp://ftp.task.gda.pl/mirror/ftp.nntpcache.org/pub/nntpcache/ \
X			ftp://ftp.eos.hokudai.ac.jp/pub/network/news/nntpcache/ \
X			ftp://ftp.win.ne.jp/pub/network/news/nntpcache/ \
X			ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/news/nntpcache/
X
XMAINTAINER=		packages@netbsd.org
XHOMEPAGE=		http://www.nntpcache.org/
XCOMMENT=		nntp multi-server caching daemon
X
XLICENSE=		fee-based-commercial-use
X
X# enable ldap support?
XNNTP_USE_LDAP?=		no
X# enable pgp signed nocem support?
XNNTP_USE_PGP?=		no
X
X.if ${NNTP_USE_LDAP} == yes
XDEPENDS+=		openldap-[0-9]*:../../databases/openldap
X.endif
X
X.if ${NNTP_USE_PGP} ==	yes
XDEPENDS+=		pgp-2.*:../../security/pgp2
X.endif
X
XBUILD_DEFS+=	NNTP_USE_LDAP NNTP_USE_PGP
X
XGNU_CONFIGURE=		yes
XCONFIGURE_ARGS+=	--localstatedir=/var/spool
XCONFIGURE_ENV+=		INSTALL_SCRIPT="${INSTALL_SCRIPT}"
XUSE_GMAKE=		yes
X
XINSTALL_TARGET=		SUBDIRS="cf src filters http doc pgp contrib/newshound innreport scripts unixauth" \
X			install
X
Xpost-configure:
X	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g"  \
X		${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
X
Xpost-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh ${PREFIX}/etc/rc.d/nntpcached
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nntpcache
X	cd ${WRKSRC} && ${INSTALL_DATA} README INSTALL FAQ FAQ.html LICENSING \
X		${PREFIX}/share/doc/nntpcache/
X
X.include "../../mk/bsd.pkg.mk"
END-of-nntpcache/Makefile
echo x - nntpcache/distinfo
sed 's/^X//' >nntpcache/distinfo << 'END-of-nntpcache/distinfo'
X$NetBSD: distinfo,v 1.2 2001/04/19 13:37:54 agc Exp $
X
XSHA1 (nntpcache-3.0.1.tar.gz) = 68ced9471a1e2a2dd7d1bf37477690a5b80bcf7d
XSize (nntpcache-3.0.1.tar.gz) = 1085258 bytes
END-of-nntpcache/distinfo
exit

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder --They that can give up essential 
\X/ land.nl --liberty to purchase a little temporary safety
--------------deserve neither liberty or safety. - Benjamin Franklin, 1759
---People will accept your ideas much more readily if you tell them that
---Benjamin Franklin said it first. - Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: