summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-10-08 14:22:20 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-10-08 14:22:36 +0000
commitf80bd68bd0bd5b47fbf978ee7bd2dbd1901a08ec (patch)
treec746500eb67fbaa6dd06a49ebf6a9102968fefeb
parentafcb900a7844e2cf65d970f725df0d78160e7b75 (diff)
downloadaports-f80bd68bd0bd5b47fbf978ee7bd2dbd1901a08ec.tar.bz2
aports-f80bd68bd0bd5b47fbf978ee7bd2dbd1901a08ec.tar.xz
testing/freeradius: fix piddir and logrotate support added
-rw-r--r--testing/freeradius/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/testing/freeradius/APKBUILD b/testing/freeradius/APKBUILD
index 7d905bbfe..6b878d2e9 100644
--- a/testing/freeradius/APKBUILD
+++ b/testing/freeradius/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=freeradius
pkgver=2.1.10
-pkgrel=7
+pkgrel=8
pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server"
url="http://freeradius.org/"
license="GPL"
@@ -30,12 +30,16 @@ prepare() {
# done
# we dont have libnsl
- sed -i -e 's/-lnsl //g' configure || return 1
- sed -i -e 's/nsl, //g' configure.in || return 1
+ sed -i 's/-lnsl //g' configure || return 1
+ sed -i 's/nsl, //g' configure.in || return 1
# Fix compilation with heimdal >= 1.3.1
sed -i 's/ -DKRB5_DEPRECATED//' src/modules/rlm_krb5/Makefile.in || return 1
+ # Fix default config
+ sed -i 's%run_dir = .*%run_dir = \$\{localstatedir\}/run/radius%' \
+ raddb/radiusd.conf.in || return 1
+
aclocal && ./autogen.sh || return 1
}
@@ -62,7 +66,7 @@ build() {
package() {
cd "$_builddir"
install -d -m0750 -o root -g radiusd "$pkgdir"/etc/raddb
- install -d -m0750 -o root -g radiusd "$pkgdir"/var/run/radius
+ install -d -m0770 -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
@@ -73,6 +77,7 @@ package() {
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
+ install -m644 -D scripts/logrotate.freeradius "$pkgdir"/etc/lorotate.d/$pkgname
}
ldap() {