diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2011-10-26 18:44:49 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2011-10-26 18:44:49 +0000 |
commit | be916c23eac191515d1d421be879c815200ffcd5 (patch) | |
tree | 25fab29d03df9db39f122f664088fd89a918e492 /net | |
parent | 981d8c5f36a5e5231b7b87c24491db341ed9ea33 (diff) | |
download | ports-be916c23eac191515d1d421be879c815200ffcd5.tar.gz ports-be916c23eac191515d1d421be879c815200ffcd5.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/radsecproxy/Makefile | 31 | ||||
-rw-r--r-- | net/radsecproxy/distinfo | 2 | ||||
-rw-r--r-- | net/radsecproxy/files/radsecproxy.in | 46 | ||||
-rw-r--r-- | net/radsecproxy/pkg-descr | 6 | ||||
-rw-r--r-- | net/radsecproxy/pkg-plist | 3 |
6 files changed, 89 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 9587c2d5bef6..82bb675f1726 100644 --- a/net/Makefile +++ b/net/Makefile @@ -910,6 +910,7 @@ SUBDIR += radiusclient SUBDIR += radiusd-cistron SUBDIR += radreport + SUBDIR += radsecproxy SUBDIR += radvd SUBDIR += raggle SUBDIR += rdesktop diff --git a/net/radsecproxy/Makefile b/net/radsecproxy/Makefile new file mode 100644 index 000000000000..2fc66be93aaa --- /dev/null +++ b/net/radsecproxy/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: radsecproxy +# Date created: 2011-10-25 +# Whom: Honza Betik +# +# $FreeBSD$ + +PORTNAME= radsecproxy +PORTVERSION= 1.4.2 +CATEGORIES= net +MASTER_SITES= http://software.uninett.no/radsecproxy/ + +MAINTAINER= m.tsatsenko@gmail.com +COMMENT= Radsecproxy is a generic RADIUS proxy + +LICENSE= GPLv2 BSD +LICENSE_COMB= dual + +MAN1= radsecproxy.1 +MAN5= radsecproxy.conf.5 + +GNU_CONFIGURE= yes +USE_RC_SUBR= ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/radsecproxy ${PREFIX}/bin/catgconf + ${INSTALL_PROGRAM} ${WRKSRC}/radsecproxy ${PREFIX}/sbin/radsecproxy + ${INSTALL_DATA} ${WRKSRC}/radsecproxy.conf-example ${PREFIX}/etc/radsecproxy.conf-example + ${INSTALL_MAN} ${WRKSRC}/radsecproxy.1 ${PREFIX}/man/man1/radsecproxy.1 + ${INSTALL_MAN} ${WRKSRC}/radsecproxy.conf.5 ${PREFIX}/man/man5/radsecproxy.conf.5 + ${INSTALL_DATA} ${WRKSRC}/radsecproxy.conf-example ${PREFIX}/etc/radsecproxy.conf-example +.include <bsd.port.mk> diff --git a/net/radsecproxy/distinfo b/net/radsecproxy/distinfo new file mode 100644 index 000000000000..64ed839b6e38 --- /dev/null +++ b/net/radsecproxy/distinfo @@ -0,0 +1,2 @@ +SHA256 (radsecproxy-1.4.2.tar.gz) = 76f2db133c22883bd87bd0c6f2c258c14d7c01751845d425abb4a1599401757e +SIZE (radsecproxy-1.4.2.tar.gz) = 188224 diff --git a/net/radsecproxy/files/radsecproxy.in b/net/radsecproxy/files/radsecproxy.in new file mode 100644 index 000000000000..26a347fe680c --- /dev/null +++ b/net/radsecproxy/files/radsecproxy.in @@ -0,0 +1,46 @@ +#!/bin/sh + +# PROVIDE: radsecproxy +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# radsecproxy_enable (bool): Set to NO by default. +# Set it to YES to enable radsecproxy. + +. /etc/rc.subr + +name="radsecproxy" +rcvar=`set_rcvar` + +: ${radsecproxy_enable:="NO"} +: ${radsecproxy_user:="nobody"} +: ${radsecproxy_group:="nobody"} +: ${radsecproxy_pidfile:="/var/run/radsecproxy/radsecproxy.pid"} + +user=${radsecproxy_user} +group=${radsecproxy_group} +pidfile=${radsecproxy_pidfile} +required_files=%%PREFIX%%/etc/radsecproxy.conf + +command="%%PREFIX%%/sbin/${name}" +command_args="-c %%PREFIX%%/etc/radsecproxy.conf -i ${pidfile}" + +start_precmd="radsecproxy_prestart" +stop_postcmd="radsecproxy_poststop" + +radsecproxy_prestart() +{ + mkdir -p $(dirname $pidfile) + chown ${user}:${group} $(dirname $pidfile) +} + +radsecproxy_poststop() +{ + rm -f ${pidfile} +} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/radsecproxy/pkg-descr b/net/radsecproxy/pkg-descr new file mode 100644 index 000000000000..261f62f9c0b9 --- /dev/null +++ b/net/radsecproxy/pkg-descr @@ -0,0 +1,6 @@ +radsecproxy is a generic RADIUS proxy that in addition to to usual RADIUS +UDP transport, also supports TLS (RadSec), as well as RADIUS over TCP and +DTLS. The aim is for the proxy to have sufficient features to be flexible, +while at the same time to be small, efficient and easy to configure. + +WWW: http://software.uninett.no/radsecproxy/ diff --git a/net/radsecproxy/pkg-plist b/net/radsecproxy/pkg-plist new file mode 100644 index 000000000000..41c85894aaee --- /dev/null +++ b/net/radsecproxy/pkg-plist @@ -0,0 +1,3 @@ +bin/catgconf +sbin/radsecproxy +etc/radsecproxy.conf-example |