Date: Thu, 7 Sep 2000 14:30:12 -0400 (EDT) From: pal@paladin7.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/21097: new port: net/xtradius Message-ID: <200009071830.e87IUC420826@kotiki.net>
next in thread | raw e-mail | index | archive | help
>Number: 21097 >Category: ports >Synopsis: new port: net/xtradius >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 07 11:30:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Gene Raytsin >Release: FreeBSD 5.0-CURRENT i386 >Organization: PaLaDiN7.net >Environment: FreeBSD kotiki.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Aug 19 20:27:15 EDT 2000 pal@kotiki.net:/usr2/obj/usr/src/sys/KOTIKI i386 >Description: new port: net/xtradius >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xtradius # xtradius/Makefile # xtradius/port.sh # xtradius/pkg # xtradius/pkg/COMMENT # xtradius/pkg/DESCR # xtradius/pkg/PLIST # xtradius/patches # xtradius/patches/patch-ad # xtradius/patches/patch-aa # xtradius/patches/patch-ab # xtradius/patches/patch-ac # xtradius/files # xtradius/files/md5 # xtradius/files/radiusd.sh.tmpl # echo c - xtradius mkdir -p xtradius > /dev/null 2>&1 echo x - xtradius/Makefile sed 's/^X//' >xtradius/Makefile << 'END-of-xtradius/Makefile' X# New ports collection makefile for: xtradius X# Date created: 06 September 2000 X# Whom: pal@paladin7.net X# X# $FreeBSD$ X# X XPORTNAME= xtradius XPORTVERSION= 1.0b3 XCATEGORIES= net XMASTER_SITES= http://www.xtradius.com/download/ XDISTNAME= xtradius-1.0beta3 XEXTRACT_SUFX= .tgz X XMAINTAINER= pal@paladin7.net X XMAKEFILE= Makefile.BSD X XMAN1= radlast.1 radtest.1 raduse.1 radwho.1 radzap.1 XMAN5= clients.5rad naslist.5rad XMAN8= radiusd.8 radwatch.8 XVARD=/var/log X Xdo-build: X cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} X Xdo-install: X cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install X @${MKDIR} -m 700 ${VARD}/radacct X.if !defined(NOPORTDOCS) X @${MKDIR} ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Cistron ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Livingston ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/INSTALL.OLD ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.Y2K ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.cisco ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.pam ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.proxy ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.simul ${PREFIX}/share/doc/radiusd-xtradius X ${INSTALL_DATA} ${WRKSRC}/doc/README.usersfile ${PREFIX}/share/doc/radiusd-xtradius X.endif X ${INSTALL_MAN} ${WRKSRC}/doc/radlast.1 ${MANPREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/radtest.1 ${MANPREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/raduse.1 ${MANPREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/radwho.1 ${MANPREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/radzap.1 ${MANPREFIX}/man/man1 X ${INSTALL_MAN} ${WRKSRC}/doc/clients.5rad ${MANPREFIX}/man/man5 X ${INSTALL_MAN} ${WRKSRC}/doc/naslist.5rad ${MANPREFIX}/man/man5 X ${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${MANPREFIX}/man/man8 X ${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${MANPREFIX}/man/man8 X Xpost-install: X ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/users ${PREFIX}/etc/raddb/users.pg X ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_auth.pl ${PREFIX}/etc/raddb X ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_acct.pl ${PREFIX}/etc/raddb X @${CHMOD} 555 ${PREFIX}/etc/raddb/pg_acct.pl ${PREFIX}/etc/raddb/pg_auth.pl X @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_acct.pl X @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_auth.pl X @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \ X > ${PREFIX}/etc/rc.d/radiusd.sh X @${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd.sh X @${CHOWN} root.wheel ${PREFIX}/etc/rc.d/radiusd.sh X.include <bsd.port.mk> END-of-xtradius/Makefile echo x - xtradius/port.sh sed 's/^X//' >xtradius/port.sh << 'END-of-xtradius/port.sh' X# This is a shell archive. Save it in a file, remove anything before X# this line, and then unpack it by entering "sh file". Note, it may X# create directories; files and directories will be owned by you and X# have default permissions. X# X# This archive contains: X# X# . X# ./README.html X# ./Makefile X# ./port.sh X# ./pkg X# ./pkg/COMMENT X# ./pkg/DESCR X# ./pkg/PLIST X# ./patches X# ./patches/patch-aa X# ./patches/patch-ab X# ./patches/patch-ac X# ./patches/patch-af X# ./files X# ./files/md5 X# ./files/radiusd.sh.tmpl X# Xecho c - . Xmkdir -p . > /dev/null 2>&1 Xecho x - ./README.html Xsed 's/^X//' >./README.html << 'END-of-./README.html' XX<html> XX<title> The FreeBSD Ports Collection (net/radiusd-cistron)</title> XX<head><h1> The FreeBSD Ports Collection ("net/radiusd-cistron")</h1> </head> <hr> XX<body> XX XX<p>You are now in the directory for the port "net/radiusd-cistron" (package name "radiusd-cistron-1.6.1"). XX XX<p>This is the one-line description for this port: XX XX<p><hr><p> XXA RADIUS-compliant remote authentication and accouting server XX<p><hr> XX XX<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a XXlonger description. XX XX<p>Go to the <a href="../../README.html">top of the ports tree</a> for XXa summary on how to use the ports collection. XX XX<p> XX XX<p> XX XX XX<p><hr><p> XX<a href="../README.html"> Go up one level</a> XX| XX<a href="../../README.html"> Go to top of ports tree</a> XX</body> XX</html> XEND-of-./README.html Xecho x - ./Makefile Xsed 's/^X//' >./Makefile << 'END-of-./Makefile' XX# New ports collection makefile for: xtradius XX# Date created: 06 September 2000 XX# Whom: pal@paladin7.net XX# XX# $FreeBSD$ XX# XX XXPORTNAME= xtradius XXPORTVERSION= 1.0b3 XXCATEGORIES= net XXMASTER_SITES= http://www.xtradius.com/download/ XXDISTNAME= xtradius-1.0beta3 XXEXTRACT_SUFX= .tgz XX XXMAINTAINER= pal@paladin7.net XX XXMAKEFILE= Makefile.BSD XX XXMAN1= radlast.1 radtest.1 raduse.1 radwho.1 radzap.1 XXMAN5= clients.5rad naslist.5rad XXMAN8= radiusd.8 radwatch.8 XXVARD=/var/log XX XXdo-build: XX cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} XX XXdo-install: XX cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install XX @${MKDIR} -m 700 ${VARD}/radacct XX.if !defined(NOPORTDOCS) XX @${MKDIR} ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Cistron ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Livingston ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/INSTALL.OLD ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.Y2K ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.cisco ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.pam ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.proxy ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.simul ${PREFIX}/share/doc/radiusd-xtradius XX ${INSTALL_DATA} ${WRKSRC}/doc/README.usersfile ${PREFIX}/share/doc/radiusd-xtradius XX.endif XX ${INSTALL_MAN} ${WRKSRC}/doc/radlast.1 ${MANPREFIX}/man/man1 XX ${INSTALL_MAN} ${WRKSRC}/doc/radtest.1 ${MANPREFIX}/man/man1 XX ${INSTALL_MAN} ${WRKSRC}/doc/raduse.1 ${MANPREFIX}/man/man1 XX ${INSTALL_MAN} ${WRKSRC}/doc/radwho.1 ${MANPREFIX}/man/man1 XX ${INSTALL_MAN} ${WRKSRC}/doc/radzap.1 ${MANPREFIX}/man/man1 XX ${INSTALL_MAN} ${WRKSRC}/doc/clients.5rad ${MANPREFIX}/man/man5 XX ${INSTALL_MAN} ${WRKSRC}/doc/naslist.5rad ${MANPREFIX}/man/man5 XX ${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${MANPREFIX}/man/man8 XX ${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${MANPREFIX}/man/man8 XX XXpost-install: XX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/users ${PREFIX}/etc/raddb/users.pg XX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_auth.pl ${PREFIX}/etc/raddb XX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_acct.pl ${PREFIX}/etc/raddb XX @${CHMOD} 555 ${PREFIX}/etc/raddb/pg_acct.pl ${PREFIX}/etc/raddb/pg_auth.pl XX @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_acct.pl XX @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_auth.pl XX @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \ XX > ${PREFIX}/etc/rc.d/radiusd.sh XX @${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd.sh XX @${CHOWN} root.wheel ${PREFIX}/etc/rc.d/radiusd.sh XX.include <bsd.port.mk> XEND-of-./Makefile Xecho x - ./port.sh Xsed 's/^X//' >./port.sh << 'END-of-./port.sh' XX# This is a shell archive. Save it in a file, remove anything before XX# this line, and then unpack it by entering "sh file". Note, it may XX# create directories; files and directories will be owned by you and XX# have default permissions. XX# XX# This archive contains: XX# XX# . XX# ./README.html XX# ./Makefile XX# ./port.sh XX# ./pkg XX# ./pkg/COMMENT XX# ./pkg/DESCR XX# ./pkg/PLIST XX# ./patches XX# ./patches/patch-aa XX# ./patches/patch-ab XX# ./patches/patch-ac XX# ./patches/patch-af XX# ./files XX# ./files/md5 XX# ./files/radiusd.sh.tmpl XX# XXecho c - . XXmkdir -p . > /dev/null 2>&1 XXecho x - ./README.html XXsed 's/^X//' >./README.html << 'END-of-./README.html' XXX<html> XXX<title> The FreeBSD Ports Collection (net/radiusd-cistron)</title> XXX<head><h1> The FreeBSD Ports Collection ("net/radiusd-cistron")</h1> </head> <hr> XXX<body> XXX XXX<p>You are now in the directory for the port "net/radiusd-cistron" (package name "radiusd-cistron-1.6.1"). XXX XXX<p>This is the one-line description for this port: XXX XXX<p><hr><p> XXXA RADIUS-compliant remote authentication and accouting server XXX<p><hr> XXX XXX<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a XXXlonger description. XXX XXX<p>Go to the <a href="../../README.html">top of the ports tree</a> for XXXa summary on how to use the ports collection. XXX XXX<p> XXX XXX<p> XXX XXX XXX<p><hr><p> XXX<a href="../README.html"> Go up one level</a> XXX| XXX<a href="../../README.html"> Go to top of ports tree</a> XXX</body> XXX</html> XXEND-of-./README.html XXecho x - ./Makefile XXsed 's/^X//' >./Makefile << 'END-of-./Makefile' XXX# New ports collection makefile for: xtradius XXX# Date created: 06 September 2000 XXX# Whom: pal@paladin7.net XXX# XXX# $FreeBSD$ XXX# XXX XXXPORTNAME= xtradius XXXPORTVERSION= 1.0b3 XXXCATEGORIES= net XXXMASTER_SITES= http://www.xtradius.com/download/ XXXDISTNAME= xtradius-1.0beta3 XXXEXTRACT_SUFX= .tgz XXX XXXMAINTAINER= pal@paladin7.net XXX XXXMAKEFILE= Makefile.BSD XXX XXXMAN1= radlast.1 radtest.1 raduse.1 radwho.1 radzap.1 XXXMAN5= clients.5rad naslist.5rad XXXMAN8= radiusd.8 radwatch.8 XXXVARD=/var/log XXX XXXdo-build: XXX cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} XXX XXXdo-install: XXX cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install XXX @${MKDIR} -m 700 ${VARD}/radacct XXX.if !defined(NOPORTDOCS) XXX @${MKDIR} ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Cistron ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.Livingston ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/INSTALL.OLD ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.Y2K ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.cisco ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.pam ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.proxy ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.simul ${PREFIX}/share/doc/radiusd-xtradius XXX ${INSTALL_DATA} ${WRKSRC}/doc/README.usersfile ${PREFIX}/share/doc/radiusd-xtradius XXX.endif XXX ${INSTALL_MAN} ${WRKSRC}/doc/radlast.1 ${MANPREFIX}/man/man1 XXX ${INSTALL_MAN} ${WRKSRC}/doc/radtest.1 ${MANPREFIX}/man/man1 XXX ${INSTALL_MAN} ${WRKSRC}/doc/raduse.1 ${MANPREFIX}/man/man1 XXX ${INSTALL_MAN} ${WRKSRC}/doc/radwho.1 ${MANPREFIX}/man/man1 XXX ${INSTALL_MAN} ${WRKSRC}/doc/radzap.1 ${MANPREFIX}/man/man1 XXX ${INSTALL_MAN} ${WRKSRC}/doc/clients.5rad ${MANPREFIX}/man/man5 XXX ${INSTALL_MAN} ${WRKSRC}/doc/naslist.5rad ${MANPREFIX}/man/man5 XXX ${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${MANPREFIX}/man/man8 XXX ${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${MANPREFIX}/man/man8 XXX XXXpost-install: XXX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/users ${PREFIX}/etc/raddb/users.pg XXX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_auth.pl ${PREFIX}/etc/raddb XXX ${INSTALL_DATA} ${WRKSRC}/contrib/pg_xtradius/pg_acct.pl ${PREFIX}/etc/raddb XXX @${CHMOD} 555 ${PREFIX}/etc/raddb/pg_acct.pl ${PREFIX}/etc/raddb/pg_auth.pl XXX @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_acct.pl XXX @${CHOWN} root.wheel ${PREFIX}/etc/raddb/pg_auth.pl XXX @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \ XXX > ${PREFIX}/etc/rc.d/radiusd.sh XXX @${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd.sh XXX @${CHOWN} root.wheel ${PREFIX}/etc/rc.d/radiusd.sh XXX.include <bsd.port.mk> XXEND-of-./Makefile XXecho x - ./port.sh XXsed 's/^X//' >./port.sh << 'END-of-./port.sh' XEND-of-./port.sh Xecho c - ./pkg Xmkdir -p ./pkg > /dev/null 2>&1 Xecho x - ./pkg/COMMENT Xsed 's/^X//' >./pkg/COMMENT << 'END-of-./pkg/COMMENT' XXA RADIUS-compliant remote authentication and accouting server XEND-of-./pkg/COMMENT Xecho x - ./pkg/DESCR Xsed 's/^X//' >./pkg/DESCR << 'END-of-./pkg/DESCR' XXXtRadius is a freeware radius server implementation. The main feature is that it XXcan handle user accounting and authentication informations via external fully XXconfigurable scripts. XXThe XtRadius server is based on Cistron Radius 1.6.3. You can write script to XXmake you own auth and/or accounting routines without having to patch the main XXserver. XX XXWWW: http://www.xtradius.com XEND-of-./pkg/DESCR Xecho x - ./pkg/PLIST Xsed 's/^X//' >./pkg/PLIST << 'END-of-./pkg/PLIST' XXbin/radlast XXbin/radtest XXbin/raduse XXbin/radwho XXbin/radzap XXsbin/checkrad XXsbin/radiusd XXetc/raddb/clients XXetc/raddb/dictionary XXetc/raddb/dictionary.ascend XXetc/raddb/dictionary.cisco XXetc/raddb/dictionary.compat XXetc/raddb/dictionary.livingston XXetc/raddb/dictionary.shiva XXetc/raddb/dictionary.tunnel XXetc/raddb/dictionary.usr XXetc/raddb/dictionary.versanet XXetc/raddb/hints XXetc/raddb/huntgroups XXetc/raddb/naslist XXetc/raddb/naspasswd XXetc/raddb/realms XXetc/raddb/users XXetc/raddb/pg_auth.pl XXetc/raddb/pg_acct.pl XXshare/doc/radiusd-xtradius/COPYRIGHT.Cistron XXshare/doc/radiusd-xtradius/COPYRIGHT.Livingston XXshare/doc/radiusd-xtradius/ChangeLog XXshare/doc/radiusd-xtradius/INSTALL.OLD XXshare/doc/radiusd-xtradius/README XXshare/doc/radiusd-xtradius/README.Y2K XXshare/doc/radiusd-xtradius/README.cisco XXshare/doc/radiusd-xtradius/README.pam XXshare/doc/radiusd-xtradius/README.proxy XXshare/doc/radiusd-xtradius/README.simul XXshare/doc/radiusd-xtradius/README.usersfile XXetc/rc.d/radiusd.sh XX@dirrm etc/raddb XX@dirrm share/doc/radiusd-xtradius XX@unexec rm -f /var/log/radius.log XX@unexec rm -f /var/run/radiusd.pid XX@unexec echo "Leaving /var/run/radutmp, /var/log/radwtmp and /var/log/radacct alone." XEND-of-./pkg/PLIST Xecho c - ./patches Xmkdir -p ./patches > /dev/null 2>&1 Xecho x - ./patches/patch-aa Xsed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa' XX--- src/Makefile.BSD.orig Fri Aug 25 16:30:17 2000 XX+++ src/Makefile.BSD Fri Aug 25 16:32:14 2000 XX@@ -3,9 +3,9 @@ XX # XX # XX XX-CC = gcc XX-CFLAGS = -Wall -g -DNOSHADOW -DXTRADIUS XX-LDFLAGS = # -s #tatic XX+#CC = gcc XX+CFLAGS = -DNOSHADOW -DXTRADIUS XX+LDFLAGS = -s #static XX LIBS = XX LCRYPT = -lcrypt XX XX@@ -15,7 +15,7 @@ XX #PAM = -DPAM XX #PAMLIB = -lpam XX XX-BINDIR = /usr/local/bin XX-SBINDIR = /usr/local/sbin XX+BINDIR = $(PREFIX)/bin XX+SBINDIR = $(PREFIX)/sbin XX XX .include "Make.inc" XEND-of-./patches/patch-aa Xecho x - ./patches/patch-ab Xsed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab' XX--- src/Make.inc.orig Mon Apr 3 11:00:59 2000 XX+++ src/Make.inc Wed May 3 18:56:35 2000 XX@@ -4,7 +4,7 @@ XX # XX # XX XX-RADIUS_DIR = /etc/raddb XX+RADIUS_DIR = ${PREFIX}/etc/raddb XX XX SERVER_OBJS = radiusd.o dict.o files.o util.o md5.o attrprint.o \ XX acct.o radius.o pam.o log.o version.o proxy.o \ XX@@ -111,21 +111,20 @@ XX XX install: XX # Install the binaries XX- install -d $(SBINDIR) XX- install -d $(BINDIR) XX- install -d $(RADIUS_DIR) XX- install -m 755 -s radiusd $(SBINDIR)/radiusd XX- install -m 755 -s radwho $(BINDIR) XX- install -m 755 -s raduse $(BINDIR) XX- install -m 755 -s radzap $(BINDIR) XX- install -m 755 -s radtest $(BINDIR) XX- install -m 755 checkrad.pl $(SBINDIR)/checkrad XX- install -m 755 radlast $(BINDIR) XX+ ${INSTALL} -d $(RADIUS_DIR) XX+ ${BSD_INSTALL_PROGRAM} radiusd $(SBINDIR)/radiusd XX+ ${BSD_INSTALL_PROGRAM} radwho $(BINDIR) XX+ ${BSD_INSTALL_PROGRAM} raduse $(BINDIR) XX+ ${BSD_INSTALL_PROGRAM} radzap $(BINDIR) XX+ ${BSD_INSTALL_PROGRAM} radtest $(BINDIR) XX+ ${BSD_INSTALL_SCRIPT} ../scripts/radwatch ${SBINDIR}/radwatch XX+ ${BSD_INSTALL_SCRIPT} checkrad.pl $(SBINDIR)/checkrad XX+ ${BSD_INSTALL_SCRIPT} radlast $(BINDIR) XX # Install the config files XX @echo "Creating/updating files in $(RADIUS_DIR)"; \ XX cd ../raddb; \ XX for i in [a-c]* [e-z]*; do \ XX- [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ XX+ [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ XX done; \ XX for i in dictionary*; do \ XX [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ XX@@ -133,8 +132,4 @@ XX echo "** $(RADIUS_DIR)/$$i"; \ XX nt=1; \ XX fi; \ XX- done; \ XX- if [ "$$nt" ]; then \ XX- echo "** The samples in ../raddb are newer than these files";\ XX- echo "** Please investigate and copy manually if appropriate";\ XX- fi XX+ done; XEND-of-./patches/patch-ab Xecho x - ./patches/patch-ac Xsed 's/^X//' >./patches/patch-ac << 'END-of-./patches/patch-ac' XX--- src/conf.h Wed Sep 6 18:28:45 2000 XX+++ conf.h Wed Sep 6 18:30:44 2000 XX@@ -1,6 +1,6 @@ XX /* Default Database File Names */ XX XX-#define RADIUS_DIR "/etc/raddb" XX+#define RADIUS_DIR "/usr/local/etc/raddb" XX #define RADLOG_DIR "/var/log" XX XX #ifdef aix XEND-of-./patches/patch-ac Xecho x - ./patches/patch-af Xsed 's/^X//' >./patches/patch-af << 'END-of-./patches/patch-af' XX--- src/radwho.c.orig Fri Feb 25 05:47:53 2000 XX+++ src/radwho.c Wed May 3 18:43:24 2000 XX@@ -16,6 +16,7 @@ XX #include <errno.h> XX #include <sys/stat.h> XX #include <sys/utsname.h> XX+#include <sys/ioctl.h> XX #include <time.h> XX #include <ctype.h> XX #include <netinet/in.h> XX@@ -34,18 +35,21 @@ XX * Header above output and format. XX */ XX char *hdr1 = XX-"Login Name What TTY When From Location"; XX-char *ufmt1 = "%-10.10s %-17.17s %-5.5s %-4.4s %-9.9s %-9.9s %-.16s%s"; XX+"Login Name What TTY When From Location"; XX+char *ufmt1 = "%-16.16s %-17.17s %-5.5s %-4.4s %-9.9s %-9.9s %-.*s%s"; XX char *ufmt1r = "%s,%s,%s,%s,%s,%s,%s%s"; XX-char *rfmt1 = "%-10.10s %-17.17s %-5.5s %s%-3d %-9.9s %-9.9s %-.19s%s"; XX+char *rfmt1 = "%-16.16s %-17.17s %-5.5s %s%-3d %-9.9s %-9.9s %-.*s%s"; XX char *rfmt1r = "%s,%s,%s,%s%d,%s,%s,%s%s"; XX+#define FMT1_HOST_SIZE 13 XX XX char *hdr2 = XX-"Login Port What When From Location"; XX-char *ufmt2 = "%-10.10s %-6.6d %-7.7s %-13.13s %-10.10s %-.16s%s"; XX+"Login Port What When From Location"; XX+char *ufmt2 = "%-16.16s %-6.6d %-7.7s %-13.13s %-10.10s %-.*s%s"; XX char *ufmt2r = "%s,%d,%s,%s,%s,%s%s"; XX-char *rfmt2 = "%-10.10s %s%-5d %-6.6s %-13.13s %-10.10s %-.28s%s"; XX+char *rfmt2 = "%-16.16s %s%-5d %-6.6s %-13.13s %-10.10s %-.*s%s"; XX char *rfmt2r = "%s,%s%d,%s,%s,%s,%s%s"; XX+#define FMT2_HOST_SIZE 19 XX+ XX XX char *eol = "\n"; XX NAS *naslist; XX@@ -301,7 +305,8 @@ XX return tmp; XX } XX if (strncmp(tty, "cu", 2) == 0) { XX- return tmp + 2; XX+ sprintf(tmp, "%.15s", tty + 2); XX+ return tmp; XX } XX return "??"; XX } XX@@ -363,6 +368,8 @@ XX */ XX int main(int argc, char **argv) XX { XX+ struct winsize ws; XX+ int extra_width = 0; XX FILE *fp; XX struct radutmp rt; XX struct utmp ut; XX@@ -378,6 +385,11 @@ XX char *p, *q, *portind; XX int c, portno; XX XX+ ioctl(0, TIOCGWINSZ, &ws); XX+ if (ws.ws_col >= 80) { XX+ extra_width = ws.ws_col - 80; XX+ } XX+ XX while((c = getopt(argc, argv, "flhnsipcr")) != EOF) switch(c) { XX case 'f': XX fingerd++; XX@@ -465,14 +477,17 @@ XX while(fread(&ut, sizeof(ut), 1, fp) == 1) { XX #ifdef USER_PROCESS XX if (ut.ut_user[0] && ut.ut_line[0] && XX- ut.ut_type == USER_PROCESS) { XX+ ut.ut_type == USER_PROCESS) XX #else XX- if (ut.ut_user[0] && ut.ut_line[0]) { XX+ if (ut.ut_user[0] && ut.ut_line[0]) XX #endif XX- if (showname) XX+ { XX+ strncpy(inbuf, ut.ut_name, UT_NAMESIZE); XX+ inbuf[UT_NAMESIZE] = '\0'; XX+ if (showname) XX printf((rawoutput == 0? ufmt1: ufmt1r), XX- ut.ut_name, XX- fullname(ut.ut_name), XX+ inbuf, XX+ fullname(inbuf), XX "shell", XX ttyshort(ut.ut_line), XX #ifdef __svr4__ XX@@ -481,10 +496,11 @@ XX dotime(ut.ut_time), XX #endif XX ut.ut_host, XX+ FMT1_HOST_SIZE + extra_width, XX myname, eol); XX else XX printf((rawoutput==0? ufmt2:ufmt2r), XX- ut.ut_name, XX+ inbuf, XX ttyshort(ut.ut_line), XX "shell", XX #ifdef __svr4__ XX@@ -493,6 +509,7 @@ XX dotime(ut.ut_time), XX #endif XX ut.ut_host, XX+ FMT2_HOST_SIZE + extra_width, XX myname, eol); XX } XX } XX@@ -537,6 +554,7 @@ XX portind, portno, XX dotime(rt.time), XX nasname(ntohl(rt.nas_address)), XX+ FMT1_HOST_SIZE + extra_width, XX hostname(rt.framed_address), eol); XX else XX printf((rawoutput == 0? rfmt2: rfmt2r), XX@@ -545,6 +563,7 @@ XX proto(rt.proto, rt.porttype), XX dotime(rt.time), XX nasname(ntohl(rt.nas_address)), XX+ FMT2_HOST_SIZE + extra_width, XX hostname(rt.framed_address), eol); XX } XX } XEND-of-./patches/patch-af Xecho c - ./files Xmkdir -p ./files > /dev/null 2>&1 Xecho x - ./files/md5 Xsed 's/^X//' >./files/md5 << 'END-of-./files/md5' XXMD5 (xtradius-1.0beta3.tgz) = b420be9e2f3d8bd0e96c27c439c50eb3 XEND-of-./files/md5 Xecho x - ./files/radiusd.sh.tmpl Xsed 's/^X//' >./files/radiusd.sh.tmpl << 'END-of-./files/radiusd.sh.tmpl' XX#!/bin/sh XX# XXPREFIX=/usr/local/sbin XX XXcase "$1" in XX XXstart) XX if [ -x ${PREFIX}/radiusd ] XX then XX ${PREFIX}/radiusd -y & && echo -n " radiusd" XX fi XX ;; XX XXstop) XX if [ -r /var/run/radiusd.pid ] XX then XX kill `cat /var/run/radiusd.pid` && echo -n " radiusd" XX fi XX ;; XX XX*) XX echo "usage: $0 {start|stop}" 1>&2 XX exit 64 XX ;; XX XXesac XX XEND-of-./files/radiusd.sh.tmpl Xexit X END-of-xtradius/port.sh echo c - xtradius/pkg mkdir -p xtradius/pkg > /dev/null 2>&1 echo x - xtradius/pkg/COMMENT sed 's/^X//' >xtradius/pkg/COMMENT << 'END-of-xtradius/pkg/COMMENT' XA RADIUS-compliant remote authentication and accouting server END-of-xtradius/pkg/COMMENT echo x - xtradius/pkg/DESCR sed 's/^X//' >xtradius/pkg/DESCR << 'END-of-xtradius/pkg/DESCR' XXtRadius is a freeware radius server implementation. The main feature is that it Xcan handle user accounting and authentication informations via external fully Xconfigurable scripts. XThe XtRadius server is based on Cistron Radius 1.6.3. You can write script to Xmake you own auth and/or accounting routines without having to patch the main Xserver. X XWWW: http://www.xtradius.com END-of-xtradius/pkg/DESCR echo x - xtradius/pkg/PLIST sed 's/^X//' >xtradius/pkg/PLIST << 'END-of-xtradius/pkg/PLIST' Xbin/radlast Xbin/radtest Xbin/raduse Xbin/radwho Xbin/radzap Xsbin/checkrad Xsbin/radiusd Xetc/raddb/clients Xetc/raddb/dictionary Xetc/raddb/dictionary.ascend Xetc/raddb/dictionary.cisco Xetc/raddb/dictionary.compat Xetc/raddb/dictionary.livingston Xetc/raddb/dictionary.shiva Xetc/raddb/dictionary.tunnel Xetc/raddb/dictionary.usr Xetc/raddb/dictionary.versanet Xetc/raddb/hints Xetc/raddb/huntgroups Xetc/raddb/naslist Xetc/raddb/naspasswd Xetc/raddb/realms Xetc/raddb/users Xetc/raddb/pg_auth.pl Xetc/raddb/pg_acct.pl Xshare/doc/radiusd-xtradius/COPYRIGHT.Cistron Xshare/doc/radiusd-xtradius/COPYRIGHT.Livingston Xshare/doc/radiusd-xtradius/ChangeLog Xshare/doc/radiusd-xtradius/INSTALL.OLD Xshare/doc/radiusd-xtradius/README Xshare/doc/radiusd-xtradius/README.Y2K Xshare/doc/radiusd-xtradius/README.cisco Xshare/doc/radiusd-xtradius/README.pam Xshare/doc/radiusd-xtradius/README.proxy Xshare/doc/radiusd-xtradius/README.simul Xshare/doc/radiusd-xtradius/README.usersfile Xetc/rc.d/radiusd.sh X@dirrm etc/raddb X@dirrm share/doc/radiusd-xtradius X@unexec rm -f /var/log/radius.log X@unexec rm -f /var/run/radiusd.pid X@unexec echo "Leaving /var/run/radutmp, /var/log/radwtmp and /var/log/radacct alone." END-of-xtradius/pkg/PLIST echo c - xtradius/patches mkdir -p xtradius/patches > /dev/null 2>&1 echo x - xtradius/patches/patch-ad sed 's/^X//' >xtradius/patches/patch-ad << 'END-of-xtradius/patches/patch-ad' X--- src/radwho.c.orig Fri Feb 25 05:47:53 2000 X+++ src/radwho.c Wed May 3 18:43:24 2000 X@@ -16,6 +16,7 @@ X #include <errno.h> X #include <sys/stat.h> X #include <sys/utsname.h> X+#include <sys/ioctl.h> X #include <time.h> X #include <ctype.h> X #include <netinet/in.h> X@@ -34,18 +35,21 @@ X * Header above output and format. X */ X char *hdr1 = X-"Login Name What TTY When From Location"; X-char *ufmt1 = "%-10.10s %-17.17s %-5.5s %-4.4s %-9.9s %-9.9s %-.16s%s"; X+"Login Name What TTY When From Location"; X+char *ufmt1 = "%-16.16s %-17.17s %-5.5s %-4.4s %-9.9s %-9.9s %-.*s%s"; X char *ufmt1r = "%s,%s,%s,%s,%s,%s,%s%s"; X-char *rfmt1 = "%-10.10s %-17.17s %-5.5s %s%-3d %-9.9s %-9.9s %-.19s%s"; X+char *rfmt1 = "%-16.16s %-17.17s %-5.5s %s%-3d %-9.9s %-9.9s %-.*s%s"; X char *rfmt1r = "%s,%s,%s,%s%d,%s,%s,%s%s"; X+#define FMT1_HOST_SIZE 13 X X char *hdr2 = X-"Login Port What When From Location"; X-char *ufmt2 = "%-10.10s %-6.6d %-7.7s %-13.13s %-10.10s %-.16s%s"; X+"Login Port What When From Location"; X+char *ufmt2 = "%-16.16s %-6.6d %-7.7s %-13.13s %-10.10s %-.*s%s"; X char *ufmt2r = "%s,%d,%s,%s,%s,%s%s"; X-char *rfmt2 = "%-10.10s %s%-5d %-6.6s %-13.13s %-10.10s %-.28s%s"; X+char *rfmt2 = "%-16.16s %s%-5d %-6.6s %-13.13s %-10.10s %-.*s%s"; X char *rfmt2r = "%s,%s%d,%s,%s,%s,%s%s"; X+#define FMT2_HOST_SIZE 19 X+ X X char *eol = "\n"; X NAS *naslist; X@@ -301,7 +305,8 @@ X return tmp; X } X if (strncmp(tty, "cu", 2) == 0) { X- return tmp + 2; X+ sprintf(tmp, "%.15s", tty + 2); X+ return tmp; X } X return "??"; X } X@@ -363,6 +368,8 @@ X */ X int main(int argc, char **argv) X { X+ struct winsize ws; X+ int extra_width = 0; X FILE *fp; X struct radutmp rt; X struct utmp ut; X@@ -378,6 +385,11 @@ X char *p, *q, *portind; X int c, portno; X X+ ioctl(0, TIOCGWINSZ, &ws); X+ if (ws.ws_col >= 80) { X+ extra_width = ws.ws_col - 80; X+ } X+ X while((c = getopt(argc, argv, "flhnsipcr")) != EOF) switch(c) { X case 'f': X fingerd++; X@@ -465,14 +477,17 @@ X while(fread(&ut, sizeof(ut), 1, fp) == 1) { X #ifdef USER_PROCESS X if (ut.ut_user[0] && ut.ut_line[0] && X- ut.ut_type == USER_PROCESS) { X+ ut.ut_type == USER_PROCESS) X #else X- if (ut.ut_user[0] && ut.ut_line[0]) { X+ if (ut.ut_user[0] && ut.ut_line[0]) X #endif X- if (showname) X+ { X+ strncpy(inbuf, ut.ut_name, UT_NAMESIZE); X+ inbuf[UT_NAMESIZE] = '\0'; X+ if (showname) X printf((rawoutput == 0? ufmt1: ufmt1r), X- ut.ut_name, X- fullname(ut.ut_name), X+ inbuf, X+ fullname(inbuf), X "shell", X ttyshort(ut.ut_line), X #ifdef __svr4__ X@@ -481,10 +496,11 @@ X dotime(ut.ut_time), X #endif X ut.ut_host, X+ FMT1_HOST_SIZE + extra_width, X myname, eol); X else X printf((rawoutput==0? ufmt2:ufmt2r), X- ut.ut_name, X+ inbuf, X ttyshort(ut.ut_line), X "shell", X #ifdef __svr4__ X@@ -493,6 +509,7 @@ X dotime(ut.ut_time), X #endif X ut.ut_host, X+ FMT2_HOST_SIZE + extra_width, X myname, eol); X } X } X@@ -537,6 +554,7 @@ X portind, portno, X dotime(rt.time), X nasname(ntohl(rt.nas_address)), X+ FMT1_HOST_SIZE + extra_width, X hostname(rt.framed_address), eol); X else X printf((rawoutput == 0? rfmt2: rfmt2r), X@@ -545,6 +563,7 @@ X proto(rt.proto, rt.porttype), X dotime(rt.time), X nasname(ntohl(rt.nas_address)), X+ FMT2_HOST_SIZE + extra_width, X hostname(rt.framed_address), eol); X } X } END-of-xtradius/patches/patch-ad echo x - xtradius/patches/patch-aa sed 's/^X//' >xtradius/patches/patch-aa << 'END-of-xtradius/patches/patch-aa' X--- src/Makefile.BSD.orig Fri Aug 25 16:30:17 2000 X+++ src/Makefile.BSD Fri Aug 25 16:32:14 2000 X@@ -3,9 +3,9 @@ X # X # X X-CC = gcc X-CFLAGS = -Wall -g -DNOSHADOW -DXTRADIUS X-LDFLAGS = # -s #tatic X+#CC = gcc X+CFLAGS = -DNOSHADOW -DXTRADIUS X+LDFLAGS = -s #static X LIBS = X LCRYPT = -lcrypt X X@@ -15,7 +15,7 @@ X #PAM = -DPAM X #PAMLIB = -lpam X X-BINDIR = /usr/local/bin X-SBINDIR = /usr/local/sbin X+BINDIR = $(PREFIX)/bin X+SBINDIR = $(PREFIX)/sbin X X .include "Make.inc" END-of-xtradius/patches/patch-aa echo x - xtradius/patches/patch-ab sed 's/^X//' >xtradius/patches/patch-ab << 'END-of-xtradius/patches/patch-ab' X--- src/Make.inc.orig Mon Apr 3 11:00:59 2000 X+++ src/Make.inc Wed May 3 18:56:35 2000 X@@ -4,7 +4,7 @@ X # X # X X-RADIUS_DIR = /etc/raddb X+RADIUS_DIR = ${PREFIX}/etc/raddb X X SERVER_OBJS = radiusd.o dict.o files.o util.o md5.o attrprint.o \ X acct.o radius.o pam.o log.o version.o proxy.o \ X@@ -111,21 +111,20 @@ X X install: X # Install the binaries X- install -d $(SBINDIR) X- install -d $(BINDIR) X- install -d $(RADIUS_DIR) X- install -m 755 -s radiusd $(SBINDIR)/radiusd X- install -m 755 -s radwho $(BINDIR) X- install -m 755 -s raduse $(BINDIR) X- install -m 755 -s radzap $(BINDIR) X- install -m 755 -s radtest $(BINDIR) X- install -m 755 checkrad.pl $(SBINDIR)/checkrad X- install -m 755 radlast $(BINDIR) X+ ${INSTALL} -d $(RADIUS_DIR) X+ ${BSD_INSTALL_PROGRAM} radiusd $(SBINDIR)/radiusd X+ ${BSD_INSTALL_PROGRAM} radwho $(BINDIR) X+ ${BSD_INSTALL_PROGRAM} raduse $(BINDIR) X+ ${BSD_INSTALL_PROGRAM} radzap $(BINDIR) X+ ${BSD_INSTALL_PROGRAM} radtest $(BINDIR) X+ ${BSD_INSTALL_SCRIPT} ../scripts/radwatch ${SBINDIR}/radwatch X+ ${BSD_INSTALL_SCRIPT} checkrad.pl $(SBINDIR)/checkrad X+ ${BSD_INSTALL_SCRIPT} radlast $(BINDIR) X # Install the config files X @echo "Creating/updating files in $(RADIUS_DIR)"; \ X cd ../raddb; \ X for i in [a-c]* [e-z]*; do \ X- [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ X+ [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ X done; \ X for i in dictionary*; do \ X [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ X@@ -133,8 +132,4 @@ X echo "** $(RADIUS_DIR)/$$i"; \ X nt=1; \ X fi; \ X- done; \ X- if [ "$$nt" ]; then \ X- echo "** The samples in ../raddb are newer than these files";\ X- echo "** Please investigate and copy manually if appropriate";\ X- fi X+ done; END-of-xtradius/patches/patch-ab echo x - xtradius/patches/patch-ac sed 's/^X//' >xtradius/patches/patch-ac << 'END-of-xtradius/patches/patch-ac' X--- src/conf.h Wed Sep 6 18:28:45 2000 X+++ conf.h Wed Sep 6 18:30:44 2000 X@@ -1,6 +1,6 @@ X /* Default Database File Names */ X X-#define RADIUS_DIR "/etc/raddb" X+#define RADIUS_DIR "/usr/local/etc/raddb" X #define RADLOG_DIR "/var/log" X X #ifdef aix END-of-xtradius/patches/patch-ac echo c - xtradius/files mkdir -p xtradius/files > /dev/null 2>&1 echo x - xtradius/files/md5 sed 's/^X//' >xtradius/files/md5 << 'END-of-xtradius/files/md5' XMD5 (xtradius-1.0beta3.tgz) = b420be9e2f3d8bd0e96c27c439c50eb3 END-of-xtradius/files/md5 echo x - xtradius/files/radiusd.sh.tmpl sed 's/^X//' >xtradius/files/radiusd.sh.tmpl << 'END-of-xtradius/files/radiusd.sh.tmpl' X#!/bin/sh X# XPREFIX=/usr/local/sbin X Xcase "$1" in X Xstart) X if [ -x ${PREFIX}/radiusd ] X then X ${PREFIX}/radiusd -y & && echo -n " radiusd" X fi X ;; X Xstop) X if [ -r /var/run/radiusd.pid ] X then X kill `cat /var/run/radiusd.pid` && echo -n " radiusd" X fi X ;; X X*) X echo "usage: $0 {start|stop}" 1>&2 X exit 64 X ;; X Xesac X END-of-xtradius/files/radiusd.sh.tmpl exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009071830.e87IUC420826>