diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-08-16 12:43:03 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-25 21:28:49 +0000 |
commit | 1a2483b57f19a1f97b8eb10faaa222e9dc140c31 (patch) | |
tree | c2cfbf3acdeba6d42edea35f9590f8d15c7c8f71 | |
parent | a693bbefa233ff2baeae247a43ebc48e3a1a8a67 (diff) | |
download | aports-1a2483b57f19a1f97b8eb10faaa222e9dc140c31.tar.bz2 aports-1a2483b57f19a1f97b8eb10faaa222e9dc140c31.tar.xz |
main/freeradius: 'checkrad' - fix build and move to subpackage
-rw-r--r-- | main/freeradius/APKBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD index ea3f3e6246..e6c2e897cc 100644 --- a/main/freeradius/APKBUILD +++ b/main/freeradius/APKBUILD @@ -5,7 +5,7 @@ pkgname=freeradius _realname=freeradius pkgver=3.0.15 -pkgrel=0 +pkgrel=1 pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server" url="http://freeradius.org/" arch="all" @@ -14,7 +14,7 @@ depends="" makedepends="libressl-dev mariadb-dev postgresql-dev gdbm-dev readline-dev bash libtool autoconf automake perl-dev python2-dev openldap-dev krb5-dev unixodbc-dev linux-pam-dev sqlite-dev talloc-dev libpcap-dev - linux-headers curl-dev hiredis-dev json-c-dev" + linux-headers curl-dev hiredis-dev json-c-dev net-snmp-tools" pkggroups="radius" pkgusers="radius" install="$pkgname.pre-install" @@ -22,7 +22,7 @@ subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-ldap $pkgname-lib $pkgname-mssql $pkgname-mysql $pkgname-sql $pkgname-perl $pkgname-postgresql $pkgname-python $pkgname-radclient $pkgname-sqlite $pkgname-unixodbc $pkgname-pam $pkgname-eap $pkgname-krb5 - $pkgname-rest $pkgname-redis" + $pkgname-rest $pkgname-redis $pkgname-checkrad" provides="freeradius3=$pkgver-r$pkgrel" source="ftp://ftp.freeradius.org/pub/freeradius/$_realname-server-$pkgver.tar.gz $pkgname.confd @@ -201,13 +201,18 @@ perl() { pkgdesc="Perl module for FreeRADIUS server" mkdir -p "${subpkgdir}"${radlibdir} mv "${pkgdir}"${radlibdir}/rlm_perl* "${subpkgdir}"${radlibdir} - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/sbin/checkrad "$subpkgdir"/usr/bin/checkrad mkdir -p "${subpkgdir}"${radconfdir}/mods-available mv "${pkgdir}"${radconfdir}/mods-available/perl \ "${subpkgdir}"${radconfdir}/mods-available/perl } +checkrad() { + depends="perl perl-net-telnet perl-snmp-session net-snmp-tools" + pkgdesc="Check if a user is (still) logged in on a certain port" + mkdir -p "$subpkgdir"/usr/sbin + mv "$pkgdir"/usr/sbin/checkrad "$subpkgdir"/usr/sbin/checkrad +} + postgresql() { depends="freeradius-sql=$pkgver-r$pkgrel" provides="freeradius3-postgresql=$pkgver-r$pkgrel" |