Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 08:10:59 +0100 (CET)
From:      dirk.meyer@dinoex.sub.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/10000: port/news/cnews
Message-ID:  <199902100710.IAA27528@net2.dinoex.sub.org>

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

>Number:         10000
>Category:       ports
>Synopsis:       /ports/news/cnews need patchfiles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb  9 23:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Meyer
>Release:        FreeBSD 2.2.7-19981027-SNAP i386
>Organization:
privat
>Environment:

	FreeBSD

>Description:

1) input/newsrun	Fri Apr 28 02:51:02 1995
To accept gzipped batches, with or without a '#!cunbatch" header,
I call "gzip -d" instead of "uncompress"

2) batch/sendbatches
I need to do accounting over the bytes the batcher send to a system.
Therefor I needed to know for which system the batcher is called.
An easy way to provide that, was to export the $sys variable
before calling the batcher.

3) namecheck.awk
In Germany we have many newsgroups which have longer name components.
I changed the maximum length from 14 to 24.
I know this limit is mostly obsolete, and I have not found a system
which still use and old filesystem, which did limit the name of a
directory to 14 characters. Of cause this may be still the cause 
somewhere around the world.

4) relay/fileart.c
Due to the growing amount of control-messages, I want to set different
directorys and different times to expire them. I created in the active
file the groups control.cancel control.newgroups control.rmgroups and
control.checkgroups. With a few changes in fileart.c c-news detect this
groups and use the specialized directorys. I had seen a previous patch
somewhere, but it had the names hardcoded in the code. My solutions is
to find the name from the given command, so even a control.sendsys or
a control.extension newsgroup is possible.

5) util/queuelen.tay
Due to a compile-time limit in uustat (taylor-uucp) you can get only
the status of 201 Jobs. If you have mail-batches for a system and they
sum up with the maximum number of newsbatches to a value greater then
200, queuelen will never return the true number of newsbatches.
In result c-news will continue to create batches.
use only the grade "d" for newsbatches, so I set a "hack",
which count all batches for the same grade.
A permanent solution would be counting the configured grade from
the configuration.

6) ctl/newgroup ctl/rmgroup ctl/checkgroups
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/pgpcontrol.patch
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/README.pgp
see: PATCHES-ctl-pgp3

7) ctl/newgroup ctl/checkgroups
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/morechanges.patch
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/README.morechanges
read: PATCHES-ctl-more

8) exipre/doexipre
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/doexpire.patch
ftp://ftp.cs.man.ac.uk/pub/chl/CNEWS/README.morechanges
read: PATCHES-ctl-more

9) ctl/newgroup ctl/rmgroup ctl/checkgroups
I like to used regular expression in the second field of the file
controlperm. This check is done by awk, so I changed the operator
in that awk command.
A line in controlperm can now be set to:
mynet		.*.spam.net	ncr	q
and suppress all messages from this domain.

10) input/bunzip2 input/makefile batch/viauux batch/compcun
More and more uucp-Sites like to use more compression schemes.
I created a file like gunzip for the program bzip2.
The INN batcher like to generate rnews commands with a header
line line "#!gunbatch", and this batches pile up as bad.
I found no easy way to include support for this.
Instead I added support for different command and compressors
while batching for a system. I can now add in the batchparms
file calls like: "viauux -cmd rnews-bzip2".
For compability reasons I can generate those funny headers
with a short extension of compcun. So a compressor for an
INN site may be: "compcun -cmd gunbatch -prg gzip"

11) ctl/checkgroups
Due to Gatebau it is common use to for gateway to convert
a '!' in group name into an  underscore '_'. Therefore
a leading '_' appears in newsgroups component.

>How-To-Repeat:
>Fix:
	
	apply this patches

diff -urN cnews/Makefile cnews-pgp/Makefile
--- cnews/Makefile	Fri Dec 18 21:47:50 1998
+++ cnews-pgp/Makefile	Wed Feb 10 07:53:15 1999
@@ -13,12 +13,27 @@
 		ftp://ftp.funet.fi/pub/unix/news/cnews/ \
 		ftp://ftp.win.or.jp/pub/network/news/cnews/ \
 		ftp://ftp.redcom.ru/pub/unix/usenet/c-news/ \
