radiusd-cistron port from Dan Harnett.

This commit is contained in:
espie 2000-05-26 01:44:10 +00:00
parent 5826e077d0
commit f7baabf649
10 changed files with 191 additions and 0 deletions

View File

@ -0,0 +1,37 @@
#
# $OpenBSD: Makefile,v 1.1.1.1 2000/05/26 01:44:10 espie Exp $
#
DISTNAME= radiusd-cistron-1.6.3-stable
PKGNAME= radiusd-cistron-1.6.3
CATEGORIES= net
HOMEPAGE= http://miquels.www.cistron.nl/radius/
MAINTAINER= danh@nfol.com
MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/
LICENCE_TYPE= GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FAKE= Yes
WRKSRC= ${WRKDIST}/src
MAKE_FILE= Makefile.BSD
MAKE_FLAGS+= CFLAGS="-Wall -O2 -DNOSHADOW -DNDBM"
MAKE_FLAGS+= LCRYPT=""
FAKE_FLAGS+= RADIUS_DIR='${WRKINST}${PREFIX}/share/examples/radiusd-cistron'
FAKE_FLAGS+= SBINDIR='${WRKINST}${PREFIX}/sbin'
FAKE_FLAGS+= BINDIR='${WRKINST}${PREFIX}/bin'
post-install:
@cd ${WRKDIST}/doc; ${INSTALL_MAN} naslist.5rad ${PREFIX}/man/man5/naslist.5
@cd ${WRKDIST}/doc; ${INSTALL_MAN} clients.5rad ${PREFIX}/man/man5/clients.5
@cd ${WRKDIST}/doc; ${INSTALL_MAN} builddbm.8rad ${PREFIX}/man/man8/builddbm.8
@cd ${WRKDIST}/doc; ${INSTALL_MAN} radiusd.8 ${PREFIX}/man/man8
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-cistron
@cd ${WRKDIST}/doc; cp README* ${PREFIX}/share/doc/radiusd-cistron
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (radiusd-cistron-1.6.3-stable.tar.gz) = 3f9231bc4bd1c63878947b5f72aaee30
RMD160 (radiusd-cistron-1.6.3-stable.tar.gz) = bef80ecb6ecb57eeb2b26d4ec89660b78ebd3601
SHA1 (radiusd-cistron-1.6.3-stable.tar.gz) = 50f41e17435ee8bdc3b08e7593336f5d8edcac69

View File

@ -0,0 +1,29 @@
--- src/sysdep.h.old Wed May 3 21:19:34 2000
+++ src/sysdep.h Wed May 3 21:21:33 2000
@@ -20,7 +20,7 @@
#include <string.h>
#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <stdlib.h>
#else
# include <malloc.h>
@@ -58,9 +58,16 @@
# define __hpux__
# endif
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi)
# ifndef UTMP_FILE
# define UTMP_FILE "/var/run/utmp"
+# endif
+# define ut_user ut_name
+#endif
+#if defined(__OpenBSD__)
+# include <utmp.h>
+# ifndef UTMP_FILE
+# define UTMP_FILE _PATH_UTMP
# endif
# define ut_user ut_name
#endif

View File

