diff options
author | mph <mph@FreeBSD.org> | 1998-04-24 13:35:03 +0000 |
---|---|---|
committer | mph <mph@FreeBSD.org> | 1998-04-24 13:35:03 +0000 |
commit | 566e4971d005a939a9415e105fd10d47730fc9db (patch) | |
tree | 39a712c16a293e6dcbcfaee02bac1952ec401f82 /net | |
parent | 063facfbd74565055e159a5b96666c9847d14349 (diff) | |
download | FreeBSD-ports-566e4971d005a939a9415e105fd10d47730fc9db.zip FreeBSD-ports-566e4971d005a939a9415e105fd10d47730fc9db.tar.gz |
Import of the Cistron radiusd.
PR: 6382
Submitted by: John Saunders <john@pacer.nlc.net.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/radiusd-cistron/Makefile | 58 | ||||
-rw-r--r-- | net/radiusd-cistron/distinfo | 1 | ||||
-rw-r--r-- | net/radiusd-cistron/files/patch-aa | 25 | ||||
-rw-r--r-- | net/radiusd-cistron/files/patch-ab | 32 | ||||
-rw-r--r-- | net/radiusd-cistron/files/patch-ac | 11 | ||||
-rw-r--r-- | net/radiusd-cistron/pkg-comment | 1 | ||||
-rw-r--r-- | net/radiusd-cistron/pkg-descr | 4 | ||||
-rw-r--r-- | net/radiusd-cistron/pkg-plist | 29 |
8 files changed, 161 insertions, 0 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile new file mode 100644 index 0000000..5f63908 --- /dev/null +++ b/net/radiusd-cistron/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: radiusd-cistron +# Version required: cistron radiusd 1.5.4.2 +# Date created: 19 Apr 1998 +# Whom: john@nlc.net.au +# +# $Id$ +# + +DISTNAME= radiusd-cistron-1.5.4.2 +CATEGORIES= net +MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/ + +MAINTAINER= john@nlc.net.au + +MAKEFILE= Makefile.BSD + +MAN5= clients.5rad naslist.5rad +MAN8= radiusd.8 + +do-build: + cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} + +do-install: + cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install + @${MKDIR} -m 700 ${PREFIX}/etc/raddb + @${MKDIR} -m 700 /var/log/radacct + ${INSTALL_DATA} ${WRKSRC}/raddb/clients ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/dictionary ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/dictionary.ascend ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/dictionary.compat ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/dictionary.merit ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/hints ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/huntgroups ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/naslist ${PREFIX}/etc/raddb + ${INSTALL_DATA} ${WRKSRC}/raddb/users ${PREFIX}/etc/raddb +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/INSTALL.OLD ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/README.pam ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/README.simul ${PREFIX}/share/doc/radiusd-cistron + ${INSTALL_DATA} ${WRKSRC}/doc/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron +.endif + ${INSTALL_MAN} ${WRKSRC}/doc/clients.5rad ${MANPREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/doc/naslist.5rad ${MANPREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${MANPREFIX}/man/man8 + +post-install: + @if [ ! -f ${PREFIX}/etc/rc.d/radiusd.sh ]; then \ + ${ECHO} "Installing ${PREFIX}/etc/rc.d/radiusd.sh startup file."; \ + ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/radiusd.sh; \ + ${ECHO} "[ -x ${PREFIX}/sbin/radiusd ] && ${PREFIX}/sbin/radiusd && echo -n ' radiusd'" >> ${PREFIX}/etc/rc.d/radiusd.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/radiusd.sh; \ + fi + +.include <bsd.port.mk> diff --git a/net/radiusd-cistron/distinfo b/net/radiusd-cistron/distinfo new file mode 100644 index 0000000..23cdcef --- /dev/null +++ b/net/radiusd-cistron/distinfo @@ -0,0 +1 @@ +MD5 (radiusd-cistron-1.5.4.2.tar.gz) = 9adb155d00faaade1fc303fa2ebd8ce0 diff --git a/net/radiusd-cistron/files/patch-aa b/net/radiusd-cistron/files/patch-aa new file mode 100644 index 0000000..5f80efb --- /dev/null +++ b/net/radiusd-cistron/files/patch-aa @@ -0,0 +1,25 @@ +--- src/Makefile.BSD.orig Sat Nov 22 09:40:03 1997 ++++ src/Makefile.BSD Fri Apr 24 09:21:12 1998 +@@ -3,9 +3,9 @@ + # + # + +-CC = gcc +-CFLAGS = -g -DNOSHADOW +-LDFLAGS = # -s #tatic ++#CC = cc ++CFLAGS += -DNOSHADOW -DPREFIX=\"$(PREFIX)\" ++LDFLAGS = -s #tatic + LIBS = + LCRYPT = -lcrypt + +@@ -15,7 +15,7 @@ + #PAM = -DPAM + #PAMLIB = -lpam + +-BINDIR = /usr/local/bin +-SBINDIR = /usr/local/sbin ++BINDIR = $(PREFIX)/bin ++SBINDIR = $(PREFIX)/sbin + + include Make.inc diff --git a/net/radiusd-cistron/files/patch-ab b/net/radiusd-cistron/files/patch-ab new file mode 100644 index 0000000..0d08eb8 --- /dev/null +++ b/net/radiusd-cistron/files/patch-ab @@ -0,0 +1,32 @@ +diff -u --recursive src/conf.h.orig src/conf.h +--- src/conf.h.orig Wed Sep 17 06:48:11 1997 ++++ src/conf.h Fri Apr 10 23:02:03 1998 +@@ -1,6 +1,6 @@ + /* Default Database File Names */ + +-#define RADIUS_DIR "/etc/raddb" ++#define RADIUS_DIR PREFIX "/etc/raddb" + #define RADACCT_DIR "/var/log/radacct" + #define RADLOG_DIR "/var/log" + +@@ -13,7 +13,7 @@ + #define RADIUS_HINTS "hints" + #define RADIUS_HUNTGROUPS "huntgroups" + +-#define RADUTMP "/var/log/radutmp" ++#define RADUTMP "/var/run/radutmp" + #define RADWTMP "/var/log/radwtmp" + + #define RADIUS_PID "/var/run/radiusd.pid" +diff -u --recursive src/radutmp.h.orig src/radutmp.h +--- src/radutmp.h.orig Tue Dec 23 08:30:31 1997 ++++ src/radutmp.h Fri Apr 10 23:02:47 1998 +@@ -7,7 +7,7 @@ + #ifndef _RADUTMP_H + #define _RADUTMP_H + +-#define RADUTMP "/var/log/radutmp" ++#define RADUTMP "/var/run/radutmp" + #define RADWTMP "/var/log/radwtmp" + + /* diff --git a/net/radiusd-cistron/files/patch-ac b/net/radiusd-cistron/files/patch-ac new file mode 100644 index 0000000..aa5bc65 --- /dev/null +++ b/net/radiusd-cistron/files/patch-ac @@ -0,0 +1,11 @@ +diff -u --recursive src/log.c.orig src/log.c +--- src/log.c.orig Tue Feb 11 02:50:28 1997 ++++ src/log.c Fri Apr 10 22:38:39 1998 +@@ -10,6 +10,7 @@ + #include <stdlib.h> + #include <unistd.h> + #include <stdarg.h> ++#include <time.h> + #include "radiusd.h" + + extern char *radlog_dir; diff --git a/net/radiusd-cistron/pkg-comment b/net/radiusd-cistron/pkg-comment new file mode 100644 index 0000000..c30e627 --- /dev/null +++ b/net/radiusd-cistron/pkg-comment @@ -0,0 +1 @@ +A remote authentication server (radius daemon). diff --git a/net/radiusd-cistron/pkg-descr b/net/radiusd-cistron/pkg-descr new file mode 100644 index 0000000..f8c0184 --- /dev/null +++ b/net/radiusd-cistron/pkg-descr @@ -0,0 +1,4 @@ +This is the cistron radiusd server. radiusd is a server that handles +access-requests for user authentication from radius clients. These +clients may be terminal servers, Network Access Servers or other +RADIUS servers. diff --git a/net/radiusd-cistron/pkg-plist b/net/radiusd-cistron/pkg-plist new file mode 100644 index 0000000..1b2c375 --- /dev/null +++ b/net/radiusd-cistron/pkg-plist @@ -0,0 +1,29 @@ +bin/radlast +bin/raduse +bin/radwho +bin/radzap +sbin/checkrad +sbin/radiusd +man/man5/clients.5rad.gz +man/man5/naslist.5rad.gz +man/man8/radiusd.8.gz +etc/raddb/clients +etc/raddb/dictionary +etc/raddb/dictionary.ascend +etc/raddb/dictionary.compat +etc/raddb/dictionary.merit +etc/raddb/hints +etc/raddb/huntgroups +etc/raddb/naslist +etc/raddb/users +share/doc/radiusd-cistron/COPYRIGHT +share/doc/radiusd-cistron/ChangeLog +share/doc/radiusd-cistron/INSTALL.OLD +share/doc/radiusd-cistron/README +share/doc/radiusd-cistron/README.pam +share/doc/radiusd-cistron/README.simul +etc/rc.d/radiusd.sh +@dirrm etc/raddb +@dirrm share/doc/radiusd-cistron +@unexec rm -rf /var/log/radacct +@unexec rm -f /var/log/radius.log |