diff options
author | Torsten Blum <torstenb@FreeBSD.org> | 1996-07-05 23:47:29 +0000 |
---|---|---|
committer | Torsten Blum <torstenb@FreeBSD.org> | 1996-07-05 23:47:29 +0000 |
commit | 33b259e1e2dd73b6403ccd15a31d2104ca9f63ef (patch) | |
tree | d93ca54dec2e53341feda12e2d56119b047095c0 /net/radius | |
parent | 894cce194e7a895bf043c914b646d212e9d7e29e (diff) | |
download | ports-33b259e1e2dd73b6403ccd15a31d2104ca9f63ef.tar.gz ports-33b259e1e2dd73b6403ccd15a31d2104ca9f63ef.zip |
Notes
Diffstat (limited to 'net/radius')
-rw-r--r-- | net/radius/Makefile | 32 | ||||
-rw-r--r-- | net/radius/distinfo | 1 | ||||
-rw-r--r-- | net/radius/files/patch-aa | 136 | ||||
-rw-r--r-- | net/radius/files/patch-ab | 34 | ||||
-rw-r--r-- | net/radius/pkg-comment | 1 | ||||
-rw-r--r-- | net/radius/pkg-descr | 3 | ||||
-rw-r--r-- | net/radius/pkg-plist | 19 |
7 files changed, 226 insertions, 0 deletions
diff --git a/net/radius/Makefile b/net/radius/Makefile new file mode 100644 index 000000000000..60d2656d6f49 --- /dev/null +++ b/net/radius/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: radius +# Version required: merit radius 2.4.21 +# Date created: 4. July 1996 +# Whom: torstenb@FreeBSD.ORG +# +# $Id$ +# + +DISTNAME= radius.2.4.21 +PKGNAME= radius-2.4.21 +CATEGORIES= net +MASTER_SITES= ftp://ftp.merit.edu/pub/radius/release/ + +# Restrictive copyright in src/rlmadmin.c +RESTRICTED= "use for non-profit, non-commercial purposes on a shareware basis" + +NO_WRKSUBDIR= yes +INSTALL_TARGET= install-all + +pre-install: + mkdir -p ${PREFIX}/lib/radius/db ${PREFIX}/lib/radius/acct + +.if !defined(NOMANCOMPRESS) +post-install: + gzip -9nf ${PREFIX}/man/man5/authfile.5 ${PREFIX}/man/man5/clients.5 \ + ${PREFIX}/man/man5/dictionary.5 ${PREFIX}/man/man5/users.5 \ + ${PREFIX}/man/man8/builddbm.8 ${PREFIX}/man/man8/radcheck.8 \ + ${PREFIX}/man/man8/radiusd.8 ${PREFIX}/man/man8/radpwtst.8 \ + ${PREFIX}/man/man8/rlmadmin.8 +.endif + +.include <bsd.port.mk> diff --git a/net/radius/distinfo b/net/radius/distinfo new file mode 100644 index 000000000000..c88557b4c723 --- /dev/null +++ b/net/radius/distinfo @@ -0,0 +1 @@ +MD5 (radius.2.4.21.tar.gz) = 26e3e310ffdeb9e174e87a59494c86a8 diff --git a/net/radius/files/patch-aa b/net/radius/files/patch-aa new file mode 100644 index 000000000000..caf9a39a3bad --- /dev/null +++ b/net/radius/files/patch-aa @@ -0,0 +1,136 @@ +*** Makefile.orig Thu Feb 22 20:14:50 1996 +--- Makefile Thu Jul 4 22:24:34 1996 +*************** +*** 49,59 **** + # Where the configuration files live. + RADDB = ./raddb + # Some installation stuff. +! DAEMON_INSDIR = /usr/private/etc +! BIN_INSDIR = /usr/private/etc +! MAN_INSDIR = /usr/local/man +! RADDB_INSDIR = /usr/private/etc/raddb +! RADACCT_INSDIR = /usr/private/etc/radacct + # The server does not need to be owned by root, unless some shadow password + # scheme needs it. You might create a user id "radius" for just this purpose. + # The O macro is for OSF/1 and HP-UX, see below. +--- 49,59 ---- + # Where the configuration files live. + RADDB = ./raddb + # Some installation stuff. +! DAEMON_INSDIR = ${PREFIX}/sbin +! BIN_INSDIR = ${PREFIX}/bin +! MAN_INSDIR = ${PREFIX}/man +! RADDB_INSDIR = ${PREFIX}/lib/radius/db +! RADACCT_INSDIR = ${PREFIX}/lib/radius/acct + # The server does not need to be owned by root, unless some shadow password + # scheme needs it. You might create a user id "radius" for just this purpose. + # The O macro is for OSF/1 and HP-UX, see below. +*************** +*** 62,68 **** + RADGRP = bin + + # Define COMPRESS to hold the name of your favourite compress program: +! #COMPRESS = -DRADIUS_COMPRESS=\"/usr/local/bin/gzip\" + + # Define SRV to hold any combination of server names you'd like to override: + #SRV3 = -DDEFAULT_TACACS_SERVER=\"vms.dns.name\" +--- 62,68 ---- + RADGRP = bin + + # Define COMPRESS to hold the name of your favourite compress program: +! COMPRESS = -DRADIUS_COMPRESS=\"/usr/bin/gzip\" + + # Define SRV to hold any combination of server names you'd like to override: + #SRV3 = -DDEFAULT_TACACS_SERVER=\"vms.dns.name\" +*************** +*** 211,222 **** + # + #-------------------------------------------------------------------------- + +! CC = cc +! CFLAGS = -g +! LDFLAGS = +! LIBS = +! RANLIB = ranlib +! INSTALL = /bin/install + + # + # Solaris 2.x +--- 211,222 ---- + # + #-------------------------------------------------------------------------- + +! #CC = cc +! #CFLAGS = -g +! #LDFLAGS = +! #LIBS = +! #RANLIB = ranlib +! #INSTALL = /bin/install + + # + # Solaris 2.x +*************** +*** 298,308 **** + + #CC = cc + #CFLAGS = -O +! #LDFLAGS = +! #LIBS = -lcrypt -lcompat +! #MOSTUTIL = $(RADCHECK) $(RADPWTST) $(RADPASS) +! #RANLIB = ranlib +! #INSTALL = /usr/bin/install + + # + # AIX 3.2.5 (if using xlc(1) add -D_ALL_SOURCE to CFLAGS below) +--- 298,311 ---- + + #CC = cc + #CFLAGS = -O +! CFLAGS += -DRADIUS_DIR=\"${PREFIX}/lib/radius/db\" \ +! -DRADACCT_DIR=\"${PREFIX}/lib/radius/acct\" \ +! -DRADIUS_COMPRESS=\"/usr/bin/gzip\" +! LDFLAGS = +! LIBS = -lcrypt -lcompat +! MOSTUTIL = $(RADCHECK) $(RADPWTST) $(RADPASS) +! RANLIB = ranlib +! INSTALL = /usr/bin/install -c + + # + # AIX 3.2.5 (if using xlc(1) add -D_ALL_SOURCE to CFLAGS below) +*************** +*** 607,623 **** + /bin/mkdir $(RADDB_INSDIR) ;\ + fi + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/authfile \ +! $(RADDB_INSDIR)/authfile + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/clients \ +! $(RADDB_INSDIR)/clients + $(INSTALL) -m 644 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/dictionary \ +! $(RADDB_INSDIR)/dictionary + $(INSTALL) -m 644 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/rlmadmin.help \ +! $(RADDB_INSDIR)/rlmadmin.help + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/users \ +! $(RADDB_INSDIR)/users + $(INSTALL) -m 4755 $(O) root -g $(RADGRP) $(SPECIAL) \ +! $(RADDB_INSDIR)/rlmadmin + -if [ ! -d $(RADACCT_INSDIR) ] ;\ + then \ + /bin/mkdir $(RADACCT_INSDIR) ;\ +--- 610,626 ---- + /bin/mkdir $(RADDB_INSDIR) ;\ + fi + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/authfile \ +! $(RADDB_INSDIR)/authfile.sample + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/clients \ +! $(RADDB_INSDIR)/clients.sample + $(INSTALL) -m 644 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/dictionary \ +! $(RADDB_INSDIR)/dictionary.sample + $(INSTALL) -m 644 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/rlmadmin.help \ +! $(RADDB_INSDIR)/rlmadmin.help.sample + $(INSTALL) -m 660 $(O) $(RADOWN) -g $(RADGRP) $(RADDB)/users \ +! $(RADDB_INSDIR)/users.sample + $(INSTALL) -m 4755 $(O) root -g $(RADGRP) $(SPECIAL) \ +! $(RADDB_INSDIR)/rlmadmin.sample + -if [ ! -d $(RADACCT_INSDIR) ] ;\ + then \ + /bin/mkdir $(RADACCT_INSDIR) ;\ diff --git a/net/radius/files/patch-ab b/net/radius/files/patch-ab new file mode 100644 index 000000000000..58d69470e9cc --- /dev/null +++ b/net/radius/files/patch-ab @@ -0,0 +1,34 @@ +*** src/radiusd.c.orig Thu Jul 4 12:26:45 1996 +--- src/radiusd.c Thu Jul 4 12:27:13 1996 +*************** +*** 477,482 **** +--- 477,495 ---- + sigaction (SIGIOT, &action, NULL); /* Perhaps also known as SIGABRT ! */ + sigaction (SIGFPE, &action, NULL); + ++ /* the max number of open files should never be used as an argument ++ * for select(). On systems that support more than 256 open files ++ * select() is not able to handle that many fd's. ++ * In this case the max. number of fd's for select should not be ++ * set to the maximum number of descriptors. ++ * Since I'm too lazy to correct the code I set dtablesize to ++ * FD_SETSIZE. This is the only portable way to use select() on ++ * all descriptors. See also "Advanced Programming in the Unix ++ * Environment" (from W. Richard Stevens) and the BSD 4.4 manpage for ++ * select(2). ++ */ ++ dtablesize = FD_SETSIZE; ++ #ifdef BOGUS_CODE + #ifdef _SC_OPEN_MAX + if ((dtablesize = sysconf (_SC_OPEN_MAX)) == -1) + { +*************** +*** 486,491 **** +--- 499,505 ---- + #else /* Assume BSD */ + dtablesize = getdtablesize (); + #endif /* _SC_OPEN_MAX */ ++ #endif /* BOGUS_CODE */ + + for (j = dtablesize; j >= 3; j--) + { diff --git a/net/radius/pkg-comment b/net/radius/pkg-comment new file mode 100644 index 000000000000..7b17de767ee9 --- /dev/null +++ b/net/radius/pkg-comment @@ -0,0 +1 @@ +radiusd - a remote authentication server diff --git a/net/radius/pkg-descr b/net/radius/pkg-descr new file mode 100644 index 000000000000..b6798b7070d2 --- /dev/null +++ b/net/radius/pkg-descr @@ -0,0 +1,3 @@ +radiusd is a server that handels 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/radius/pkg-plist b/net/radius/pkg-plist new file mode 100644 index 000000000000..82cb757c6b90 --- /dev/null +++ b/net/radius/pkg-plist @@ -0,0 +1,19 @@ +bin/radcheck +bin/radpwtst +bin/radpass +sbin/radiusd +lib/radius/db/authfile.sample +lib/radius/db/clients.sample +lib/radius/db/dictionary.sample +lib/radius/db/rlmadmin.help.sample +lib/radius/db/users.sample +lib/radius/db/rlmadmin.sample +man/man5/dictionary.5.gz +man/man5/users.5.gz +man/man5/authfile.5.gz +man/man5/clients.5.gz +man/man8/radiusd.8.gz +man/man8/radpwtst.8.gz +man/man8/rlmadmin.8.gz +man/man8/builddbm.8.gz +man/man8/radcheck.8.gz |