aboutsummaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-03-20 20:54:45 +0800
committerclement <clement@FreeBSD.org>2004-03-20 20:54:45 +0800
commitaa9d2696b6cc59dea35b8f1944211cc8775c74dc (patch)
treed22e2ec69cdcb98a24cb0c379a67d4c5ec0e38c8 /news
parent838ae235c5aed0d24ae7c0921df5c3d87444b36c (diff)
downloadfreebsd-ports-gnome-aa9d2696b6cc59dea35b8f1944211cc8775c74dc.tar.gz
freebsd-ports-gnome-aa9d2696b6cc59dea35b8f1944211cc8775c74dc.tar.zst
freebsd-ports-gnome-aa9d2696b6cc59dea35b8f1944211cc8775c74dc.zip
Add nntpswitch 0.10, a NNTP content router.
NNTPSwitch is a NNTP content router. It's aimed at high-performance news servers for ISPs and Usenet resellers. NNTPSwitch forwards client connections to multiple backend servers to get its actual articles. Depending on the backend server type, all NNTP commands and extensions are supported, including (remote) authorization. Accounting is supported in a user-friendly matter for data limited NNTP connections. WWW: http://www.nntpswitch.org/
Diffstat (limited to 'news')
-rw-r--r--news/Makefile1
-rw-r--r--news/nntpswitch/Makefile62
-rw-r--r--news/nntpswitch/distinfo2
-rw-r--r--news/nntpswitch/files/nntpswitch.sh22
-rw-r--r--news/nntpswitch/files/patch-Makefile30
-rw-r--r--news/nntpswitch/files/patch-auth_postgres.c11
-rw-r--r--news/nntpswitch/files/patch-nntpswitch.conf.in27
-rw-r--r--news/nntpswitch/pkg-descr8
-rw-r--r--news/nntpswitch/pkg-plist19
9 files changed, 182 insertions, 0 deletions
diff --git a/news/Makefile b/news/Makefile
index b135be8fde72..bd1e6f2e9e69 100644
--- a/news/Makefile
+++ b/news/Makefile
@@ -51,6 +51,7 @@
SUBDIR += nntp
SUBDIR += nntpbtr
SUBDIR += nntpcache
+ SUBDIR += nntpswitch
SUBDIR += noffle
SUBDIR += p5-Gateway
SUBDIR += p5-NNTPClient
diff --git a/news/nntpswitch/Makefile b/news/nntpswitch/Makefile
new file mode 100644
index 000000000000..6915bbbbb9f9
--- /dev/null
+++ b/news/nntpswitch/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: nntpswitch
+# Date created: Mar 18, 2004
+# Whom: clement
+#
+# $FreeBSD$
+#
+
+PORTNAME= nntpswitch
+PORTVERSION= 0.10
+CATEGORIES= news
+MASTER_SITES= http://www.nntpswitch.org/download/
+
+MAINTAINER= clement@FreeBSD.org
+COMMENT= A NNTP content router
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_GMAKE= YES
+USE_PERL5= YES
+INSTALLS_SHLIB= YES
+USE_REINPLACE= YES
+
+MAKE_ENV+= PERL=${PERL} LIBS="${LDFLAGS}"
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+ETC_FILES= access.conf auth.conf overview.fmt profiles.conf \
+ servers.conf passwd
+
+ETC_DIR= ${PREFIX}/etc/${PORTNAME}
+# dirty hack...
+ALL_TARGET= all
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= YES
+ALL_TARGET+= mysql
+LDFLAGS+= -L${LOCALBASE}/lib/mysql
+PLIST_FILES+= lib/libauth_mysql.so
+.endif
+
+.if defined(WITH_POSTGRESQL)
+LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql-client
+ALL_TARGET+= postgres
+PLIST_FILES+= lib/libauth_postgres.so
+.endif
+
+.if defined(WITH_FREERADIUS)
+LIB_DEPENDS+= radius:${PORTSDIR}/net/freeradius
+ALL_TARGET+= radius
+PLIST_FILES+= lib/libauth_radius.so lib/libacct_radius.so
+.endif
+
+do-configure:
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/nntpswitch.conf.in
+
+post-install:
+ ${MKDIR} ${PREFIX}/etc/${PORTNAME}
+.for FILE in ${ETC_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/etc/${FILE} ${ETC_DIR}/${FILE}-dist
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/nntpswitch.conf-dist ${ETC_DIR}/
+ ${INSTALL_SCRIPT} ${FILESDIR}/nntpswitch.sh ${PREFIX}/etc/rc.d/nntpswitch.sh-dist
+.include <bsd.port.mk>
diff --git a/news/nntpswitch/distinfo b/news/nntpswitch/distinfo
new file mode 100644
index 000000000000..3c354a3dfe83
--- /dev/null
+++ b/news/nntpswitch/distinfo
@@ -0,0 +1,2 @@
+MD5 (nntpswitch-0.10.tar.gz) = 01659b763f389bbd729b481a46f75458
+SIZE (nntpswitch-0.10.tar.gz) = 53709
diff --git a/news/nntpswitch/files/nntpswitch.sh b/news/nntpswitch/files/nntpswitch.sh
new file mode 100644
index 000000000000..3217bf3ea6ae
--- /dev/null
+++ b/news/nntpswitch/files/nntpswitch.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+ start)
+ [ -x ${PREFIX}/sbin/nntpswitchd ] && \
+ [ -r ${PREFIX}/etc/nntpswitch/nntpswitch.conf ] && \
+ ${PREFIX}/sbin/nntpswitchd 2>/dev/null && \
+ echo -n ' nntpswitchd'
+
+ ;;
+ stop)
+ kill `cat /var/run/nntpswitchd.pid` && echo -n ' nntpswitchd'
+ ;;
+ *)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
diff --git a/news/nntpswitch/files/patch-Makefile b/news/nntpswitch/files/patch-Makefile
new file mode 100644
index 000000000000..1dae955f5504
--- /dev/null
+++ b/news/nntpswitch/files/patch-Makefile
@@ -0,0 +1,30 @@
+--- Makefile.orig Mon Mar 8 11:37:11 2004
++++ Makefile Thu Mar 18 13:32:20 2004
+@@ -1,7 +1,3 @@
+-
+-PREFIX = /usr/local
+-PERL = /usr/bin/perl
+-
+ PROG = nntpswitchd
+ INSTUTILS= nsstats.pl nsstats.sh updategroups
+
+@@ -14,9 +10,8 @@
+ DISTNAME = nntpswitch
+ VERSION = `/bin/sh version.sh`
+ CC = gcc
+-CFLAGS = -pipe -g -O3 -Wall -D_VERSION=\"$(VERSION)\"
+-LDFLAGS =
+-LIBS = -lm -ldl
++CFLAGS += -D_VERSION=\"$(VERSION)\"
++LIBS += -lm
+ _DIRNAME = $(DISTNAME)
+
+ all: protos config aconfig.o $(PROG) $(MODULES) updategroups
+@@ -82,7 +77,6 @@
+ @if [ -f acct_radius.so ]; then cp acct_radius.so $(PREFIX)/lib/libacct_radius.so; fi
+ @if [ -f auth_postgres.so ]; then cp auth_postgres.so $(PREFIX)/lib/libauth_postgres.so; fi
+ @if [ -f auth_mysql.so ]; then cp auth_mysql.so $(PREFIX)/lib/libauth_mysql.so; fi
+- ldconfig
+
+ help:
+ @echo "Choose one of the following targets:"
diff --git a/news/nntpswitch/files/patch-auth_postgres.c b/news/nntpswitch/files/patch-auth_postgres.c
new file mode 100644
index 000000000000..d996de46c6f9
--- /dev/null
+++ b/news/nntpswitch/files/patch-auth_postgres.c
@@ -0,0 +1,11 @@
+--- auth_postgres.c.orig Thu Mar 18 13:04:49 2004
++++ auth_postgres.c Thu Mar 18 13:04:55 2004
+@@ -7,7 +7,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-#include <postgresql/libpq-fe.h>
++#include <libpq-fe.h>
+
+ #include "nntpd.h"
+ #include "aconfig.h"
diff --git a/news/nntpswitch/files/patch-nntpswitch.conf.in b/news/nntpswitch/files/patch-nntpswitch.conf.in
new file mode 100644
index 000000000000..9e742979e68e
--- /dev/null
+++ b/news/nntpswitch/files/patch-nntpswitch.conf.in
@@ -0,0 +1,27 @@
+--- nntpswitch.conf.in.orig Thu Mar 18 18:13:36 2004
++++ nntpswitch.conf.in Thu Mar 18 18:14:54 2004
+@@ -11,16 +11,16 @@
+
+ # Paths and Files
+ # kill -1 will reload these
+-string AccessFile /etc/nntpswitch/access.conf
+-string AuthFile /etc/nntpswitch/auth.conf
+-string ProfileFile /etc/nntpswitch/profiles.conf
+-string ServerFile /usr/local/etc/nntpswitch/servers.conf
++string AccessFile %%PREFIX%%/etc/nntpswitch/access.conf
++string AuthFile %%PREFIX%%/etc/nntpswitch/auth.conf
++string ProfileFile %%PREFIX%%/etc/nntpswitch/profiles.conf
++string ServerFile %%PREFIX%%/etc/nntpswitch/servers.conf
+
+-string OverviewFmtFile /etc/nntpswitch/overview.fmt
+-string ActiveFile /etc/nntpswitch/active
+-string NewsgroupsFile /etc/nntpswitch/newsgroups
++string OverviewFmtFile %%PREFIX%%/etc/nntpswitch/overview.fmt
++string ActiveFile %%PREFIX%%/etc/nntpswitch/active
++string NewsgroupsFile %%PREFIX%%/etc/nntpswitch/newsgroups
+
+-string ModulePath /usr/local/lib
++string ModulePath %%PREFIX%%/lib
+
+ # Timeout for server reading
+ int ServerReadTimeout 300
diff --git a/news/nntpswitch/pkg-descr b/news/nntpswitch/pkg-descr
new file mode 100644
index 000000000000..9396751db19c
--- /dev/null
+++ b/news/nntpswitch/pkg-descr
@@ -0,0 +1,8 @@
+NNTPSwitch is a NNTP content router. It's aimed at high-performance
+news servers for ISPs and Usenet resellers. NNTPSwitch forwards client
+connections to multiple backend servers to get its actual articles.
+Depending on the backend server type, all NNTP commands and extensions
+are supported, including (remote) authorization. Accounting is supported
+in a user-friendly matter for data limited NNTP connections.
+
+WWW: http://www.nntpswitch.org/
diff --git a/news/nntpswitch/pkg-plist b/news/nntpswitch/pkg-plist
new file mode 100644
index 000000000000..2b9edba861b6
--- /dev/null
+++ b/news/nntpswitch/pkg-plist
@@ -0,0 +1,19 @@
+etc/nntpswitch/access.conf-dist
+etc/nntpswitch/auth.conf-dist
+etc/nntpswitch/nntpswitch.conf-dist
+etc/nntpswitch/overview.fmt-dist
+etc/nntpswitch/profiles.conf-dist
+etc/nntpswitch/servers.conf-dist
+etc/nntpswitch/passwd-dist
+etc/rc.d/nntpswitch.sh-dist
+lib/libacct_none.so
+lib/libacct_syslog.so
+lib/libauth_ignore.so
+lib/libauth_passwd.so
+lib/libauth_pop3.so
+lib/libauth_remote.so
+sbin/nntpswitchd
+sbin/nsstats.pl
+sbin/nsstats.sh
+sbin/updategroups
+@unexec rmdir %D/etc/nntpswitch 2> /dev/null || echo "===> If you plan to do not reinstall nntpswitch, you can safely remove %D/etc/nntpswitch."