aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-08-20 07:22:37 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-08-20 07:22:59 +0000
commita23c1ab6987707519446a04e60bd5dafdd6b63b9 (patch)
tree46ffb2d40cd47c5e2da85efb0b705adaf43f039a
parentc3419c2c67ea656bcf8c9ed0f6cec48256914d58 (diff)
downloadaports-a23c1ab6987707519446a04e60bd5dafdd6b63b9.tar.bz2
aports-a23c1ab6987707519446a04e60bd5dafdd6b63b9.tar.xz
main/freeradius: create subpkg for dialupadmin
-rw-r--r--main/freeradius/APKBUILD32
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"