Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2004 11:07:07 +0300
From:      Andrey Slusar <vasallia@ukr.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/66441: [NEW PORT] news/newsstar: Transfer news between a local NNTP server (INN or sn)
Message-ID:  <E1BN5oZ-000292-Gx@santinel.home.ua>
Resent-Message-ID: <200405100810.i4A8ANgv037381@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         66441
>Category:       ports
>Synopsis:       [NEW PORT] news/newsstar: Transfer news between a local NNTP server (INN or sn)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 10 01:10:22 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Thu May 6 23:50:15 EEST 2004 root@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	Newsstar fetches news from a number of remote NNTP servers  and  posts
	it to a local server (INN or sn), and also posts outgoing articles from
	the local server to the remote ones. It uses a configurable  number  of
	multiple  processes or "threads" to maximise bandwidth utilisation. The
	threads are coordinated to avoid downloading  multiple  copies  of  the
	same article.
>How-To-Repeat:
	N/A
>Fix:
--- newsstar.port begins here ---
# 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:
#
#	/usr/ports/news/newsstar/
#	/usr/ports/news/newsstar/Makefile
#	/usr/ports/news/newsstar/distinfo
#	/usr/ports/news/newsstar/pkg-descr
#	/usr/ports/news/newsstar/pkg-plist
#
echo c - /usr/ports/news/newsstar/
mkdir -p /usr/ports/news/newsstar/ > /dev/null 2>&1
echo x - /usr/ports/news/newsstar/Makefile
sed 's/^X//' >/usr/ports/news/newsstar/Makefile << 'END-of-/usr/ports/news/newsstar/Makefile'
X# New ports collection makefile for:   newsstar
X# Date created:        9 May 2004
X# Whom:                Andrey Slusar <vasallia@ukr.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	newsstar
XPORTVERSION=	1.1
XCATEGORIES=	news
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=${PORTNAME}
X
XMAINTAINER=	vasallia@ukr.net
XCOMMENT=	Transfer news between a local NNTP server (INN or sn)
X
X.if !defined(WITH_SN)
XBUILD_DEPENDS=	${LOCALBASE}/news/bin/innd:${PORTSDIR}/news/inn
X.else
XRUN_DEPENDS=	${LOCALBASE}/sbin/snntpd:${PORTSDIR}/news/sn
X.endif
X
X.if !defined(NEWSSTAR_WITHOUT_SSL)
XCONFIGURE_ARGS+=--disable-ssl
X.endif
X
X.if !defined(WITH_SN)
XCONFIGURE_ARGS+=--with-inn-path=${PREFIX}/news/bin
X.endif
X
XCONFIGURE_ARGS+=--with-conf-dir=${PREFIX}/etc/newsstar \
X		--with-rc-dir=/var/spool/newsstar/lib \
X		--with-incoming-dir=/var/spool/newsstar/incoming
X
XUSE_PERL5=	yes
XHAS_CONFIGURE=	yes
X
XMAN1=		newsstar.1
XNS_DOCS=	AUTHORS COPYING INSTALL NEWS README TODO docs/QuickStart docs/manual.txt \
X		docs/index.html docs/ar01s02.html docs/ar01s03.html docs/ar01s04.html \
X		docs/ar01s05.html docs/ar01s06.html docs/ar01s07.html docs/ar01s08.html \
X		docs/ar01s09.html docs/ar01s10.html docs/ar01s11.html docs/ar01s12.html
X
XEX_CONFIGS=	cf.server.sample curses.cf.sample filter.pl.sample main.cf.sample \
X		master.ignore.sample master.score.sample newsrc.sample
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${EXAMPLESDIR}
X.for i in ${EX_CONFIGS}
X	${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${EXAMPLESDIR}
X.endfor
X	${MKDIR} ${DOCSDIR}
X.for i in ${NS_DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-/usr/ports/news/newsstar/Makefile
echo x - /usr/ports/news/newsstar/distinfo
sed 's/^X//' >/usr/ports/news/newsstar/distinfo << 'END-of-/usr/ports/news/newsstar/distinfo'
XMD5 (newsstar-1.1.tar.gz) = 8ed424249e5cd91e99c06ab5eb0df285
XSIZE (newsstar-1.1.tar.gz) = 255633
END-of-/usr/ports/news/newsstar/distinfo
echo x - /usr/ports/news/newsstar/pkg-descr
sed 's/^X//' >/usr/ports/news/newsstar/pkg-descr << 'END-of-/usr/ports/news/newsstar/pkg-descr'
XNewsstar fetches news and posts it to a local server; INN, s-news and sn are
Xsupported, and it should be easy to adapt for other servers with some
Xconfiguration and extra scripts. It's designed for Unix-like systems, and all
Xthe development was done on Linux.
X
XThere are already plenty of other programs to do this, but what makes newsstar
Xspecial is that it can make multiple simultaneous connections, not only to
Xone server, but to several, supporting up to 10 threads. Before fetching each
Xarticle it checks that it hasn't already been downloaded by another thread or
Xin a previous session. It can also pipeline article requests to make better
Xuse of available bandwidth.
X
XI wrote it because a number of ISPs I have used suffer from unreliable
Xnewsfeeds. There is an excellent free server made available by
Xnews.individual.net, but it can be a bit slow at times, and using external
Xservers uses more bandwidth. Therefore I wanted a program which could fetch
Xwhatever articles my ISP has available, but use the foreign server to avoid
Xmissing posts or getting them very late, and to do it as fast as possible.
X
XWWW: http://newsstar.sourceforge.net/
END-of-/usr/ports/news/newsstar/pkg-descr
echo x - /usr/ports/news/newsstar/pkg-plist
sed 's/^X//' >/usr/ports/news/newsstar/pkg-plist << 'END-of-/usr/ports/news/newsstar/pkg-plist'
Xbin/newsstar
Xlibexec/newsstar.bin
X%%PORTDOCS%%share/doc/newsstar/AUTHORS
X%%PORTDOCS%%share/doc/newsstar/COPYING
X%%PORTDOCS%%share/doc/newsstar/INSTALL
X%%PORTDOCS%%share/doc/newsstar/NEWS
X%%PORTDOCS%%share/doc/newsstar/QuickStart
X%%PORTDOCS%%share/doc/newsstar/README
X%%PORTDOCS%%share/doc/newsstar/TODO
X%%PORTDOCS%%share/doc/newsstar/ar01s02.html
X%%PORTDOCS%%share/doc/newsstar/ar01s03.html
X%%PORTDOCS%%share/doc/newsstar/ar01s04.html
X%%PORTDOCS%%share/doc/newsstar/ar01s05.html
X%%PORTDOCS%%share/doc/newsstar/ar01s06.html
X%%PORTDOCS%%share/doc/newsstar/ar01s07.html
X%%PORTDOCS%%share/doc/newsstar/ar01s08.html
X%%PORTDOCS%%share/doc/newsstar/ar01s09.html
X%%PORTDOCS%%share/doc/newsstar/ar01s10.html
X%%PORTDOCS%%share/doc/newsstar/ar01s11.html
X%%PORTDOCS%%share/doc/newsstar/ar01s12.html
X%%PORTDOCS%%share/doc/newsstar/index.html
X%%PORTDOCS%%share/doc/newsstar/manual.txt
X%%PORTDOCS%%share/examples/newsstar/cf.server.sample
X%%PORTDOCS%%share/examples/newsstar/curses.cf.sample
X%%PORTDOCS%%share/examples/newsstar/filter.pl.sample
X%%PORTDOCS%%share/examples/newsstar/main.cf.sample
X%%PORTDOCS%%share/examples/newsstar/master.ignore.sample
X%%PORTDOCS%%share/examples/newsstar/master.score.sample
X%%PORTDOCS%%share/examples/newsstar/newsrc.sample
X%%PORTDOCS%%@dirrm share/doc/newsstar
X%%PORTDOCS%%@dirrm share/examples/newsstar
END-of-/usr/ports/news/newsstar/pkg-plist
exit
--- newsstar.port ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BN5oZ-000292-Gx>