diff options
-rw-r--r-- | testing/freeradius/APKBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/testing/freeradius/APKBUILD b/testing/freeradius/APKBUILD index 7d905bbfe8..6b878d2e93 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() { |