mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-28 19:21:41 +01:00
testing/freeradius: fix piddir and logrotate support added
This commit is contained in:
parent
afcb900a78
commit
f80bd68bd0
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user