diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile new file mode 100644 index 00000000000..3f24fd40b7b --- /dev/null +++ b/news/leafnode/Makefile @@ -0,0 +1,22 @@ +# OpenBSD makefile for: leafnode +# Version required: 1.0.2 +# Date created: 19 Dec 1997 +# Whom: joey +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/20 02:03:08 joey Exp $ +# + +DISTNAME= leafnode-1.0.2 +CATEGORIES= news +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= system/news/readers +EXTRACT_SUFX= .src.elf.tgz + +MAINTAINER= joey@OpenBSD.ORG + +MAN8= fetch.8 leafnode.8 texpire.8 + +post-install: + strip ${PREFIX}/sbin/fetch ${PREFIX}/sbin/leafnode ${PREFIX}/sbin/texpire + +.include diff --git a/news/leafnode/files/md5 b/news/leafnode/files/md5 new file mode 100644 index 00000000000..03dd919a97c --- /dev/null +++ b/news/leafnode/files/md5 @@ -0,0 +1 @@ +MD5 (leafnode-1.0.2.src.elf.tgz) = 525afc4a4b99962de82dbf9cc8148cf9 diff --git a/news/leafnode/patches/patch-aa b/news/leafnode/patches/patch-aa new file mode 100644 index 00000000000..dcb4f75bfa5 --- /dev/null +++ b/news/leafnode/patches/patch-aa @@ -0,0 +1,12 @@ +*** fetch.c.orig Fri Jul 4 10:32:32 1997 +--- fetch.c Fri Jul 4 10:32:39 1997 +*************** +*** 14,20 **** + #include + #include + #include +- #include + #include + #include + #include +--- 14,19 ---- diff --git a/news/leafnode/patches/patch-ab b/news/leafnode/patches/patch-ab new file mode 100644 index 00000000000..369729a5ebc --- /dev/null +++ b/news/leafnode/patches/patch-ab @@ -0,0 +1,33 @@ +*** util.c.orig Fri Jul 4 10:29:40 1997 +--- util.c Fri Jul 4 10:32:43 1997 +*************** +*** 16,22 **** + #include + #include + #include +- #include + #include + #include + #include +--- 16,21 ---- +*************** +*** 485,491 **** + + strcpy(s, libdir); + strcat(s, "/groupinfo"); +- fd = open( s, O_RDONLY ); + if ( stat( s, &st ) ) { + syslog( LOG_ERR, "can't stat %s: %m", s ); + return; +--- 484,489 ---- +*************** +*** 494,499 **** +--- 492,499 ---- + if ( (fd=open( s, O_RDONLY))<0 || + (read( fd, stuff, st.st_size ) < st.st_size) ) { + syslog( LOG_ERR, "can't open/read %s: %m", s ); ++ if (fd >= 0) ++ close( fd ); + return; + } else { + close( fd ); diff --git a/news/leafnode/patches/patch-ac b/news/leafnode/patches/patch-ac new file mode 100644 index 00000000000..9c6109eeb3f --- /dev/null +++ b/news/leafnode/patches/patch-ac @@ -0,0 +1,69 @@ +*** Makefile.orig Tue May 27 09:50:36 1997 +--- Makefile Fri Jul 4 10:50:49 1997 +*************** +*** 4,11 **** + DEBUG = -O2 -m486 -fno-strength-reduce -Wall -Wformat -Wstrict-prototypes -Wmissing-prototypes + CFLAGS = $(DEBUG) + LIBS = +! BINDIR = /usr/sbin +! MANDIR = /usr/man + VERSION = 1.0.2 + # + # this is the directory where the news is stored. +--- 4,11 ---- + DEBUG = -O2 -m486 -fno-strength-reduce -Wall -Wformat -Wstrict-prototypes -Wmissing-prototypes + CFLAGS = $(DEBUG) + LIBS = +! BINDIR = $(PREFIX)/sbin +! MANDIR = $(PREFIX)/man + VERSION = 1.0.2 + # + # this is the directory where the news is stored. +*************** +*** 13,19 **** + # + # this is the directory where the configuration and group information is + # kept. It should preferably not be on the same partition as spooldir +! LIBDIR = /usr/lib/leafnode + + all: nntpd fetch texpire + +--- 13,19 ---- + # + # this is the directory where the configuration and group information is + # kept. It should preferably not be on the same partition as spooldir +! LIBDIR = $(PREFIX)/lib/leafnode + + all: nntpd fetch texpire + +*************** +*** 41,54 **** + cp texpire $(BINDIR) + cp *.8 $(MANDIR)/man8 + -mkdir -p $(SPOOLDIR) $(LIBDIR) +! -mkdir -p $(SPOOLDIR)/{message.id,interesting.groups,out.going} + @echo This is actually quite fast, for _small_ servers. +! mkdir -p /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,12,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9} +! cp config.example /usr/lib/leafnode/config + chown -R news.news $(LIBDIR) $(SPOOLDIR) + chmod 2750 $(SPOOLDIR) +! chmod 750 $(BINDIR)/{leafnode,fetch,texpire} +! chown news.news $(BINDIR)/{leafnode,fetch,texpire} + @echo edit /etc/inetd.conf to start $(BINDIR)/leafnode + + dist: +--- 41,54 ---- + cp texpire $(BINDIR) + cp *.8 $(MANDIR)/man8 + -mkdir -p $(SPOOLDIR) $(LIBDIR) +! -csh -c 'mkdir -p $(SPOOLDIR)/{message.id,interesting.groups,out.going}' + @echo This is actually quite fast, for _small_ servers. +! csh -c 'mkdir -p /var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}' +! cp config.example $(LIBDIR)/config.example + chown -R news.news $(LIBDIR) $(SPOOLDIR) + chmod 2750 $(SPOOLDIR) +! csh -c 'chmod 750 $(BINDIR)/{leafnode,fetch,texpire}' +! csh -c 'chown news.news $(BINDIR)/{leafnode,fetch,texpire}' + @echo edit /etc/inetd.conf to start $(BINDIR)/leafnode + + dist: diff --git a/news/leafnode/patches/patch-ad b/news/leafnode/patches/patch-ad new file mode 100644 index 00000000000..22f2f6185df --- /dev/null +++ b/news/leafnode/patches/patch-ad @@ -0,0 +1,11 @@ +--- util.c.orig Tue Oct 29 20:26:36 1996 ++++ util.c Fri Dec 19 16:52:20 1997 +@@ -1331,7 +1331,7 @@ + error, getcwd( s, 1024 ) ); + + strcpy( newfile, ".overview.XXXXXX" ); +- if ( (wfd=open( mktemp(newfile), O_WRONLY|O_CREAT|O_EXCL, 0664 )) ) { ++ if ( (wfd=open( mkstemp(newfile), O_WRONLY|O_CREAT|O_EXCL, 0664 )) ) { + struct iovec oooh[UIO_MAXIOV]; + int vi, vc, va; + diff --git a/news/leafnode/patches/patch-ae b/news/leafnode/patches/patch-ae new file mode 100644 index 00000000000..5cb96fc9d8d --- /dev/null +++ b/news/leafnode/patches/patch-ae @@ -0,0 +1,11 @@ +--- fetch.c.orig Sun Oct 27 19:34:06 1996 ++++ fetch.c Fri Dec 19 16:42:23 1997 +@@ -645,7 +645,7 @@ + struct newsgroup * g; + + strcpy( newfile, ".supplement.XXXXX" ); +- o = fopen( mktemp( newfile ), "w" ); ++ o = fopen( mkstemp( newfile ), "w" ); + + sprintf( s, "%s/interesting.groups", + spooldir ); diff --git a/news/leafnode/pkg/COMMENT b/news/leafnode/pkg/COMMENT new file mode 100644 index 00000000000..7fdc9358e04 --- /dev/null +++ b/news/leafnode/pkg/COMMENT @@ -0,0 +1 @@ +Leafnode is a USENET software package designed for small sites. diff --git a/news/leafnode/pkg/DESCR b/news/leafnode/pkg/DESCR new file mode 100644 index 00000000000..df069a9d49a --- /dev/null +++ b/news/leafnode/pkg/DESCR @@ -0,0 +1,7 @@ +Leafnode v1.0.2 is a simple NNTP server designed for small sites. +It does NOT have NOV support. + +It "learns" which newsgroups should be downloaded based on what's +accessed. + +It expires based on threads rather than articles. diff --git a/news/leafnode/pkg/PLIST b/news/leafnode/pkg/PLIST new file mode 100644 index 00000000000..a410ee5cffa --- /dev/null +++ b/news/leafnode/pkg/PLIST @@ -0,0 +1,7 @@ +lib/leafnode/config.example +man/man8/fetch.8 +man/man8/leafnode.8 +man/man8/texpire.8 +sbin/fetch +sbin/leafnode +sbin/texpire