summaryrefslogtreecommitdiff
path: root/news/nntpclnt
diff options
context:
space:
mode:
authortv <tv>1998-03-25 19:31:35 +0000
committertv <tv>1998-03-25 19:31:35 +0000
commit2cb4841598a7f23919671c79250295bfd79bb2b4 (patch)
tree289ddcb4471f72899057d8ee20e61e9695e22d3b /news/nntpclnt
parentbf73ae8a9e615e73a540c2b256e483bd023d43f5 (diff)
downloadpkgsrc-2cb4841598a7f23919671c79250295bfd79bb2b4.tar.gz
Addition of "nntpclnt", the reference implementation of RFC977 and the
popularly used inews posting program.
Diffstat (limited to 'news/nntpclnt')
-rw-r--r--news/nntpclnt/Makefile35
-rw-r--r--news/nntpclnt/files/config.sh78
-rw-r--r--news/nntpclnt/files/md51
-rw-r--r--news/nntpclnt/patches/patch-aa32
-rw-r--r--news/nntpclnt/pkg/COMMENT1
-rw-r--r--news/nntpclnt/pkg/DESCR4
-rw-r--r--news/nntpclnt/pkg/MESSAGE19
-rw-r--r--news/nntpclnt/pkg/PLIST6
8 files changed, 176 insertions, 0 deletions
diff --git a/news/nntpclnt/Makefile b/news/nntpclnt/Makefile
new file mode 100644
index 00000000000..22d6475acf1
--- /dev/null
+++ b/news/nntpclnt/Makefile
@@ -0,0 +1,35 @@
+# New ports collection Makefile for: nntpclnt
+# Version required: 1.6.1
+#
+# Date created: 25 March 1998
+# Whom: tv@netbsd.org
+#
+# $NetBSD: Makefile,v 1.1 1998/03/25 19:31:35 tv Exp $
+#
+
+DISTNAME= nntpclnt-1.6.1
+CATEGORIES= news
+MASTER_SITES= ${MASTER_SITES_LOCAL}
+
+MAINTAINER= tv@netbsd.org
+ALL_TARGET= inews
+
+MAN3= nntpclnt.3
+
+do-configure:
+ ${SED} -e s,@PREFIX@,${PREFIX}, ${FILESDIR}/config.sh >${WRKSRC}/config.sh
+ @cd ${WRKSRC} && sh Makefile.SH && sh config.h.SH
+
+post-build:
+ cd ${WRKSRC} && \
+ ${AR} clq libnntpclnt.a nntpclnt.o && ${RANLIB} libnntpclnt.a
+
+do-install:
+ ${INSTALL_PROGRAM} -g news -m 2555 ${WRKSRC}/inews ${PREFIX}/bin/
+ ${INSTALL_DATA} ${WRKSRC}/nntp.h ${PREFIX}/include/
+ ${INSTALL_DATA} ${WRKSRC}/libnntpclnt.a ${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/nntpclnt.3 ${PREFIX}/man/man3/
+ ${INSTALL_DATA_DIR} ${PREFIX}/etc/nntp
+ ${CAT} ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>
diff --git a/news/nntpclnt/files/config.sh b/news/nntpclnt/files/config.sh
new file mode 100644
index 00000000000..da566eb4d72
--- /dev/null
+++ b/news/nntpclnt/files/config.sh
@@ -0,0 +1,78 @@
+#!/bin/sh
+# config.sh
+# This file was produced by running the Configure script
+# (and manually bashed on by tv@netbsd.org)
+
+n='-n'
+c=''
+libc='/usr/lib/libc.a'
+eunicefix=':'
+eunice='undef'
+cpp='/usr/bin/cpp'
+shsharp='true'
+startsh='#!/bin/sh'
+spitshell='cat'
+test='test'
+expr='expr'
+sed='sed'
+echo='echo'
+cat='cat'
+rm='rm'
+cp='cp'
+tr='tr'
+mkdir='mkdir'
+inews='inews'
+grep='grep'
+chmod='chmod'
+awk='awk'
+egrep='/usr/bin/egrep'
+nidump='/bin/cat'
+ypmatch='/bin/cat'
+jobslib=''
+contains='grep'
+lib='@PREFIX@/etc'
+libexp='@PREFIX@/etc'
+nametype='bsd'
+cc='cc'
+iandd=''
+include=''
+socketlib=''
+posix=''
+nonetdb='undef'
+internet=''
+filexp=''
+dotdir='define'
+strncasecmp='define'
+strcasecmp='define'
+seteuid='define'
+sitename=''
+hostfile='@PREFIX@/etc/nntp/domainname'
+domain=''
+isadmin='undef'
+newsadmin='root'
+novoid='undef'
+mansrc='@PREFIX@/man/man1'
+manext='1'
+rootid='0'
+strchr='define'
+memcpy='define'
+sunos4='undef'
+solaris='undef'
+portable='define'
+passnam='define'
+berknam='define'
+usgnam='undef'
+whoami='undef'
+getpwent='define'
+gethostname='undef'
+douname='undef'
+phostname='undef'
+hostcmd=''
+serverfile='@PREFIX@/etc/nntp/server'
+auth='define'
+authsimple='define'
+authold='define'
+passfile='@PREFIX@/etc/nntp/server.auth'
+decnet='undef'
+datakit='undef'
+CONFIG=true
diff --git a/news/nntpclnt/files/md5 b/news/nntpclnt/files/md5
new file mode 100644
index 00000000000..e23a00b8740
--- /dev/null
+++ b/news/nntpclnt/files/md5
@@ -0,0 +1 @@
+MD5 (nntpclnt-1.6.1.tar.gz) = a2615cc9f8cf46f1a403a34d2a9c412d
diff --git a/news/nntpclnt/patches/patch-aa b/news/nntpclnt/patches/patch-aa
new file mode 100644
index 00000000000..da3b6300f26
--- /dev/null
+++ b/news/nntpclnt/patches/patch-aa
@@ -0,0 +1,32 @@
+*** uname.c.orig Wed Mar 25 11:12:00 1998
+--- uname.c Wed Mar 25 13:51:09 1998
+***************
+*** 66,79 ****
+ char *uptr;
+ {
+ FILE * uucpf;
+! char * hostname;
+ if ((uucpf = fopen(HOSTFILE,"r")) == NULL) {
+ fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n",
+ HOSTFILE);
+ exit(1);
+ } else {
+ fgets(uptr, 256, uucpf);
+- fclose(tmpfp);
+ }
+ p = index(uptr, '\n');
+ if (p)
+--- 66,78 ----
+ char *uptr;
+ {
+ FILE * uucpf;
+! char * p;
+ if ((uucpf = fopen(HOSTFILE,"r")) == NULL) {
+ fprintf(stderr,"Couldn't open %s to determine hostname. Contact your system administrator.\n",
+ HOSTFILE);
+ exit(1);
+ } else {
+ fgets(uptr, 256, uucpf);
+ }
+ p = index(uptr, '\n');
+ if (p)
diff --git a/news/nntpclnt/pkg/COMMENT b/news/nntpclnt/pkg/COMMENT
new file mode 100644
index 00000000000..6c074c4da1f
--- /dev/null
+++ b/news/nntpclnt/pkg/COMMENT
@@ -0,0 +1 @@
+NNTP client library and inews client posting program
diff --git a/news/nntpclnt/pkg/DESCR b/news/nntpclnt/pkg/DESCR
new file mode 100644
index 00000000000..63626de707e
--- /dev/null
+++ b/news/nntpclnt/pkg/DESCR
@@ -0,0 +1,4 @@
+`nntpclnt' is the reference implementation of the NNTP client routines.
+Included in this package is the commonly-used `inews' posting program and
+a library useful to link to programs that simplifies NNTP implementation
+throughout a system.
diff --git a/news/nntpclnt/pkg/MESSAGE b/news/nntpclnt/pkg/MESSAGE
new file mode 100644
index 00000000000..94297ce4b59
--- /dev/null
+++ b/news/nntpclnt/pkg/MESSAGE
@@ -0,0 +1,19 @@
+==============================================================================
+
+NOTE: THIS PACKAGE IS UNUSABLE WITHOUT SETTING UP THE FOLLOWING FILES:
+
+$PREFIX/etc/nntp/domainname (typically /usr/pkg/etc/nntp/domainname):
+ The domain name that should go after @ on NNTP posts by default
+
+$PREFIX/etc/nntp/server (typically /usr/pkg/etc/nntp/nntp):
+ The hostname or IP address of your NNTP server (this can be omitted
+ if you set NNTPSERVER in your environment)
+
+Optionally,
+
+$PREFIX/etc/nntp/server.auth (typically /usr/pkg/etc/nntp/server.auth):
+ "hostname user password" format authentication information for the
+ NNTP server, if it requires authentication. This file should only
+ be readable by group "news".
+
+==============================================================================
diff --git a/news/nntpclnt/pkg/PLIST b/news/nntpclnt/pkg/PLIST
new file mode 100644
index 00000000000..48c903b9ead
--- /dev/null
+++ b/news/nntpclnt/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 1998/03/25 19:31:36 tv Exp $
+bin/inews
+lib/libnntpclnt.a
+@exec mkdir -p %D/etc/nntp
+@dirrm etc/nntp
+man/man3/nntpclnt.3.gz