added radiusd-lucent port

This commit is contained in:
danh 2000-08-18 01:15:03 +00:00
parent 45a645a76a
commit 12ebc3f279
11 changed files with 169 additions and 0 deletions

View File

@ -0,0 +1,55 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/08/18 01:15:03 danh Exp $
DISTNAME= radius21
PKGNAME= radiusd-lucent-2.1
CATEGORIES= net
NEED_VERSION= 1.319
MAINTAINER= danh@openbsd.org
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.livingston.com/pub/le/radius/
EXTRACT_SUFX= .tar.Z
WRKDIST= ${WRKDIR}/radius
WRKSRC= ${WRKDIST}/src
MAKE_FLAGS= EXT='OpenBSD'
post-extract:
@cp ${FILESDIR}/OpenBSD ${WRKSRC}/conf/OpenBSD
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/builddbm ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/dbmkeys ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/dbmrec ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/md5test ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/radtest ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/testuser ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/OpenBSD/radiusd ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/radiusd-lucent
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/radiusd-lucent/menus
${INSTALL_DATA} ${WRKDIST}/raddb/clients \
${PREFIX}/share/examples/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/raddb/config.aeg.example \
${PREFIX}/share/examples/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/raddb/dictionary \
${PREFIX}/share/examples/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/raddb/proxy \
${PREFIX}/share/examples/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/raddb/users \
${PREFIX}/share/examples/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/raddb/menus/menu1 \
${PREFIX}/share/examples/radiusd-lucent/menus/
${INSTALL_DATA} ${WRKDIST}/raddb/menus/menu2 \
${PREFIX}/share/examples/radiusd-lucent/menus/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-lucent
${INSTALL_DATA} ${WRKDIST}/LICENSE \
${PREFIX}/share/doc/radiusd-lucent/
${INSTALL_DATA} ${WRKDIST}/README \
${PREFIX}/share/doc/radiusd-lucent/
.include <bsd.port.mk>

View File

@ -0,0 +1,6 @@
# $OpenBSD: OpenBSD,v 1.1.1.1 2000/08/18 01:15:04 danh Exp $
#
CC= gcc
COPT= -O2
CPPFLAGS= -DNOSHADOW -DNDBM
LIBS=

View File

@ -0,0 +1,3 @@
MD5 (radius21.tar.Z) = 12c793f9613ee31930eb761b412b33a6
RMD160 (radius21.tar.Z) = ed09267eb9cc0c1f9487198fc094fd2baabd297f
SHA1 (radius21.tar.Z) = 587682bb326b40994eaa2d680a7d81333a7d9933

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_conf_h,v 1.1.1.1 2000/08/18 01:15:04 danh Exp $
--- src/conf.h.orig Wed Aug 16 13:16:10 2000
+++ src/conf.h Wed Aug 16 13:16:39 2000
@@ -69,7 +69,7 @@ typedef unsigned long UINT4;
#include <machine/inline.h>
#endif /* bsdi */
-#if defined(bsdi) || defined(__FreeBSD__)
+#if defined(bsdi) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <machine/endian.h>
#else /* bsdi */
#include <malloc.h>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_radius_h,v 1.1.1.1 2000/08/18 01:15:04 danh Exp $
--- src/radius.h.orig Wed Aug 16 13:15:23 2000
+++ src/radius.h Wed Aug 16 13:16:04 2000
@@ -248,7 +248,7 @@ typedef struct pw_auth_hdr {
/* Default Database File Names */
#define RADIUS_DIR "/etc/raddb"
-#define RADACCT_DIR "/usr/adm/radacct"
+#define RADACCT_DIR "/var/log/radacct"
#define RADIUS_DICTIONARY "dictionary"
#define RADIUS_CLIENTS "clients"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_version_c,v 1.1.1.1 2000/08/18 01:15:04 danh Exp $
--- src/version.c.orig Wed Aug 16 13:16:44 2000
+++ src/version.c Wed Aug 16 13:17:39 2000
@@ -136,6 +136,9 @@ char * bp;
#if defined(__FreeBSD__)
strcat(bp," __FreeBSD__");
#endif
+#if defined(__OpenBSD__)
+ strcat(bp," openbsd");
+#endif
#if defined(__osf__)
strcat(bp," __osf__");
#endif

View File

@ -0,0 +1 @@
Lucent remote access RADIUS server

View File

@ -0,0 +1,23 @@
#!/bin/sh
do-deinstall ()
{
if [ -d /etc/raddb -o -d /var/log/radacct ]; 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 the following:"
echo "|"
if [ -d /etc/raddb ]; then
echo "| /etc/raddb"
fi
if [ -d /var/log/radacct ]; then
echo "| /var/log/radacct"
fi
echo "|"
echo "+------------"
fi
}
do-deinstall
exit 0

View File

@ -0,0 +1,4 @@
The Lucent Remote Access RADIUS server 2.1 with support for RADIUS
proxy, iPass roaming, and ActivCard.
This port does not use iPass roaming or ActivCard at this time.

View File

@ -0,0 +1,20 @@
+---------------
| The RADIUS configuration files belong in /etc/raddb. Examples
| and extra documentation can be found in the following locations:
|
| ${PREFIX}/share/examples/radiusd-lucent
| ${PREFIX}/share/doc/radiusd-lucent
|
| You will need to edit /etc/rc.local as appropriate and add a
| section similiar to the following:
|
| if [ -x ${PREFIX}/sbin/radiusd ]; then
| ${PREFIX}/sbin/radiusd && echo -n ' radiusd'
| fi
|
| RADIUS accounting information is created in /var/log/radacct. This
| directory must be created before it can be used.
|
| install -d -m 700 -o root -g wheel /var/log/radacct
|
+---------------

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/08/18 01:15:04 danh Exp $
bin/builddbm
bin/dbmkeys
bin/dbmrec
bin/md5test
bin/radtest
bin/testuser
sbin/radiusd
share/doc/radiusd-lucent/LICENSE
share/doc/radiusd-lucent/README
share/examples/radiusd-lucent/clients
share/examples/radiusd-lucent/config.aeg.example
share/examples/radiusd-lucent/dictionary
share/examples/radiusd-lucent/menus/menu1
share/examples/radiusd-lucent/menus/menu2
share/examples/radiusd-lucent/proxy
share/examples/radiusd-lucent/users
@dirrm share/examples/radiusd-lucent/menus
@dirrm share/examples/radiusd-lucent
@dirrm share/doc/radiusd-lucent