summaryrefslogtreecommitdiff
path: root/packaging/pkgsrc
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/pkgsrc')
-rw-r--r--packaging/pkgsrc/net/radsecproxy/DESCR4
-rw-r--r--packaging/pkgsrc/net/radsecproxy/Makefile34
-rw-r--r--packaging/pkgsrc/net/radsecproxy/PLIST13
-rw-r--r--packaging/pkgsrc/net/radsecproxy/distinfo5
-rwxr-xr-xpackaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh24
5 files changed, 80 insertions, 0 deletions
diff --git a/packaging/pkgsrc/net/radsecproxy/DESCR b/packaging/pkgsrc/net/radsecproxy/DESCR
new file mode 100644
index 0000000..eed8652
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/DESCR
@@ -0,0 +1,4 @@
+radsecproxy is a generic RADIUS proxy that in addition to to usual
+RADIUS UDP transport, also supports TLS (RadSec). 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.
diff --git a/packaging/pkgsrc/net/radsecproxy/Makefile b/packaging/pkgsrc/net/radsecproxy/Makefile
new file mode 100644
index 0000000..716f316
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.0 2007/11/02 11:00:00 kolla Exp $
+
+DISTNAME= radsecproxy-1.0p1
+CATEGORIES= net
+MASTER_SITES= http://software.uninett.no/radsecproxy/
+
+MAINTAINER= netbsd@kolla.no
+HOMEPAGE= http://software.uninett.no/radsecproxy/
+COMMENT= RADIUS proxy that also supports RadSec
+
+# WRKSRC= ${WRKDIR}/radsecproxy-1.0p1
+
+EGDIR= ${PREFIX}/share/examples/radsecproxy
+CONF_FILES= ${EGDIR}/radsecproxy.conf ${PKG_SYSCONFDIR}/radsecproxy.conf
+
+RCD_SCRIPTS= radsecproxy
+
+.include "../../mk/bsd.prefs.mk"
+
+INSTALLATION_DIRS= sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${EGDIR}
+
+do-install:
+ ${INSTALL_MAN} ${WRKSRC}/radsecproxy.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/radsecproxy.conf.5 ${PREFIX}/${PKGMANDIR}/man5
+ ${INSTALL_PROGRAM} ${WRKSRC}/radsecproxy ${PREFIX}/sbin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/radsecproxy
+ ${INSTALL_DATA} ${WRKSRC}/radsecproxy.conf-example ${EGDIR}/radsecproxy.conf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/packaging/pkgsrc/net/radsecproxy/PLIST b/packaging/pkgsrc/net/radsecproxy/PLIST
new file mode 100644
index 0000000..01ff821
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.0 2007/11/02 10:45:13 kolla Exp $
+man/man1/radsecproxy.1
+man/man5/radsecproxy.conf.5
+sbin/radsecproxy
+share/doc/radsecproxy/README
+share/doc/radsecproxy/AUTHORS
+share/doc/radsecproxy/COPYING
+share/doc/radsecproxy/INSTALL
+share/doc/radsecproxy/ChangeLog
+share/examples/rc.d/radsecproxy
+share/examples/radsecproxy/radsecproxy.conf
+@dirrm share/examples/radsecproxy
+@dirrm share/doc/radsecproxy
diff --git a/packaging/pkgsrc/net/radsecproxy/distinfo b/packaging/pkgsrc/net/radsecproxy/distinfo
new file mode 100644
index 0000000..ce2151d
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (radsecproxy-1.0p1.tar.gz) = 7c58ca7b096d29a7333c098bb7ef886fc4080890
+RMD160 (radsecproxy-1.0p1.tar.gz) = 0c93cd5e6d46271984d36794bd0de5beb8004b19
+Size (radsecproxy-1.0p1.tar.gz) = 96827 bytes
diff --git a/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
new file mode 100755
index 0000000..e16ef59
--- /dev/null
+++ b/packaging/pkgsrc/net/radsecproxy/files/radsecproxy.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# PROVIDE: radsecproxy
+# REQUIRE: network
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="radsecproxy"
+rcvar=${name}
+command="/usr/pkg/sbin/${name}"
+command_args="-c /usr/pkg/etc/${name}/${name}.conf"
+
+if [ -f /etc/rc.subr ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n ' ${name}'
+ exec ${command} ${command_args}
+fi