-		ftp://ftp.mc.hik.se/pub/unix/news/c-news/
+		ftp://ftp.mc.hik.se/pub/unix/news/c-news/ \
+		ftp://ftp.dinoex.org/pub/c-news/
 EXTRACT_SUFX=	.tar.Z
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		pgpverify-1.11
 
-MAINTAINER=	ports@FreeBSD.ORG
+PATCH_SITES=    ftp://ftp.dinoex.org/pub/c-news/
+PATCHFILES=     c-news-patch-fileart.c c-news-patch-namecheck.awk \
+		c-news-patch-newsrun c-news-patch-sendbatches \
+		c-news-patch-ctl-pgp3 c-news-patch-ctl-more \
+		c-news-patch-ctl-regexp \
+		c-news-patch-doexpire c-news-patch-queuelen.tay \
+		c-news-patch-bunzip2 \
+		c-news-patch-ctl-underscore \
+		c-news-patch-pgpverify-1.11
 
+MAINTAINER=	dirk.meyer@dinoex.sub.org
+
+DIST_SUBDIR=	c-news
 NO_WRKSUBDIR=	yes
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 MAKEFILE=	makefile
 MAN1=		checknews.1cn inews.1cn postnews.1cn readnews.1cn
 MAN5=		controlperm.5 news.5 newsctl.5 newsdb.5 newsoverview.5 \
@@ -31,7 +46,10 @@
 NEWSSPOOL=	${PREFIX}/newsspool
 NEWSBIN=	${PREFIX}/news/cnewsbin
 NEWSLIB=	${PREFIX}/news/lib
-MANDIR=		${PREFIX}/man
+PGPVERIFY=	pgpverify-1.11
+
+pre-patch:
+	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} ${WRKSRC}/${PGPVERIFY}
 
 do-install:
 	${RM} -f ${PREFIX}/bin/inews
@@ -41,6 +59,7 @@
 	-ln -s ${NEWSSPOOL} /var/news
 	chown news.news ${NEWSSPOOL} ${NEWSLIB}
 	chown bin.bin ${NEWSBIN}
+	${INSTALL_SCRIPT} ${WRKSRC}/${PGPVERIFY} ${NEWSBIN}/pgpverify
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} setup
 	cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ui readpostcheck
@@ -49,9 +68,15 @@
 .endfor
 	chown news.news ${NEWSBIN}/input/newsspool
 	chmod 6755 ${NEWSBIN}/input/newsspool
