summaryrefslogtreecommitdiffstats
path: root/testing/freeradius/APKBUILD
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 /testing/freeradius/APKBUILD
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 'testing/freeradius/APKBUILD')
-rw-r--r--testing/freeradius/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/testing/freeradius/APKBUILD b/testing/freeradius/APKBUILD
new file mode 100644
index 000000000..516335910
--- /dev/null
+++ b/testing/freeradius/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor:
+# Maintainer:
+pkgname=freeradius
+pkgver=2.1.7
+pkgrel=0
+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 readline-dev
+ bash libtool autoconf automake
+ "
+pkggroups="radiusd"
+pkgusers="radiusd"
+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
+ 0001-Fix-detection-of-TLS-for-uClibc.patch
+ freeradius-2.1.6-nothreads.patch
+ freeradius-2.1.7-pkglibdir.patch
+ "
+
+build() {
+ cd "$srcdir/$pkgname-server-$pkgver"
+ for i in ../*.patch; do
+ msg "Applying $i"
+ patch -p1 -i $i || return 1
+ done
+
+ aclocal && ./autogen.sh || return 1
+
+ export CONFIG_SHELL=/bin/bash
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+
+# # the configure script fails to detect that we dont have TLS
+# sed -i -e '/^\#define HAVE_THREAD_TLS/d' src/include/autoconf.h \
+# || return 1
+
+ make -j1 || return 1
+ install -d -m0750 -o root -g radiusd "$pkgdir"/etc/raddb
+ install -d -m0750 -o root -g radiusd "$pkgdir"/var/run/radius
+ install -d -m0750 -o root -g radiusd "$pkgdir"/var/log/radius
+ install -d -m0750 -o root -g radiusd "$pkgdir"/var/log/radius/radacct
+
+ make -j1 R="$pkgdir" install
+ sed -i -e 's:^#user *= *nobody:user = radiusd:;s:^#group *= *nobody:group = radiusd:' \
+ "$pkgdir"/etc/raddb/radiusd.conf
+ chown -R root:radiusd "$pkgdir"/etc/raddb/*
+ rm -f "$pkgdir/usr/sbin/rc.radiusd"
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+
+}
+
+md5sums="b1f77c5e3116bcb0ac0aa9080a06ebf1 freeradius-server-2.1.7.tar.gz
+fc6693f3df5a0694610110287a28568a freeradius.confd
+b22092fcdcb61d7f0b8e13a007c444c5 freeradius.initd
+2e39f10c814bc7e1172c4cb2d178b39b 0001-Fix-detection-of-TLS-for-uClibc.patch
+1e04786d3f626200999f53471c19ac47 freeradius-2.1.6-nothreads.patch
+4c8af50e174d392c0210cbf494cd15cd freeradius-2.1.7-pkglibdir.patch"