aboutsummaryrefslogtreecommitdiffstats
path: root/unstable/freeradius
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-13 14:07:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-13 14:07:23 +0000
commitf7712d880d1957876a7a33e63ae75f288c37ca05 (patch)
treea634d9db83977eea7cf8929e7a43b6efd950736f /unstable/freeradius
parent19c14941f5b586b27853092cc04ce4480062c9b3 (diff)
downloadaports-f7712d880d1957876a7a33e63ae75f288c37ca05.tar.bz2
aports-f7712d880d1957876a7a33e63ae75f288c37ca05.tar.xz
testing/freeradius: new aport (moved from unstable)
RADIUS (Remote Authentication Dial-In User Service) server http://freeradius.org/
Diffstat (limited to 'unstable/freeradius')
-rw-r--r--unstable/freeradius/APKBUILD36
-rw-r--r--unstable/freeradius/freeradius.confd5
-rw-r--r--unstable/freeradius/freeradius.initd70
-rw-r--r--unstable/freeradius/freeradius.pre-install3
4 files changed, 0 insertions, 114 deletions
diff --git a/unstable/freeradius/APKBUILD b/unstable/freeradius/APKBUILD
deleted file mode 100644
index f6a527390f..0000000000
--- a/unstable/freeradius/APKBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# Contributor:
-# Maintainer:
-pkgname=freeradius
-pkgver=2.1.3
-pkgrel=1
-pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server"
-url="http://freeradius.org/"
-license="GPL"
-depends=
-makedepends="openssl-dev pth-dev mysql-dev postgresql-dev gdbm-dev"
-install="freeradius.pre-install"
-subpackages="$pkgname-doc $pkgname-dev"
-source="ftp://ftp.freeradius.org/pub/freeradius/$pkgname-server-$pkgver.tar.gz
- freeradius.confd
- freeradius.initd
- "
-
-build() {
- cd "$srcdir/$pkgname-server-$pkgver"
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --without-threads \
- --disable-tls
- make -j1 || return 1
- make -j1 DESTDIR="$pkgdir" install
-
- install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
-}
-
-md5sums="017ebe7dd2e261caee448c64ccd4584d freeradius-server-2.1.3.tar.gz
-fc6693f3df5a0694610110287a28568a freeradius.confd
-b22092fcdcb61d7f0b8e13a007c444c5 freeradius.initd"
diff --git a/unstable/freeradius/freeradius.confd b/unstable/freeradius/freeradius.confd
deleted file mode 100644
index 9811289ba4..0000000000
--- a/unstable/freeradius/freeradius.confd
+++ /dev/null
@@ -1,5 +0,0 @@
-# Config file for /etc/init.d/radiusd
-
-# see man pages for radiusd run `radiusd -h`
-# for valid cmdline options
-#RADIUSD_OPTS=""
diff --git a/unstable/freeradius/freeradius.initd b/unstable/freeradius/freeradius.initd
deleted file mode 100644
index 86909adef9..0000000000
--- a/unstable/freeradius/freeradius.initd
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/sbin/runscript
-
-opts="${opts} reload"
-
-depend() {
- need net
- after firewall
- use dns
-}
-
-checkconfig() {
- #set the location of log files, including startup.log created by check-radiusd-config
- if ! cd /var/log/radius ; then
- eerror "Failed to change current directory to /var/log/radius"
- return 1
- fi
-
- if [ ! -d /var/run/radiusd ] && ! mkdir /var/run/radiusd ; then
- eerror "Failed to create /var/run/radiusd"
- return 1
- fi
-
- if [ ! -f /etc/raddb/radiusd.conf ] ; then
- eerror "No /etc/raddb/radiusd.conf file exists!"
- return 1
- fi
-
- if [ "`/usr/sbin/check-radiusd-config >/dev/null 2>&1; echo $?`" != "0" ] ; then
- eerror "Config not ok! (try /usr/sbin/check-radiusd-config )"
- return 1
- fi
-
- RADIUSD_USER=`grep '^ *user *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3`
- RADIUSD_GROUP=`grep '^ *group *=' /etc/raddb/radiusd.conf | cut -d ' ' -f 3`
- if [ -n "${RADIUSD_USER}" ] && ! getent passwd ${RADIUSD_USER} > /dev/null ; then
- eerror "${RADIUSD_USER} user missing!"
- return 1
- fi
- if [ -n "${RADIUSD_GROUP}" ] && ! getent group ${RADIUSD_GROUP} > /dev/null ; then
- eerror "${RADIUSD_GROUP} group missing!"
- return 1
- fi
-
- #radius.log is created before privileges drop; we need to set proper permissions on it
- [ -f radius.log ] || touch radius.log || return 1
-
- chown -R "${RADIUSD_USER:-root}:${RADIUSD_GROUP:-root}" . /var/run/radiusd && \
- chmod -R u+rwX,g+rX . /var/run/radiusd || return 1
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting radiusd"
- start-stop-daemon --start --quiet --exec /usr/sbin/radiusd -- ${RADIUSD_OPTS} >/dev/null
- eend $?
-}
-
-stop () {
- ebegin "Stopping radiusd"
- start-stop-daemon --stop --quiet --pidfile=/var/run/radiusd/radiusd.pid
- eend $?
-}
-
-reload () {
- ebegin "Reloading radiusd"
- kill -HUP `</var/run/radiusd/radiusd.pid`
- eend $?
-}
-
diff --git a/unstable/freeradius/freeradius.pre-install b/unstable/freeradius/freeradius.pre-install
deleted file mode 100644
index 875022745c..0000000000
--- a/unstable/freeradius/freeradius.pre-install
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-adduser -h /var/log/radius -s /bin/false -D radiusd 2>/dev/null