-	${INSTALL_MAN} ${WRKSRC}/man/*.1* ${MANDIR}/man1
-	${INSTALL_MAN} ${WRKSRC}/man/*.5* ${MANDIR}/man5
-	${INSTALL_MAN} ${WRKSRC}/man/*.8* ${MANDIR}/man8
+.for i in ${MAN1}
+	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man1
+.endfor
+.for i in ${MAN5}
+	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man5
+.endfor
+.for i in ${MAN8}
+	${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man8
+.endfor
 	@${ECHO} ""
 	@${ECHO} "!!!!!!!!"
 	@${ECHO} "you MUST change the configuration of this news setup:"
diff -urN cnews/files/md5 cnews-pgp/files/md5
--- cnews/files/md5	Fri Dec 18 21:47:51 1998
+++ cnews-pgp/files/md5	Fri Jan 15 07:57:08 1999
@@ -1 +1,14 @@
-MD5 (c-news.tar.Z) = c2a144d1dabd2af1b3f6816de5e38b3c
+MD5 (c-news/c-news.tar.Z) = c2a144d1dabd2af1b3f6816de5e38b3c
+MD5 (c-news/pgpverify-1.11) = 247a0659ef396dfa18b9e193d9a5baab
+MD5 (c-news/c-news-patch-fileart.c) = cf003ba4cd88641b620b2b19c3d7c715
+MD5 (c-news/c-news-patch-namecheck.awk) = 4d93aa88bac7459065cad3e4dd86e7cb
+MD5 (c-news/c-news-patch-newsrun) = 6d71577c687f092277d3d3d747477f38
+MD5 (c-news/c-news-patch-sendbatches) = 978b2e56f5b9ddd113ff784ad709b8d7
+MD5 (c-news/c-news-patch-ctl-pgp3) = 3648dd74974928b317f0169f254b19bd
+MD5 (c-news/c-news-patch-ctl-more) = 66aebd0a53ac2340dd2f1493f0096ac7
+MD5 (c-news/c-news-patch-ctl-regexp) = faaa68c80a78199ef6a1e60c6a420eca
+MD5 (c-news/c-news-patch-doexpire) = ffd3c907cdaebe43ea2dfdc49b84686e
+MD5 (c-news/c-news-patch-queuelen.tay) = 58d3e06a518fbf6bfee10081041fb85c
+MD5 (c-news/c-news-patch-bunzip2) = c4893fcaec140b29f1bea42b81e1bdf5
+MD5 (c-news/c-news-patch-ctl-underscore) = 65ddefc8be3793cfc9d1e6d5b8302fd4
+MD5 (c-news/c-news-patch-pgpverify-1.11) = 38c3882ad333a0e1be02fda2352a1c05
diff -urN cnews/patches/patch-aa cnews-pgp/patches/patch-aa
--- cnews/patches/patch-aa	Sat Dec  7 02:30:18 1996
+++ cnews-pgp/patches/patch-aa	Wed Feb 10 07:18:59 1999
@@ -58,7 +58,7 @@
 + # These answers are interdependent; do not edit this file!
 + postlibs=""
 + # These answers are interdependent; do not edit this file!
-+ uucptype="null"
++ uucptype="tay"
 + # These answers are interdependent; do not edit this file!
 + dftype="statfs"
 + # These answers are interdependent; do not edit this file!
@@ -139,7 +139,7 @@
 + # misc configuration bits
 + SPACEFOR=statfs
 + DOSPACEFOR=dospacefor
-+ QUEUELEN=null
++ QUEUELEN=tay
 + UID=news
 + GID=news
 + SIZE=big
diff -urN cnews/patches/patch-ra cnews-pgp/patches/patch-ra
--- cnews/patches/patch-ra	Thu Jan  1 01:00:00 1970
+++ cnews-pgp/patches/patch-ra	Sat Dec 30 17:43:21 1995
@@ -0,0 +1,17 @@
+*** ../work/conf/config.r	Wed Dec 31 16:00:00 1969
+--- ./conf/config.r	Tue Oct 25 04:00:55 1994
+***************
+*** 0 ****
+--- 1,12 ----
++ # fake configuration for regression tests
++ #
++ NEWSCTL=${NEWSCTL-`pwd`}
++ NEWSBIN=${NEWSBIN-`pwd`}
++ NEWSARTS=${NEWSARTS-`pwd`/arts}
++ NEWSOV=$NEWSARTS
++ # =()<NEWSPATH=${NEWSPATH-@<NEWSPATH>@}>()=
++ NEWSPATH=${NEWSPATH-/bin:/usr/bin}
++ NEWSUMASK=${NEWSUMASK-022}
++ NEWSCONFIG=${NEWSCONFIG-`pwd`/../conf/config.r}
++ LOGNAME=regression
++ export NEWSCTL NEWSBIN NEWSARTS NEWSOV NEWSPATH NEWSUMASK NEWSCONFIG LOGNAME
--- cnews/pkg/PLIST	Sun Aug 30 17:45:35 1998
+++ cnews-pgp/pkg/PLIST	Wed Feb 10 07:37:18 1999
@@ -42,6 +42,7 @@
 news/cnewsbin/dbz
 news/cnewsbin/dbzinfo
 news/cnewsbin/decompressors/bdecode
+news/cnewsbin/decompressors/bunzip2
 news/cnewsbin/decompressors/c7decode
 news/cnewsbin/decompressors/gunzip
 news/cnewsbin/dospacefor
@@ -62,6 +63,7 @@
 news/cnewsbin/inject/postnews
 news/cnewsbin/inject/tear
 news/cnewsbin/input/bdecode
+news/cnewsbin/input/bunzip2
 news/cnewsbin/input/c7decode
 news/cnewsbin/input/cunbatch
 news/cnewsbin/input/newsrun
@@ -118,6 +120,7 @@
 news/cnewsbin/staleness
 news/cnewsbin/touchlock
 news/cnewsbin/unlock
+news/cnewsbin/pgpverify
 news/lib/active
 news/lib/active.times
 news/lib/batchparms
@@ -148,3 +151,4 @@
 @dirrm news/cnewsbin/nov
 @dirrm news/cnewsbin/relay
 @dirrm news/lib/bin
+@dirrm news/cnewsbin
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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