diff options
-rw-r--r-- | main/freeradius/APKBUILD | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD index 9f7d775ff5..79955b27a9 100644 --- a/main/freeradius/APKBUILD +++ b/main/freeradius/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=freeradius pkgver=2.2.0 -pkgrel=8 +pkgrel=9 pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server" url="http://freeradius.org/" arch="all" @@ -17,7 +17,7 @@ install="freeradius.pre-install" subpackages="$pkgname-doc $pkgname-dev $pkgname-ldap $pkgname-lib $pkgname-mssql $pkgname-mysql $pkgname-oracle $pkgname-perl $pkgname-postgresql $pkgname-python $pkgname-radclient - $pkgname-unixodbc $pkgname-pam" + $pkgname-unixodbc $pkgname-pam $pkgname-webif $pkgname-webif-doc" source="ftp://ftp.freeradius.org/pub/freeradius/$pkgname-server-$pkgver.tar.gz freeradius.confd freeradius.initd @@ -176,6 +176,34 @@ pam() { mkdir -p $subpkgdir/usr/lib/freeradius mv $pkgdir/usr/lib/freeradius/rlm_pam* $subpkgdir/usr/lib/freeradius } + +webif() { + depends="php" + pkgdesc="Dialupadmin interface for FreeRADIUS" + arch="noarch" + mkdir -p $subpkgdir/usr/share/webapps/dialupadmin + mkdir -p $subpkgdir/usr/share/doc/freeradius/dialupadmin + mkdir -p $subpkgdir/etc/raddb/dialupadmin + for dir in bin htdocs html lib sql; + do + mv $_builddir/dialup_admin/$dir \ + $subpkgdir/usr/share/webapps/dialupadmin || exit 1 + done + mkdir -p $subpkgdir-doc/usr/share/doc/freeradius/dialupadmin + mv $_builddir/dialup_admin/doc/* \ + $subpkgdir-doc/usr/share/doc/freeradius/dialupadmin || exit 1 + mv $_builddir/dialup_admin/README \ + $subpkgdir-doc/usr/share/doc/freeradius/dialupadmin || exit 1 + mv $_builddir/dialup_admin/conf/* $subpkgdir/etc/raddb/dialupadmin || exit 1 + for file in $(ls $subpkgdir/usr/share/webapps/dialupadmin/bin) + do + sed -i "s|/usr/local/dialup_admin/conf|/etc/raddb/dialupadmin|g" \ + $subpkgdir/usr/share/webapps/dialupadmin/bin/$file + sed -i "s|/data/local/dialupadmin/conf|/etc/raddb/dialupadmin|g" \ + $subpkgdir/usr/share/webapps/dialupadmin/bin/$file + done +} + md5sums="2e45d3c0d22ab14c560c7c3029893a8a freeradius-server-2.2.0.tar.gz fc6693f3df5a0694610110287a28568a freeradius.confd 5d83f40bd5c3a5d4e4a5f43c29e7f0da freeradius.initd" |