From tilman@tl.kom.tuwien.ac.at  Thu Feb 28 03:29:59 2002
Return-Path: <tilman@tl.kom.tuwien.ac.at>
Received: from tl.kom.tuwien.ac.at (tl.kom.tuwien.ac.at [128.130.34.35])
	by hub.freebsd.org (Postfix) with ESMTP id EAD7B37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Feb 2002 03:29:57 -0800 (PST)
Received: (from tilman@localhost)
	by tl.kom.tuwien.ac.at (8.11.6/8.11.6) id g1SBYL993952;
	Thu, 28 Feb 2002 12:34:21 +0100 (CET)
	(envelope-from tilman)
Message-Id: <200202281134.g1SBYL993952@tl.kom.tuwien.ac.at>
Date: Thu, 28 Feb 2002 12:34:21 +0100 (CET)
From: Tilman Linneweh <tilman@arved.de>
Reply-To: Tilman Linneweh <tilman@arved.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: tilman@arved.de
Subject: New Port: news/newscache 0.99.19
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35401
>Category:       ports
>Synopsis:       New Port: news/newscache 0.99.19
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 03:30:04 PST 2002
>Closed-Date:    Tue Mar 12 14:53:32 PST 2002
>Last-Modified:  Tue Mar 12 14:53:50 PST 2002
>Originator:     Tilman Linneweh
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Vienna University of Technology
>Environment:
System: FreeBSD tl.kom.tuwien.ac.at 4.5-STABLE FreeBSD 4.5-STABLE #3: Tue Jan 29 21:35:27 CET 2002 tilman@tl.kom.tuwien.ac.at:/usr/obj/usr/src/sys/MYKERNEL i386


	
>Description:
NewsCache is a free cache server for USENET News available under the GPL

	NOTE: This PR supersedes ports/35351
	
>How-To-Repeat:
	
>Fix:

# 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:
#
#       .
#       ./pkg-comment
#       ./pkg-descr
#       ./Makefile
#       ./distinfo
#       ./files
#       ./files/patch-aa
#       ./files/patch-ab
#       ./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XNewsCache is a free cache server for USENET News
END-of-./pkg-comment
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XWhat is NewsCache?
X
XNewsCache is a free cache server for USENET News available under the GNU
XGeneral Public License. NewsCache can be plugged in between your news
Xreader(s) and your news server. NewsCache acts to news readers like a news
Xserver and retrieves news articles from the news server like a news
Xreader. Whenever, a client requests an article from NewsCache, NewsCache
Xchecks whether the article has already been stored in the cache area. If
Xthis is the case, the article is sent directly to its client. Otherwise,
Xthe article is requested from the upstream news server, stored in the
Xcache area and sent back to the client.
X
XAuthor: Thomas Gschwind
XWWW: http://www.infosys.tuwien.ac.at/NewsCache/
X
X- arved
Xfreebsdports@arved.de
END-of-./pkg-descr
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection Makefile for:   newscache
X# Date created:                23 February 2002
X# Whom:                        Tilman Linneweh <freebsdports@arved.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      newscache
XPORTVERSION=   0.99.19
XCATEGORIES=    news
XMASTER_SITES=  http://www.infosys.tuwien.ac.at/NewsCache/download/ \
X               http://members.aon.at/hstraub/linux/
XDISTNAME=       NewsCache-${PORTVERSION}
XWRKSRC=         ${WRKDIR}/NewsCache
X
XMAINTAINER=    freebsdports@arved.de
X
XHAS_CONFIGURE= yes
XMAN5=          newscache.conf.5
XMAN8=          NewsCache.8 NewsCacheClean.8 updatenews.8
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (NewsCache-0.99.19.tar.gz) = 70b1e5316197a5636fa9617a23f4089c
END-of-./distinfo
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-aa
sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa'
X--- src/NewsCache.cc.orig      Sat Feb 23 18:06:38 2002
X+++ src/NewsCache.cc   Sat Feb 23 18:06:48 2002
X@@ -18,7 +18,6 @@
X  */
X #include "config.h"
X
X-#include <crypt.h>
X #include <ctype.h>
X #include <unistd.h>
X #include <string.h>
END-of-./files/patch-aa
echo x - ./files/patch-ab
sed 's/^X//' >./files/patch-ab << 'END-of-./files/patch-ab'
X--- doc/NewsCache.texinfo.orig Sat Feb 23 18:59:36 2002
X+++ doc/NewsCache.texinfo      Sat Feb 23 19:03:53 2002
X@@ -1,5 +1,9 @@
X \input texinfo @c -*-texinfo-*-
X @c %**start of header
X+@dircategory Usenet tools
X+@direntry
X+* NewsCache: (newscache).          A free cache server for USENET News
X+@end direntry
X @setfilename NewsCache.info
X @settitle NewsCache
X
END-of-./files/patch-ab
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/updatenews
Xetc/newscache.conf-dist
Xsbin/NewsCache
Xsbin/NewsCacheClean
Xsbin/accesslog
Xsbin/cachestat
Xsbin/hostlog
Xsbin/hoststat
X@unexec install-info --delete %D/info/NewsCache.info %D/info/dir
Xinfo/NewsCache.info
X@exec install-info %D/info/NewsCache.info %D/info/dir
END-of-./pkg-plist
exit

>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@freebsd.org>
To: Tilman Linneweh <tilman@arved.de>
Cc: bug-followup@freebsd.org
Subject: Re: ports/35401: New Port: news/newscache 0.99.19
Date: Tue, 5 Mar 2002 10:54:07 +0200

 Adding too audit trail:
 
 Date: 28 Feb 2002 12:47:40 +0100
 From: Tilman Linneweh <tilman@arved.de>
  
 Am Do , 2002-02-28 um 12.34 schrieb Tilman Linneweh:
 > 	NOTE: This PR supersedes ports/35351
  
 Oooops, typo....ports/35251 is correct.

