diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-10-08 13:02:49 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-10-08 13:02:49 +0000 |
commit | f2733701adc218b448b34f950d997e1f12f9c9e3 (patch) | |
tree | fe9539baf8532c065ff1a38b490fbe6751382f10 | |
parent | 566a179411a43bac299fcfab753bd3af21c507fe (diff) | |
download | aports-f2733701adc218b448b34f950d997e1f12f9c9e3.tar.bz2 aports-f2733701adc218b448b34f950d997e1f12f9c9e3.tar.xz |
testing/freeradius: create subpackages
-rw-r--r-- | testing/freeradius/APKBUILD | 65 |
1 files changed, 60 insertions, 5 deletions
diff --git a/testing/freeradius/APKBUILD b/testing/freeradius/APKBUILD index b11d639c3f..4e09850543 100644 --- a/testing/freeradius/APKBUILD +++ b/testing/freeradius/APKBUILD @@ -8,12 +8,14 @@ url="http://freeradius.org/" license="GPL" depends= makedepends="openssl-dev pth-dev mysql-dev postgresql-dev gdbm-dev readline-dev - bash libtool autoconf automake perl-dev python-dev - " + bash libtool autoconf automake perl-dev python-dev openldap-dev" pkggroups="radiusd" pkgusers="radiusd" install="freeradius.pre-install" -subpackages="$pkgname-doc $pkgname-dev" +subpackages="$pkgname-doc $pkgname-dev $pkgname-ldap \ + $pkgname-mssql $pkgname-mysql $pkgname-ndb $pkgname-oracle \ + $pkgname-perl $pkgname-postgresql $pkgname-python \ + " source="ftp://ftp.freeradius.org/pub/freeradius/$pkgname-server-$pkgver.tar.gz freeradius.confd freeradius.initd @@ -29,8 +31,11 @@ prepare() { # done # we dont have libnsl - sed -i -e 's/-lnsl //g' configure - sed -i -e 's/nsl, //g' configure.in + sed -i -e 's/-lnsl //g' configure || return 1 + sed -i -e '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 aclocal && ./autogen.sh || return 1 } @@ -71,6 +76,56 @@ package() { install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } +ldap() { + mkdir -p $subpkgdir/etc/raddb + mv $pkgdir/etc/raddb/ldap.attrmap $subpkgdir/etc/raddb + mkdir -p $subpkgdir/etc/raddb/modules + mv $pkgdir/etc/raddb/modules/ldap $subpkgdir/etc/raddb/modules + mkdir -p $subpkgdir/usr/lib/freeradius + mv $pkgdir/usr/lib/freeradius/rlm_ldap* $subpkgdir/usr/lib/freeradius +} + +mysql() { + mkdir -p $subpkgdir/etc/raddb/sql + mv $pkgdir/etc/raddb/sql/mysql $subpkgdir/etc/raddb/sql + mkdir -p $subpkgdir/usr/lib/freeradius + mv $pkgdir/usr/lib/freeradius/rlm_sql_mysql* $subpkgdir/usr/lib/freeradius +} + +mssql() { + mkdir -p $subpkgdir/etc/raddb/sql + mv $pkgdir/etc/raddb/sql/mssql $subpkgdir/etc/raddb/sql +} + +ndb() { + mkdir -p $subpkgdir/etc/raddb/sql + mv $pkgdir/etc/raddb/sql/ndb $subpkgdir/etc/raddb/sql +} + +oracle() { + mkdir -p $subpkgdir/etc/raddb/sql + mv $pkgdir/etc/raddb/sql/oracle $subpkgdir/etc/raddb/sql +} + +perl() { + depends="perl" + mkdir -p $subpkgdir/usr/lib/freeradius + mv $pkgdir/usr/lib/freeradius/rlm_perl* $subpkgdir/usr/lib/freeradius +} + +postgresql() { + mkdir -p $subpkgdir/etc/raddb/sql + mv $pkgdir/etc/raddb/sql/postgresql $subpkgdir/etc/raddb/sql + mkdir -p $subpkgdir/usr/lib/freeradius + mv $pkgdir/usr/lib/freeradius/rlm_sql_postgresql* $subpkgdir/usr/lib/freeradius +} + +python() { + depends="python" + mkdir -p $subpkgdir/usr/lib/freeradius + mv $pkgdir/usr/lib/freeradius/rlm_python* $subpkgdir/usr/lib/freeradius +} + md5sums="e552704fc1b46d51176e575afa96dcc6 freeradius-server-2.1.10.tar.gz fc6693f3df5a0694610110287a28568a freeradius.confd b22092fcdcb61d7f0b8e13a007c444c5 freeradius.initd" |