@ -0,0 +1,20 @@
--- src/acct.c.orig Thu Mar 2 08:24:45 2000
+++ src/acct.c Wed May 3 21:25:29 2000
@@ -598,7 +598,7 @@
VALUE_PAIR *pair;
UINT4 nas;
NAS *cl;
- long curtime;
+ time_t curtime;
int ret = 0;
struct stat st;
@@ -670,7 +670,7 @@
/*
* Add non-protocol attibutes.
*/
- fprintf(outfd, "\tTimestamp = %ld\n", curtime);
+ fprintf(outfd, "\tTimestamp = %ld\n", (long) curtime);
switch(authtype) {
case 0:
fputs("\tRequest-Authenticator = Verified\n", outfd);

View File

@ -0,0 +1,12 @@
--- src/version.c.orig Wed May 3 21:28:50 2000
+++ src/version.c Wed May 3 21:29:29 2000
@@ -90,6 +90,9 @@
#if defined(bsdi)
fprintf(stderr," bsdi");
#endif
+#if defined(__OpenBSD__)
+ fprintf(stderr," openbsd");
+#endif
#if defined(sun)
fprintf(stderr," sun");
#endif

View File

@ -0,0 +1 @@
Cistron RADIUS server

View File

@ -0,0 +1,14 @@
#!/bin/sh
do-deinstall ()
{
if [ -d /etc/raddb ]; then
echo "+------------"
echo "| If you are removing this package and not planning"
echo "| to re-install it at a future time, it is safe to"
echo "| remove /etc/raddb."
echo "+------------"
fi
}
do-deinstall

View File

@ -0,0 +1,22 @@
This is version 1.6.3 of the Cistron Radius daemon. Most of
the code was taken from radius-1.16 by Livingston Enterprises,
available from ftp.livingston.com. It is taken from the 1.5.4.3
release, with a few patches.
The server is mostly compatible with livingston radiusd-2.01
(no menus or s/key support though) but with more feautures, such as:
o Can limit max. number of simultaneous logins on a per-user basis!
o Multiple DEFAULT entries, that can optionally fall-through.
o In fact, every entry can fall-through
o Deny/permit access based on huntgroup users dials into
o Set certain parameters (such as static IP address) based on huntgroup
o Extra "hints" file that can select SLIP/PPP/rlogin based on
username pattern (Puser or user.ppp is PPP, plain "user" is rlogin etc).
o Can execute an external program when user has authenticated (for example
to run a sendmail queue).
o Can use `$INCLUDE filename' in users and dictionary files
o Can act as a proxyerver, relaying requests to a remote server
o Supports Vendor-Specific attributes
o No good documentation at all, just like the original radiusd

View File

@ -0,0 +1,16 @@
+---------------
| The RADIUS configuration files belong in /etc/raddb. Examples
| and extra documentation can be found in the following locations:
|
| /usr/local/share/examples/radiusd-cistron
| /usr/local/share/doc/radiusd-cistron.
|
| You will need to edit /etc/rc.local as appropriate and add a
| section similiar to the following:
|
| if [ -x /usr/local/sbin/radiusd ]; then
| /usr/local/sbin/radiusd -y && echo -n ' radiusd'
| fi
|
| (see radiusd(8) for available options)
+---------------

View File

@ -0,0 +1,37 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/05/26 01:44:10 espie Exp $
bin/radlast
bin/radtest
bin/raduse
bin/radwho
bin/radzap
man/man5/clients.5
man/man5/naslist.5
man/man8/builddbm.8
man/man8/radiusd.8
sbin/checkrad
sbin/radiusd
share/doc/radiusd-cistron/README
share/doc/radiusd-cistron/README.Y2K
share/doc/radiusd-cistron/README.cisco
share/doc/radiusd-cistron/README.pam
share/doc/radiusd-cistron/README.proxy
share/doc/radiusd-cistron/README.simul
share/doc/radiusd-cistron/README.usersfile
share/examples/radiusd-cistron/clients
share/examples/radiusd-cistron/dictionary
share/examples/radiusd-cistron/dictionary.ascend
share/examples/radiusd-cistron/dictionary.cisco
share/examples/radiusd-cistron/dictionary.compat
share/examples/radiusd-cistron/dictionary.livingston
share/examples/radiusd-cistron/dictionary.shiva
share/examples/radiusd-cistron/dictionary.tunnel
share/examples/radiusd-cistron/dictionary.usr
share/examples/radiusd-cistron/dictionary.versanet
share/examples/radiusd-cistron/hints
share/examples/radiusd-cistron/huntgroups
share/examples/radiusd-cistron/naslist
share/examples/radiusd-cistron/naspasswd
share/examples/radiusd-cistron/realms
share/examples/radiusd-cistron/users
@dirrm share/examples/radiusd-cistron
@dirrm share/doc/radiusd-cistron