From: Tilman Linneweh <tilman@arved.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/35401: New Port: news/newscache 0.99.19
Date: 08 Mar 2002 14:03:34 +0100

 --=-fQkMxcoNncIt4JGcQTRB
 Content-Type: multipart/mixed; boundary="=-kXdeaV/kaOJL3RV3ER1T"
 
 
 --=-kXdeaV/kaOJL3RV3ER1T
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 Please add this patch to the files directory.
 As this port isn't committed yet :(, there is no need to change
 PORTREVISION.
 
 regards arved
 
 
 --=-kXdeaV/kaOJL3RV3ER1T
 Content-Disposition: attachment; filename=patch-fillHostStruct
 Content-Type: text/plain; charset=ISO-8859-15
 Content-Transfer-Encoding: quoted-printable
 
 --- src/NewsCache.cc	19 Feb 2002 21:12:15 -0000	1.8
 +++ src/NewsCache.cc	8 Mar 2002 10:50:56 -0000	1.11
 @@ -311,12 +311,22 @@
 =20
  	if ( strcmp(pHost, "DEFAULT") =3D=3D 0 ) {
  		addr->sin_addr.s_addr =3D INADDR_ANY;
 -	} else if ( ((addr->sin_addr.s_addr =3D inet_addr(pHost)) =3D=3D INADDR_N=
 ONE) &&=20
 -	  ((host =3D gethostbyname (pHost)) =3D=3D NULL) ) {
 -		slog.p(Logger::Error) << fname << ": gethostbyname (" << pHost \
 -		<< ") error: " << strerror(errno) << "\n";
 -		if (portFlg) *p =3D ':';
 -		return -1;
 +	} else if ( (addr->sin_addr.s_addr =3D inet_addr(pHost)) =3D=3D INADDR_NO=
 NE) {=20
 +		if  ((host =3D gethostbyname (pHost)) =3D=3D NULL | host->h_addrtype !=
 =3D AF_INET) {
 +			if (portFlg) *p =3D ':';
 +			slog.p(Logger::Error) << fname << ": gethostbyname (" << pHost \
 +			<< ") error: " << strerror(errno) << "\n";
 +			return -1;
 +		} else {
 +			if (host->h_addr_list[0]) {
 +				memcpy (&addr->sin_addr.s_addr, host->h_addr_list[0], host->h_length);
 +			} else {
 +				if (portFlg) *p =3D ':';
 +				slog.p(Logger::Error) << fname << ":host->h_addr_list[0] of "
 +				<< pHost << "not valid\n";
 +				return -1;
 +			}
 +		}=09
  	}
  	if (portFlg) *p =3D ':';
 =20
 
 --=-kXdeaV/kaOJL3RV3ER1T--
 
 --=-fQkMxcoNncIt4JGcQTRB
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: Dies ist ein digital signierter Nachrichtenteil
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: Weitere Infos: siehe http://www.gnupg.org
 
 iD8DBQA8iLamEH3do0kMxDoRAnyPAJ9wLQAIdhMPL9mHTNGAaGb8fjdONACfQsbT
 6x3Q8mJobfyfIQVbm+kyzUc=
 =XBjl
 -----END PGP SIGNATURE-----
 
 --=-fQkMxcoNncIt4JGcQTRB--

From: Tilman Linneweh <tilman@arved.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/35401: New Port: news/newscache 0.99.19
Date: 08 Mar 2002 17:29:31 +0100

 --=-MMKpPL7uTntMVVUtOT9v
 Content-Type: multipart/mixed; boundary="=-3aXYPs8BBv7GfaJAKkmv"
 
 
 --=-3aXYPs8BBv7GfaJAKkmv
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 
 Another patch for this port.
 As this port isn't committed yet :(, there is no need to change
 PORTREVISION.
 
 regards arved
 
 
 --=-3aXYPs8BBv7GfaJAKkmv
 Content-Disposition: attachment; filename=patch-hanging-processes
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain; charset=ISO-8859-15
 
 --- src/NewsCache.cc	19 Feb 2002 21:12:15 -0000	1.8
 +++ src/NewsCache.cc	8 Mar 2002 10:50:56 -0000	1.11
 @@ -1627,7 +1637,12 @@
        // success
        if(clt_pid=3D=3D0) {
  	// child
 +	int one=3D1;
  	close(sock);
 +    	if(setsockopt(clt_fd,SOL_SOCKET,SO_KEEPALIVE,
 +		  (char*)&one,sizeof(int))<0) {
 +      		slog.p(Logger::Error) << "client setsockopt failed: " << strerror(=
 errno) << "\n";
 +    	}
  	nnrpd(clt_fd);
  	close(clt_fd);
  	exit(0);
 
 --=-3aXYPs8BBv7GfaJAKkmv--
 
 --=-MMKpPL7uTntMVVUtOT9v
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: Dies ist ein digital signierter Nachrichtenteil
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: Weitere Infos: siehe http://www.gnupg.org
 
 iD8DBQA8iObqEH3do0kMxDoRAottAJ0eCigEIZjOYKnvhAqQ4GcOzKRpEACfY7ET
 17mIBgk/ntL3UFE6uZuYaCA=
 =JXVM
 -----END PGP SIGNATURE-----
 
 --=-MMKpPL7uTntMVVUtOT9v--
State-Changed-From-To: open->closed 
State-Changed-By: pat 
State-Changed-When: Tue Mar 12 14:53:32 PST 2002 
State-Changed-Why:  
Superceded by PR 35827 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35401 
>Unformatted:
