Remove cnews. Marked BROKEN since 1999/11/03

definately sturm@
This commit is contained in:
alek 2004-12-02 19:23:01 +00:00
parent a52387e92a
commit a2c81d71b8
11 changed files with 1 additions and 424 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.14 2004/10/14 13:21:42 naddy Exp $
# $OpenBSD: Makefile,v 1.15 2004/12/02 19:23:01 alek Exp $
# $FreeBSD: Makefile,v 1.32 1997/11/16 04:58:09 fenner Exp $
#
SUBDIR += aub
SUBDIR += cnews
# SUBDIR += diablo
# SUBDIR += dnews
# SUBDIR += ifmail

View File

@ -1,59 +0,0 @@
# $OpenBSD: Makefile,v 1.16 2003/07/16 19:24:25 naddy Exp $
COMMENT= "C-news"
BROKEN= does not install cleanly, major fixups required.
DISTNAME= cnews
PKGNAME= cnews-cr.g
CATEGORIES= news
FAKE=No
MASTER_SITES= ftp://ftp.zoo.toronto.edu/pub/
EXTRACT_SUFX= .tar.Z
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}
MAKE_FILE= makefile
NEWSSPOOL= ${PREFIX}/newsspool
NEWSBIN= ${PREFIX}/news/cnewsbin
NEWSLIB= ${PREFIX}/news/lib
MANDIR= ${PREFIX}/man
do-install:
rm -f ${PREFIX}/bin/inews
cp ${WRKSRC}/libdbz/dbz.h ${PREFIX}/include
cp ${WRKSRC}/libcnews.a ${PREFIX}/lib
mkdir -p ${NEWSSPOOL}
-ln -s ${NEWSSPOOL} /var/news
mkdir -p ${NEWSBIN} ${NEWSLIB}
chown news:news ${NEWSSPOOL} ${NEWSLIB}
chown bin:bin ${NEWSBIN}
cd ${WRKSRC}; \
echo ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} install | \
su -m bin
cd ${WRKSRC}; \
echo ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} setup | \
su -m news
cd ${WRKSRC}; \
echo ${MAKE} ${MAKE_FLAGS} -f ${MAKE_FILE} ui readpostcheck | \
su -m bin
chown news:news ${NEWSBIN}/input/newsspool
chmod 6755 ${NEWSBIN}/input/newsspool
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.1* ${MANDIR}/man1
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.5* ${MANDIR}/man5
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.8* ${MANDIR}/man8
@echo ""
@echo "!!!!!!!!"
@echo "you MUST change the configuration of this news setup:"
@echo " cd to ${NEWSLIB} and change the following files..."
@echo "mailname, whoami, organization, mailpaths, sys, readnews.ctl, postdefltgroup"
@echo " to suit your local system and news topology."
@echo "!!!!!!!!"
@echo ""
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
MD5 (cnews.tar.Z) = c2a144d1dabd2af1b3f6816de5e38b3c
RMD160 (cnews.tar.Z) = 5f222302bea9c145d438fd1edd7366cd69ce5c30
SHA1 (cnews.tar.Z) = fee33ba349ab42a547b48fc6f8427c374817dd8d

View File

@ -1,157 +0,0 @@
*** ../work/conf/makeinc Wed Dec 31 16:00:00 1969
--- ./conf/makeinc Tue Oct 25 04:00:55 1994
***************
*** 0 ****
--- 1,3 ----
+ # makefile substitutions file
+ # how to include ../include/config.make
+ INCLUDE .include "../include/config.make"
*** ../work/conf/quiz.def Wed Dec 31 16:00:00 1969
--- ./conf/quiz.def Tue Oct 25 04:00:54 1994
***************
*** 0 ****
--- 1,68 ----
+ # These answers are interdependent; do not edit this file!
+ newsuid="news"
+ # These answers are interdependent; do not edit this file!
+ newsgid="news"
+ # These answers are interdependent; do not edit this file!
+ newsarts="/var/news"
+ # These answers are interdependent; do not edit this file!
+ newsov="/var/news/over.view"
+ # These answers are interdependent; do not edit this file!
+ newsctl="/usr/local/news/lib"
+ # These answers are interdependent; do not edit this file!
+ newsbin="/usr/local/news/cnewsbin"
+ # These answers are interdependent; do not edit this file!
+ newspath="/bin:/usr/bin:/usr/local/bin"
+ # These answers are interdependent; do not edit this file!
+ newsumask="022"
+ # These answers are interdependent; do not edit this file!
+ newsconfig="/usr/local/news/lib/bin/config"
+ # These answers are interdependent; do not edit this file!
+ newscrisis="newscrisis"
+ # These answers are interdependent; do not edit this file!
+ newsmaster="newsmaster"
+ # These answers are interdependent; do not edit this file!
+ addrsize="big"
+ # These answers are interdependent; do not edit this file!
+ fake=" fgetline.o fsync.o"
+ # These answers are interdependent; do not edit this file!
+ storeval=""
+ # These answers are interdependent; do not edit this file!
+ faststdio="no"
+ # These answers are interdependent; do not edit this file!
+ fakehdrs=" sys/timeb.h"
+ # These answers are interdependent; do not edit this file!
+ ranlib="yes"
+ # These answers are interdependent; do not edit this file!
+ make="make"
+ # These answers are interdependent; do not edit this file!
+ include="bsd"
+ # These answers are interdependent; do not edit this file!
+ cc=""
+ # These answers are interdependent; do not edit this file!
+ copts="-O2"
+ # These answers are interdependent; do not edit this file!
+ ldopts=""
+ # These answers are interdependent; do not edit this file!
+ postlibs=""
+ # These answers are interdependent; do not edit this file!
+ uucptype="null"
+ # These answers are interdependent; do not edit this file!
+ dftype="statfs"
+ # These answers are interdependent; do not edit this file!
+ dfdirs=""
+ # These answers are interdependent; do not edit this file!
+ archive="yes"
+ # These answers are interdependent; do not edit this file!
+ spacelow="no"
+ # These answers are interdependent; do not edit this file!
+ nfsgroup="no"
+ # These answers are interdependent; do not edit this file!
+ server="newsie"
+ # These answers are interdependent; do not edit this file!
+ rbin="/usr/local/news/cnewsbin/input"
+ # These answers are interdependent; do not edit this file!
+ bin="/usr/local/bin"
+ # These answers are interdependent; do not edit this file!
+ faststrchr="no"
+ # These answers are interdependent; do not edit this file!
+ sftype="c"
*** ../work/conf/substitutions Wed Dec 31 16:00:00 1969
--- ./conf/substitutions Tue Oct 25 04:00:55 1994
***************
*** 0 ****
--- 1,8 ----
+ # general substitutions file
+ NEWSBIN /usr/local/news/cnewsbin
+ NEWSCTL /usr/local/news/lib
+ NEWSARTS /var/news
+ NEWSOV /var/news
+ NEWSPATH /bin:/usr/bin:/usr/local/bin
+ NEWSUMASK 022
+ NEWSCONFIG /usr/local/news/lib/bin/config
*** ../work/include/config.make Wed Dec 31 16:00:00 1969
--- ./include/config.make Tue Oct 25 04:00:55 1994
***************
*** 0 ****
--- 1,58 ----
+ # make header file
+ # pathname variables
+ # =()<NEWSARTS=@<NEWSARTS>@>()=
+ NEWSARTS=/var/news
+ # =()<NEWSOV=@<NEWSOV>@>()=
+ NEWSOV=/var/news
+ # =()<NEWSBIN=@<NEWSBIN>@>()=
+ NEWSBIN=/usr/local/news/cnewsbin
+ # =()<NEWSCTL=@<NEWSCTL>@>()=
+ NEWSCTL=/usr/local/news/lib
+ # =()<NEWSCONFIG=@<NEWSCONFIG>@>()=
+ NEWSCONFIG=/usr/local/news/lib/bin/config
+
+ # workaround for System V make bug
+ SHELL=/bin/sh
+
+ # directories where things go
+ UIBIN=/usr/local/bin
+ RBIN=/usr/local/news/cnewsbin/input
+
+ # compilation stuff
+ # LIB is for makefile dependencies, LIBS for cc invocations
+ LIB=../libcnews.a
+ LIBS=../libcnews.a
+ CFLAGS=$(MORECFLAGS) -O2 -I../include
+ LDFLAGS=$(CFLAGS)
+ LINTFLAGS=$(MORELINTFLAGS) -I../include
+
+ # directories etc.
+ CONF=../conf
+ MAKE=make
+ TO=$(CONF)/cpto
+ IN=$(CONF)/cmpto $(CMPOPT)
+ CF=$(CONF)/checkfile $(CMPOPT)
+ MKDIR=$(CONF)/mkdirs
+ MX=chmod +x
+ UPDATE=$(CONF)/update.ran ../libcnews.a
+ LIBCMP=$(CONF)/libcmp ../libcnews.a
+
+ # misc configuration bits
+ SPACEFOR=statfs
+ DOSPACEFOR=dospacefor
+ QUEUELEN=null
+ UID=news
+ GID=news
+ SIZE=big
+ DBZ=libdbz
+ STDIO=sysstdio
+ SERVER=
+ REPORTTO=newsmaster
+ URGENTTO=newscrisis
+
+ # things for testing
+ HERE=. ../conf/config.r ;
+
+ # fake files needed
+ HFAKE= sys/timeb.h
+ OFAKE= fgetline.o fsync.o

View File

@ -1,32 +0,0 @@
*** util/report.old Thu Sep 15 13:24:57 1994
--- util/report Fri Sep 30 16:57:05 1994
***************
*** 65,70 ****
else
cat $r
fi
! ) | mail $args # some sites might want "/usr/lib/sendmail -t" instead
# and the trap handles the exit status
--- 65,70 ----
else
cat $r
fi
! ) | /usr/sbin/sendmail -t $args # some sites might want "mail" instead
# and the trap handles the exit status
*** inject/makefile.ORIG Thu Dec 29 00:30:01 1994
--- inject/makefile Thu Feb 23 11:21:46 1995
***************
*** 57,61 ****
cp $(PROGS) ../util/canonhdr regress/tmp/inject
$(MX) regress/regress regress/master/run
$(HERE) cd regress ; NEWSTZ=3660 ; export NEWSTZ ; ./regress
!
# header dependencies follow
--- 57,61 ----
cp $(PROGS) ../util/canonhdr regress/tmp/inject
$(MX) regress/regress regress/master/run
$(HERE) cd regress ; NEWSTZ=3660 ; export NEWSTZ ; ./regress
!
# header dependencies follow

View File

@ -1,29 +0,0 @@
*** input/newsspool.c.orig Tue Apr 28 23:42:23 1998
--- input/newsspool.c Tue Apr 28 23:43:29 1998
***************
*** 156,162 ****
register char *p;
p = strsave(fullartfile("in.coming/nspool.XXXXXX"));
- mktemp(p);
return(p);
}
--- 156,161 ----
***************
*** 169,175 ****
{
FILE *f;
! f = fopen(name, "w");
if (f == NULL)
error("unable to create temporary `%s'", name);
if (debug)
--- 168,174 ----
{
FILE *f;
! f = fdopen(mkstemp(name), "w");
if (f == NULL)
error("unable to create temporary `%s'", name);
if (debug)

View File

@ -1,20 +0,0 @@
*** libcnews/lock.c.orig Tue Apr 28 23:48:55 1998
--- libcnews/lock.c Tue Apr 28 23:49:14 1998
***************
*** 42,49 ****
int locktries = 0;
tempnm = strsave(ctlfile(LOCKTEMP));
! (void) mktemp(tempnm);
! tempfp = fopen(tempnm, "w");
if (tempfp == NULL)
GRUMP("can't create lock temporary `%s'", tempnm);
(void) fprintf(tempfp, "%d\n", getpid());
--- 42,48 ----
int locktries = 0;
tempnm = strsave(ctlfile(LOCKTEMP));
! tempfp = fdopen(mkstemp(tempnm), "w");
if (tempfp == NULL)
GRUMP("can't create lock temporary `%s'", tempnm);
(void) fprintf(tempfp, "%d\n", getpid());

View File

@ -1,20 +0,0 @@
*** readnews/readnews.c.orig Tue Apr 28 23:49:42 1998
--- readnews/readnews.c Tue Apr 28 23:50:01 1998
***************
*** 840,847 ****
if (s == NULL)
return;
(void) strcpy(tmpf, "/tmp/rfXXXXXX");
! (void) mktemp(tmpf);
! fo = fopen(tmpf, "w");
if (fo == NULL)
error("can't create `%s'", tmpf);
fprintf(fo, "Newsgroups: %s\n", (hp->h_followupto) ? hp->h_followupto :
--- 840,846 ----
if (s == NULL)
return;
(void) strcpy(tmpf, "/tmp/rfXXXXXX");
! fo = fdopen(mkstemp(tmpf), "w");
if (fo == NULL)
error("can't create `%s'", tmpf);
fprintf(fo, "Newsgroups: %s\n", (hp->h_followupto) ? hp->h_followupto :

View File

@ -1,19 +0,0 @@
*** relay/fileart.c.orig Tue Apr 28 23:50:29 1998
--- relay/fileart.c Tue Apr 28 23:51:13 1998
***************
*** 287,293 ****
if (art->a_artf == NULL) {
nnfree(&art->a_tmpf);
art->a_tmpf = strsave(SPOOLTMP);
! (void) mktemp(art->a_tmpf);
art->a_unlink = YES;
art->a_artf = fopenwclex(art->a_tmpf, "w+");
if (art->a_artf == NULL)
--- 287,293 ----
if (art->a_artf == NULL) {
nnfree(&art->a_tmpf);
art->a_tmpf = strsave(SPOOLTMP);
! (void) close(mkstemp(art->a_tmpf));
art->a_unlink = YES;
art->a_artf = fopenwclex(art->a_tmpf, "w+");
if (art->a_artf == NULL)

View File

@ -1 +0,0 @@
Cnews news transport software

View File

@ -1,82 +0,0 @@
@comment $OpenBSD: PLIST,v 1.4 2002/08/03 18:54:08 naddy Exp $
@comment Package is not complete without minimal /var/news installation :-(
@comment Basically just in.* and out.* /var/news might be a symbolic link
@comment and it might not exist yet :-(
@exec ln -s %D/newsspool /var/news
@exec mkdir -p %D/newsspool/in.coming/bad
@exec cd %D/newsspool; mkdir -p out.going out.master out.nntp
lib/libcnews.a
news/lib/active
news/lib/active.times
news/lib/batchparms
news/lib/bin
news/lib/controlperm
news/lib/explist
news/lib/history
news/lib/history.dir
news/lib/history.pag
news/lib/inews
news/lib/mailname
news/lib/mailpaths
news/lib/organization
news/lib/postdefltgroup
news/lib/readnews.ctl
news/lib/readnews.help
news/lib/report.ctl
news/lib/sys
news/lib/versionname
news/lib/whoami
news/cnewsbin/batch
news/cnewsbin/canonhdr
news/cnewsbin/canonsys.awk
news/cnewsbin/ctime
news/cnewsbin/ctl
news/cnewsbin/dbz
news/cnewsbin/dbzinfo
news/cnewsbin/decompressors
news/cnewsbin/dospacefor
news/cnewsbin/expire
news/cnewsbin/getabsdate
news/cnewsbin/gngp
news/cnewsbin/inject
news/cnewsbin/input
news/cnewsbin/lock
news/cnewsbin/maint
news/cnewsbin/mkpdir
news/cnewsbin/namecheck.awk
news/cnewsbin/newshostname
news/cnewsbin/newslock
news/cnewsbin/nov
news/cnewsbin/now
news/cnewsbin/queuelen
news/cnewsbin/relay
news/cnewsbin/report
news/cnewsbin/sizeof
news/cnewsbin/spacefor
news/cnewsbin/staleness
news/cnewsbin/touchlock
news/cnewsbin/unlock
man/man1/checknews.1cn
man/man1/inews.1cn
man/man1/postnews.1cn
man/man1/readnews.1cn
man/man5/controlperm.5
man/man5/news.5
man/man5/newsctl.5
man/man5/newsdb.5
man/man5/newsoverview.5
man/man5/newssys.5
man/man8/cnewsdo.8cn
man/man8/expire.8cn
man/man8/explode.8cn
man/man8/mergeactive.8
man/man8/mkhistory.8cn
man/man8/newsaux.8cn
man/man8/newsbatch.8cn
man/man8/newsmail.8cn
man/man8/newsmaint.8cn
man/man8/newsoverview.8
man/man8/relaynews.8cn
man/man8/report.8cn
man/man8/rnews.8cn
include/dbz.h