aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-01-24 15:29:22 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-01-24 15:29:51 +0000
commitf85c84c720fce503f953ea8f57da1f71d39cae30 (patch)
treea714e5036cf960e76252a00495569f1bf4e73d5e
parente1ca97b05e7fb18bff1b78f2052819f07e0fa1b1 (diff)
downloadaports-f85c84c720fce503f953ea8f57da1f71d39cae30.tar.bz2
aports-f85c84c720fce503f953ea8f57da1f71d39cae30.tar.xz
main/freeradius: switch from rlm_python to rlm_python3, modernize
-rw-r--r--main/freeradius/APKBUILD11
1 files changed, 5 insertions, 6 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD
index 5fda4999c1..56d899f0a1 100644
--- a/main/freeradius/APKBUILD
+++ b/main/freeradius/APKBUILD
@@ -5,13 +5,13 @@
pkgname=freeradius
_realname=freeradius
pkgver=3.0.20
-pkgrel=1
+pkgrel=2
pkgdesc="RADIUS (Remote Authentication Dial-In User Service) server"
url="https://freeradius.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev mariadb-connector-c-dev postgresql-dev gdbm-dev readline-dev
- bash libtool autoconf automake perl-dev python2-dev openldap-dev krb5-dev
+ bash libtool autoconf automake perl-dev python3-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 net-snmp-tools"
pkggroups="radius"
@@ -55,7 +55,6 @@ prepare() {
}
build() {
- cd "$builddir"
# freeradius requries json.h to be in a dir called 'json'. We fool
# the configure script with a symlink pointing to proper location.
ln -s /usr/include/json-c json
@@ -83,6 +82,7 @@ build() {
--with-rlm_rest \
--with-rlm_redis \
--with-rlm_rediswho \
+ --with-modules="rlm_python3" \
--without-rlm_eap_tnc \
--without-rlm_eap_ikev2 \
--without-rlm_sql_iodbc \
@@ -95,7 +95,6 @@ build() {
}
package() {
- cd "$builddir"
install -d -m0750 -o root -g radius \
"${pkgdir}"${_radconfdir}
install -d -m0750 -o radius -g radius \
@@ -227,14 +226,14 @@ postgresql() {
}
python() {
- depends="freeradius=$pkgver-r$pkgrel python2"
+ depends="freeradius=$pkgver-r$pkgrel"
provides="freeradius3-python=$pkgver-r$pkgrel"
pkgdesc="Python module for FreeRADIUS server"
mkdir -p "${subpkgdir}"${_radlibdir}
mv "${pkgdir}"${_radlibdir}/rlm_python* "${subpkgdir}"${_radlibdir}
for dir in $_radmodsdir $_radmodsconfdir; do
mkdir -p "${subpkgdir}"$dir
- mv "${pkgdir}"$dir/python "${subpkgdir}"$dir
+ mv "${pkgdir}"$dir/python3 "${subpkgdir}"$dir
done
}