summaryrefslogtreecommitdiff
path: root/news/rkive
diff options
context:
space:
mode:
authorTorsten Blum <torstenb@FreeBSD.org>1995-07-15 22:46:26 +0000
committerTorsten Blum <torstenb@FreeBSD.org>1995-07-15 22:46:26 +0000
commit2442984436e66890a1d17d8b4637df64a413ee28 (patch)
tree186ce30542b74d60c6efdcb71440e4d25a231543 /news/rkive
parentA regrettable hack to allow a port to say that it doesn't want its Makefiles (diff)
rkive - a USENET newsgroup archiver
Notes
Notes: svn path=/head/; revision=1970
Diffstat (limited to 'news/rkive')
-rw-r--r--news/rkive/Makefile23
-rw-r--r--news/rkive/files/patch-aa180
-rw-r--r--news/rkive/files/patch-ab108
-rw-r--r--news/rkive/pkg-comment1
-rw-r--r--news/rkive/pkg-descr8
-rw-r--r--news/rkive/pkg-plist8
-rw-r--r--news/rkive/scripts/configure32
7 files changed, 360 insertions, 0 deletions
diff --git a/news/rkive/Makefile b/news/rkive/Makefile
new file mode 100644
index 000000000000..f01117b5d36b
--- /dev/null
+++ b/news/rkive/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: rkive
+# Version required: 3.1
+# Date created: 03 Jul 1995
+# Whom: torstenb@FreeBSD.ORG
+#
+# $Id$
+#
+
+DISTNAME= rkive3.1
+CATEGORIES= news
+MASTER_SITES= ftp://ftp.sterling.com/rkive/
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= torstenb@FreeBSD.ORG
+
+# restrictive copyright
+NO_PACKAGE=yes
+
+pre-patch:
+ @cp ${WRKSRC}/Makefile.dst ${WRKSRC}/Makefile
+ @cp ${WRKSRC}/rkive.h.dst ${WRKSRC}/rkive.h
+
+.include <bsd.port.mk>
diff --git a/news/rkive/files/patch-aa b/news/rkive/files/patch-aa
new file mode 100644
index 000000000000..fc9b983ff003
--- /dev/null
+++ b/news/rkive/files/patch-aa
@@ -0,0 +1,180 @@
+*** Makefile.orig Mon Jul 3 20:49:16 1995
+--- Makefile Mon Jul 3 20:55:31 1995
+***************
+*** 77,89 ****
+ # Define your favorite C compiler here...
+ #
+ #CC=insight
+! CC=cc
+
+ #
+ # Compilation flags..
+ #
+! FLAGS=-g
+! CFLAGS=$(SFLAGS) $(FLAGS) $(NNTPFLAGS)
+
+ #
+ # Yacc flags for compilation of match.y
+--- 77,89 ----
+ # Define your favorite C compiler here...
+ #
+ #CC=insight
+! #CC=cc
+
+ #
+ # Compilation flags..
+ #
+! #FLAGS=-g
+! #CFLAGS=$(SFLAGS) $(FLAGS) $(NNTPFLAGS)
+
+ #
+ # Yacc flags for compilation of match.y
+***************
+*** 104,126 ****
+ #
+ ACCESSLIB=
+
+! LDFLAGS=$(EXOSLIBS) $(ACCESSLIB)
+
+ #
+ # If your system requires additional libraries or if you wish to
+ # use shared libraries, add the -l declarations to LIBS below such
+ # as -lc_s
+ #
+! LIBS=
+
+ I = /usr/include
+ LP=lpr
+ PR=nl -n
+ NROFF=nroff
+! BINDIR=/usr/local/bin
+! RKIVEDIR=/usr/local/lib/rkive
+! MAN1=/usr/man/man1
+! MAN5=/usr/man/man5
+
+ MANS= $(MAN1)/article.1 \
+ $(MAN1)/rkive.1 \
+--- 104,126 ----
+ #
+ ACCESSLIB=
+
+! #LDFLAGS=$(EXOSLIBS) $(ACCESSLIB)
+
+ #
+ # If your system requires additional libraries or if you wish to
+ # use shared libraries, add the -l declarations to LIBS below such
+ # as -lc_s
+ #
+! #LIBS=
+
+ I = /usr/include
+ LP=lpr
+ PR=nl -n
+ NROFF=nroff
+! BINDIR=${PREFIX}/bin
+! RKIVEDIR=${PREFIX}/lib/rkive
+! MAN1=${PREFIX}/man/man1
+! MAN5=${PREFIX}/man/man5
+
+ MANS= $(MAN1)/article.1 \
+ $(MAN1)/rkive.1 \
+***************
+*** 158,164 ****
+ $(GETOPTO) $(TMPNAMO) $(STRDUPO)
+
+ SRCS = $(ARTICLE_SRCS) $(CKCONFIG_SRCS) $(ARCHIVE_SRCS) match.y
+! $(GETOPTC) $(STRDUPC) $(TMPNAMC)
+
+
+ INSTALLED_PROGS=\
+--- 158,164 ----
+ $(GETOPTO) $(TMPNAMO) $(STRDUPO)
+
+ SRCS = $(ARTICLE_SRCS) $(CKCONFIG_SRCS) $(ARCHIVE_SRCS) match.y
+! # $(GETOPTC) $(STRDUPC) $(TMPNAMC)
+
+
+ INSTALLED_PROGS=\
+***************
+*** 168,183 ****
+
+ PROGS = article ckconfig rkive
+
+! all: $(PROGS) $(MANS) $(SCRIPTS)
+ #all: $(PROGS)
+
+ $(MANS):
+ cp `basename $@` $@
+ chmod 444 $@
+
+! install: $(MANS) $(SCRIPTS) $(INSTALLED_PROGS)
+! @echo "Type \"make cf\" if you wish to have rkive.cf installed."
+! @echo "Beware: It will overwrite any existing rkive.cf file."
+
+ #install: $(INSTALLED_PROGS)
+
+--- 168,197 ----
+
+ PROGS = article ckconfig rkive
+
+! #all: $(PROGS) $(MANS) $(SCRIPTS)
+ #all: $(PROGS)
++ all: article ckconfig rkive
+
+ $(MANS):
+ cp `basename $@` $@
+ chmod 444 $@
+
+! install: # $(MANS) $(SCRIPTS) $(INSTALLED_PROGS)
+! # @echo "Type \"make cf\" if you wish to have rkive.cf installed."
+! # @echo "Beware: It will overwrite any existing rkive.cf file."
+! install -c -s -m 555 -o bin -g bin article ${PREFIX}/bin/article
+! mkdir -p ${PREFIX}/lib/rkive
+! install -c -s -m 555 -o bin -g bin ckconfig ${PREFIX}/bin/ckconfig
+! install -c -s -m 555 -o bin -g bin rkive ${PREFIX}/bin/rkive
+! install -c -m 444 -o bin -g bin article.1 rkive.1 ckconfig.1 \
+! ckconfig.1 ${PREFIX}/man/man1/
+! install -c -m 444 -o bin -g bin rkive.5 ${PREFIX}/man/man5/rkive.5
+! install -c -m 644 -o root -g wheel rkive.cf \
+! ${PREFIX}/lib/rkive/rkive.cf.sample
+! install -c -m 755 -o bin -g bin update_netdocs \
+! ${PREFIX}/lib/rkive/update_netdocs
+! gzip -9nf ${PREFIX}/man/man1/article.1 ${PREFIX}/man/man1/rkive.1 \
+! ${PREFIX}/man/man1/ckconfig.1 ${PREFIX}/man/man5/rkive.5
+
+ #install: $(INSTALLED_PROGS)
+
+***************
+*** 334,340 ****
+
+ strdup.o: ./port/strdup.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c ./port/strdup.c
+!
+ tmpnam.o: ./port/tmpnam.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c ./port/tmpnam.c
+
+--- 348,354 ----
+
+ strdup.o: ./port/strdup.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c ./port/strdup.c
+!
+ tmpnam.o: ./port/tmpnam.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c ./port/tmpnam.c
+
+***************
+*** 343,349 ****
+
+ nntpclnt.o: $(NNTPSRCDIR)/nntpclnt.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c $(NNTPSRCDIR)/nntpclnt.c
+!
+ match.o: match.y article.h
+
+ #
+--- 357,363 ----
+
+ nntpclnt.o: $(NNTPSRCDIR)/nntpclnt.c
+ $(CC) $(CFLAGS) $(TARGET_ARCH) -c $(NNTPSRCDIR)/nntpclnt.c
+!
+ match.o: match.y article.h
+
+ #
diff --git a/news/rkive/files/patch-ab b/news/rkive/files/patch-ab
new file mode 100644
index 000000000000..f95784156c64
--- /dev/null
+++ b/news/rkive/files/patch-ab
@@ -0,0 +1,108 @@
+*** rkive.h.orig Mon Jul 3 20:04:07 1995
+--- rkive.h Mon Jul 3 20:13:25 1995
+***************
+*** 12,19 ****
+ ** appropriate values are not in the configuration file.
+ */
+
+! #define OWNER 0
+! #define GROUP 3
+ #define MODES 0444
+ #define DIR_MODE 0755 /* directory creation modes */
+
+--- 12,19 ----
+ ** appropriate values are not in the configuration file.
+ */
+
+! #define OWNER 8
+! #define GROUP 8
+ #define MODES 0444
+ #define DIR_MODE 0755 /* directory creation modes */
+
+***************
+*** 26,32 ****
+ #define SUBJECT_LINE
+
+ #ifdef SUBJECT_LINE
+! #define MAIL "/usr/ucb/Mail" /* mail program to use */
+ # ifdef NOTDEF
+ # define MAIL "/usr/local/bin/elm"
+ # define MAIL "/usr/bin/mailx" /* mail program to use */
+--- 26,32 ----
+ #define SUBJECT_LINE
+
+ #ifdef SUBJECT_LINE
+! #define MAIL "/usr/bin/Mail" /* mail program to use */
+ # ifdef NOTDEF
+ # define MAIL "/usr/local/bin/elm"
+ # define MAIL "/usr/bin/mailx" /* mail program to use */
+***************
+*** 50,74 ****
+ ** (config) file.
+ */
+
+! #define PROBLEMS_DIR "/usenet/problems"
+
+ /*
+ ** Home directory for news
+ */
+
+! #define SPOOLDIR "/usr/spool/news"
+
+ /*
+ ** Temporary file creation directory
+ */
+
+! #define TMP_DIR "/usr/tmp"
+
+ /*
+ ** Location of the default rkive configuration file.
+ */
+
+! #define LOCATION "/usr/local/lib/rkive/rkive.cf"
+
+ /*
+ ** Defines to control the handling of repostings.
+--- 50,74 ----
+ ** (config) file.
+ */
+
+! #define PROBLEMS_DIR "!!PROBLEMSDIR!!"
+
+ /*
+ ** Home directory for news
+ */
+
+! #define SPOOLDIR "!!NEWSSPOOL!!"
+
+ /*
+ ** Temporary file creation directory
+ */
+
+! #define TMP_DIR "/var/tmp"
+
+ /*
+ ** Location of the default rkive configuration file.
+ */
+
+! #define LOCATION "!!PREFIX!!/lib/rkive/rkive.cf"
+
+ /*
+ ** Defines to control the handling of repostings.
+***************
+*** 139,145 ****
+ ** per archived article.
+ */
+
+! #define REDUCE_HEADERS
+
+ /*
+ ** The following define specifies a default format for generating
+--- 139,145 ----
+ ** per archived article.
+ */
+
+! #undef REDUCE_HEADERS
+
+ /*
+ ** The following define specifies a default format for generating
diff --git a/news/rkive/pkg-comment b/news/rkive/pkg-comment
new file mode 100644
index 000000000000..3334e9c1800c
--- /dev/null
+++ b/news/rkive/pkg-comment
@@ -0,0 +1 @@
+rkive - a USENET newsgroup archiver, version 3.1
diff --git a/news/rkive/pkg-descr b/news/rkive/pkg-descr
new file mode 100644
index 000000000000..0c3876fca962
--- /dev/null
+++ b/news/rkive/pkg-descr
@@ -0,0 +1,8 @@
+It is intended that rkive be run by cron on a daily basis. In this manner,
+software is archived and available for retrieval from the archives on the
+day it reaches the machine. It allows for the archives to be managed by
+the same or different people (or accounts). It supports the building
+of indexes for later review or to interface to the netlib type of mail
+retrieval software. It also supports mailing notifications of the archiving
+to a specified list of users or aliases. The indexes and log file formats
+are specifiable by the person configuring the rkive configuration file.
diff --git a/news/rkive/pkg-plist b/news/rkive/pkg-plist
new file mode 100644
index 000000000000..eb290684d6f4
--- /dev/null
+++ b/news/rkive/pkg-plist
@@ -0,0 +1,8 @@
+bin/article
+bin/rkive
+bin/ckconfig
+man/man1/rkive.1.gz
+man/man1/article.1.gz
+man/man1/ckconfig.1.gz
+lib/rkive/rkive.cf.sample
+lib/rkive/update_netdocs
diff --git a/news/rkive/scripts/configure b/news/rkive/scripts/configure
new file mode 100644
index 000000000000..cd7e2441c76a
--- /dev/null
+++ b/news/rkive/scripts/configure
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $Id$
+#
+if [ -d /var/spool/news ] && [ ! -d /var/news ]
+then
+ NEWSSPOOL=/var/spool/news
+else
+ NEWSSPOOL=/var/news
+fi
+
+if [ -z $PROBLEMSDIR ]
+then
+ echo Warning: PROBLEMSDIR undefined, using \"/usenet\" as default
+ echo " this will only be used if you do not specify"
+ echo " the PROBLEMS path variable inside the configuration"
+ echo " file ($PREFIX/lib/rkive/rkive.cf)"
+ PROBLEMSDIR=/usenet
+fi
+
+cat >/tmp/tmp.rkive.sed.$$ << --EOF--
+s+!!NEWSSPOOL!!+$NEWSSPOOL+g
+s+!!PREFIX!!+$PREFIX+g
+s+!!PROBLEMSDIR!!+$PROBLEMSDIR+g
+--EOF--
+
+mv ${WRKSRC}/rkive.h ${WRKSRC}/rkive.h.old
+sed <${WRKSRC}/rkive.h.old >${WRKSRC}/rkive.h -f /tmp/tmp.rkive.sed.$$
+
+rm -f /tmp/tmp.inn.sed.$$
+
+