summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-06-19 09:29:57 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-19 09:29:57 +0000
commit71fab9c3e4b7f71148081249321f9509d997a334 (patch)
treec1e8e1869f742df7101283baea071d78d817b15a
parent4b2960c88e7dd342756498ad7a2bf27b99a68533 (diff)
added package files
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@144 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--packaging/OpenWRT.txt1
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/ChangeLog8
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/Manifest24
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/files/digest-radsecproxy-1.0_alpha13
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.confd6
-rwxr-xr-xpackaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd24
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/metadata.xml10
-rw-r--r--packaging/gentoo/net-dialup/radsecproxy/radsecproxy-1.0_alpha1.ebuild41
-rw-r--r--packaging/rpm/radsecproxy.spec93
-rw-r--r--packaging/rpm/radsecproxy.sysv81
10 files changed, 291 insertions, 0 deletions
diff --git a/packaging/OpenWRT.txt b/packaging/OpenWRT.txt
new file mode 100644
index 0000000..ed5f5f4
--- /dev/null
+++ b/packaging/OpenWRT.txt
@@ -0,0 +1 @@
+For OpenWRT packages, please see http://zandbelt.dyndns.org/radsecproxy/
diff --git a/packaging/gentoo/net-dialup/radsecproxy/ChangeLog b/packaging/gentoo/net-dialup/radsecproxy/ChangeLog
new file mode 100644
index 0000000..763b7bf
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-dialup/radsecproxy
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 14 Jun 2007; Kolbjørn Barmen <gentoo@kolla.no>
+ radsecproxy-1.0_alpha1.ebuild
+ Initial release, marked as unstable still
+
diff --git a/packaging/gentoo/net-dialup/radsecproxy/Manifest b/packaging/gentoo/net-dialup/radsecproxy/Manifest
new file mode 100644
index 0000000..9d15da1
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/Manifest
@@ -0,0 +1,24 @@
+AUX radsecproxy.confd 138 RMD160 cef1febd9492475d29a341cb8531dfa8eebb12be SHA1 dd184ba924bdbb1206c823494fdb64238a2e6ec3 SHA256 3ac3b83d3da9d7044b469766cdc31eaccbe7c56b5effc062af769082084b5a7f
+MD5 47be3036678c3c2704cfc0105da46f16 files/radsecproxy.confd 138
+RMD160 cef1febd9492475d29a341cb8531dfa8eebb12be files/radsecproxy.confd 138
+SHA256 3ac3b83d3da9d7044b469766cdc31eaccbe7c56b5effc062af769082084b5a7f files/radsecproxy.confd 138
+AUX radsecproxy.initd 401 RMD160 882c5771db2d0c6eeb893ab5d22db38b986aa305 SHA1 410b76642a99dd59a6a3589554946790bfd15ffd SHA256 ba9d308f32f7bfc3103aaa8d43541bf9387eccdde23c0a807b4ff5e7351f4856
+MD5 3fddfc753d3d8597fca897f80623d9e9 files/radsecproxy.initd 401
+RMD160 882c5771db2d0c6eeb893ab5d22db38b986aa305 files/radsecproxy.initd 401
+SHA256 ba9d308f32f7bfc3103aaa8d43541bf9387eccdde23c0a807b4ff5e7351f4856 files/radsecproxy.initd 401
+DIST radsecproxy-1.0-alpha-p1.tar.gz 95760 RMD160 ee6b8dda0e5c2d6a321a17462525d049caa82eef SHA1 a2b86cb785fd61fec39a15bbc607de764655eb55 SHA256 032a79942bc9dec6c836d41497b0a5377c7b855b3383e2df6eebafd8a596347e
+EBUILD radsecproxy-1.0_alpha1.ebuild 1003 RMD160 c9fd822310864c15d6b2e5896c67cb2c2f4cd679 SHA1 d575cb9f05636a1e5a63249b835efe7b2e5ec0ff SHA256 005a9fd4d9feb456ca3da87b37f2d817d565bab28c7c6b0a7c980d42a7ac9366
+MD5 bbb9fc3c650707f5f425f1d1f9d7dd62 radsecproxy-1.0_alpha1.ebuild 1003
+RMD160 c9fd822310864c15d6b2e5896c67cb2c2f4cd679 radsecproxy-1.0_alpha1.ebuild 1003
+SHA256 005a9fd4d9feb456ca3da87b37f2d817d565bab28c7c6b0a7c980d42a7ac9366 radsecproxy-1.0_alpha1.ebuild 1003
+MISC ChangeLog 250 RMD160 1badaeca8c659f64f2fb3dbf43a6113b08ec78ac SHA1 7ec00e5b2c581f79354ea72431f8d9a810d1c0f6 SHA256 507550f9c71ed6cc96f285d1e41d1186a572ba7b081608969da2f92136db635e
+MD5 759144f552511ba94a29c4531eb134b3 ChangeLog 250
+RMD160 1badaeca8c659f64f2fb3dbf43a6113b08ec78ac ChangeLog 250
+SHA256 507550f9c71ed6cc96f285d1e41d1186a572ba7b081608969da2f92136db635e ChangeLog 250
+MISC metadata.xml 336 RMD160 925cfa790e982f2b3f0200ff826b66d7f3f55af4 SHA1 87ae6c5d9edb96fe41d07e54c556842a7f2d6f72 SHA256 1b544a15e74a4fef6f42aedcc8f0d19d35259f30ae0cd740a994aa410abbfa7c
+MD5 34f3b4682a3475a34fcae5873e64d39f metadata.xml 336
+RMD160 925cfa790e982f2b3f0200ff826b66d7f3f55af4 metadata.xml 336
+SHA256 1b544a15e74a4fef6f42aedcc8f0d19d35259f30ae0cd740a994aa410abbfa7c metadata.xml 336
+MD5 1aef3452eb826fff8f36d5e351b022ef files/digest-radsecproxy-1.0_alpha1 271
+RMD160 0344b6f5484dd2d245ee31960a135e6149818611 files/digest-radsecproxy-1.0_alpha1 271
+SHA256 9258f4663f1b063b5c23ccc84a6100fc9fd4357c152c9395d779e9c9bfccccc4 files/digest-radsecproxy-1.0_alpha1 271
diff --git a/packaging/gentoo/net-dialup/radsecproxy/files/digest-radsecproxy-1.0_alpha1 b/packaging/gentoo/net-dialup/radsecproxy/files/digest-radsecproxy-1.0_alpha1
new file mode 100644
index 0000000..6c1f5dd
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/files/digest-radsecproxy-1.0_alpha1
@@ -0,0 +1,3 @@
+MD5 a1f228747e284ffbd6b3c167358d1ce1 radsecproxy-1.0-alpha-p1.tar.gz 95760
+RMD160 ee6b8dda0e5c2d6a321a17462525d049caa82eef radsecproxy-1.0-alpha-p1.tar.gz 95760
+SHA256 032a79942bc9dec6c836d41497b0a5377c7b855b3383e2df6eebafd8a596347e radsecproxy-1.0-alpha-p1.tar.gz 95760
diff --git a/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.confd b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.confd
new file mode 100644
index 0000000..ac05c94
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.confd
@@ -0,0 +1,6 @@
+#
+# Options for radsecproxy
+#
+# For example tell radsecproxy to use a non-default config file
+
+#OPTS="-c /usr/local/etc/radsecproxy.conf"
diff --git a/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
new file mode 100755
index 0000000..2b11b9c
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/files/radsecproxy.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+depend() {
+ use logger dns
+ need net
+}
+
+CMD="/usr/sbin/radsecproxy"
+
+start() {
+ ebegin "Starting radsecproxy"
+ if test -n "${OPTS}" ; then
+ start-stop-daemon --start --exec ${CMD} -- ${OPTS} >/dev/null 2>&1
+ else
+ start-stop-daemon --start --exec ${CMD} -- >/dev/null 2>&1
+ fi
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping radsecproxy"
+ start-stop-daemon --stop --exec ${CMD}
+ eend $?
+}
diff --git a/packaging/gentoo/net-dialup/radsecproxy/metadata.xml b/packaging/gentoo/net-dialup/radsecproxy/metadata.xml
new file mode 100644
index 0000000..833e742
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-dialup</herd>
+<maintainer>
+ <email>gentoo@kolla.no</email>
+ <name>Kolbjørn Barmen</name>
+</maintainer>
+<longdescription>Highly configurable free RADIUS/RADSEC proxy.</longdescription>
+</pkgmetadata>
diff --git a/packaging/gentoo/net-dialup/radsecproxy/radsecproxy-1.0_alpha1.ebuild b/packaging/gentoo/net-dialup/radsecproxy/radsecproxy-1.0_alpha1.ebuild
new file mode 100644
index 0000000..bbd07e3
--- /dev/null
+++ b/packaging/gentoo/net-dialup/radsecproxy/radsecproxy-1.0_alpha1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: radsecproxy-1.0_alpha1.ebuild 12 2007-06-14 19:53:35Z kolla $
+
+inherit eutils
+
+MY_P=${P%_alpha1}-alpha-p1
+S=${S%_alpha1}-alpha-p1
+
+DESCRIPTION="RADIUS/RADSEC Proxy"
+HOMEPAGE="http://software.uninett.no/radsecproxy"
+SRC_URI="http://software.uninett.no/${PN}/${MY_P}.tar.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="x86 ~alpha ~amd64 ~arm ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390"
+
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+RDEPEND="dev-libs/openssl"
+
+src_unpack() {
+ unpack ${A}
+ # Use sbin instead of bin
+ sed 's:^bin_PROGRAMS:sbin_PROGRAMS:' -i "${S}"/Makefile.am
+}
+
+src_install() {
+ einstall || die
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}
+
+pkg_postinst () {
+ echo
+ elog "Example config exists as /etc/radsecproxy.conf-example"
+ elog "Copy this to /etc/radsecproxy.conf and edit to suit your needs"
+ echo
+}
diff --git a/packaging/rpm/radsecproxy.spec b/packaging/rpm/radsecproxy.spec
new file mode 100644
index 0000000..5685080
--- /dev/null
+++ b/packaging/rpm/radsecproxy.spec
@@ -0,0 +1,93 @@
+Summary: radsecproxy is a generic RADIUS proxy that provides both RADIUS UDP and TCP/TLS (RadSec) transport.
+Name: radsecproxy
+Version: 1.0.alpha
+Release: 1
+Group: Applications/Communications
+License: BSD
+URL: http://software.uninett.no/radsecproxy
+Packager: Arnes <aaa-podpora@arnes.si>
+Source: http://software.uninett.no/radsecproxy/radsecproxy-1.0-alpha.tar.gz
+Source1: radsecproxy.sysv
+Source2: radsecproxy.1
+Source3: radsecproxy.conf.5
+Requires: openssl >= 0.9.7a
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: openssl-devel >= 0.9.7a
+
+%description
+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.
+Currently the executable on Linux is only about 48 Kb, and it uses
+about 64 Kb (depending on the number of peers) while running.
+
+The proxy was initially made to be able to deploy RadSec (RADIUS
+over TLS) so that all RADIUS communication across network links
+could be done using TLS, without modifying existing RADIUS software.
+This can be done by running this proxy on the same host as an existing
+RADIUS server or client, and configure the existing client/server to
+talk to localhost (the proxy) rather than other clients and servers
+directly.
+
+There may however be other situations where a RADIUS proxy might be
+useful. Some people deploy RADIUS topologies where they want to
+route RADIUS messages to the right server. The nodes that do purely
+routing could be using a proxy. Some people may also wish to deploy
+a proxy on a firewall boundary. Since the proxy supports both IPv4
+and IPv6, it could also be used to allow communication in cases
+where some RADIUS nodes use only IPv4 and some only IPv6.
+
+%prep
+%setup -n %{name}-1.0-alpha
+
+%build
+%{__make}
+
+%install
+%{__rm} -rf %{buildroot}
+%{__install} -D -m0644 radsecproxy.conf-example %{buildroot}%{_docdir}/%{name}-%{version}/radsecproxy.conf-example
+%{__install} -D -m0644 AUTHORS %{buildroot}%{_docdir}/%{name}-%{version}/AUTHORS
+%{__install} -D -m0644 ChangeLog %{buildroot}%{_docdir}/%{name}-%{version}/ChangeLog
+%{__install} -D -m0644 COPYING %{buildroot}%{_docdir}/%{name}-%{version}/COPYING
+%{__install} -D -m0644 README %{buildroot}%{_docdir}/%{name}-%{version}/README
+%{__install} -D -m0755 radsecproxy %{buildroot}%{_sbindir}/radsecproxy
+%{__install} -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/radsecproxy
+%{__install} -D -m0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/radsecproxy.1
+%{__install} -D -m0644 %{SOURCE3} %{buildroot}%{_mandir}/man5/radsecproxy.conf.5
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+/sbin/chkconfig --add radsecproxy
+
+%preun
+if [ $1 -eq 0 ]; then
+ /sbin/service radsecproxy stop &>/dev/null || :
+ /sbin/chkconfig --del radsecproxy
+fi
+
+%postun
+if [ $1 -ge 1 ]; then
+ /sbin/service radsecproxy condrestart &> /dev/null || :
+fi
+
+%files
+%defattr(-, root, root, 0755)
+%config %{_initrddir}/radsecproxy
+%{_sbindir}/radsecproxy
+%doc %{_docdir}/%{name}-%{version}/AUTHORS
+%doc %{_docdir}/%{name}-%{version}/ChangeLog
+%doc %{_docdir}/%{name}-%{version}/COPYING
+%doc %{_docdir}/%{name}-%{version}/README
+%doc %{_docdir}/%{name}-%{version}/radsecproxy.conf-example
+%doc %{_mandir}/man1/radsecproxy.1.gz
+%doc %{_mandir}/man5/radsecproxy.conf.5.gz
+
+%changelog
+* Thu Jun 07 2007 Rok Papez <aaa-podpora@arnes.si> - 1.0-alpha.1
+- Initial packaging of the 1.0-alpha.1 release
+- Added SysV/RedHat init script
+- Added radsecproxy manages
diff --git a/packaging/rpm/radsecproxy.sysv b/packaging/rpm/radsecproxy.sysv
new file mode 100644
index 0000000..38a5055
--- /dev/null
+++ b/packaging/rpm/radsecproxy.sysv
@@ -0,0 +1,81 @@
+#!/bin/bash
+#
+# init script for radsecproxy
+#
+# chkconfig: 345 95 05
+# description: RADIUS UDP and RADSEC proxy
+#
+# config: /etc/radsecproxy.conf
+
+source /etc/init.d/functions
+source /etc/sysconfig/network
+
+# Check that networking is up.
+[ ${NETWORKING} = "no" ] && exit 0
+
+[ -x /usr/sbin/radsecproxy ] || exit 1
+[ -f /etc/radsecproxy.conf ] || exit 1
+
+RETVAL=0
+prog="radsecproxy"
+desc="RADSEC Proxying"
+
+start() {
+ echo -n $"Starting $desc ($prog): "
+ daemon /usr/sbin/$prog || RETVAL=1
+
+ if [ $RETVAL -eq 0 ]; then
+ success "$prog startup"
+ rm -f /var/lock/subsys/$prog
+ else
+ failure "$prog startup"
+ fi
+
+ echo
+ return $RETVAL
+}
+
+stop() {
+ echo -n $"Stopping $desc ($prog): "
+ killproc $prog || RETVAL=1
+
+ if [ $RETVAL -eq 0 ]; then
+ success "$prog shutdown"
+ rm -f /var/lock/subsys/$prog
+ else
+ failure "$prog shutdown"
+ fi
+
+ echo
+ return $RETVAL
+}
+
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ restart
+ ;;
+ condrestart)
+ [ -e /var/lock/subsys/$prog ] && restart
+ RETVAL=$?
+ ;;
+ status)
+ status $prog
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage $0 {start|stop|restart|reload|condrestart|status}"
+ RETVAL=1
+esac
+
+exit $RETVAL