aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-14 11:57:01 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-14 12:13:52 +0100
commita9680a033dcd7af96b7d424703cbe20af6e37270 (patch)
tree5b6e581f00e34aea9e2a076ae1e82593666ce4d3
parent060415a081c8c15f150fa6e5adc25b25c8f7b43c (diff)
downloadaports-a9680a033dcd7af96b7d424703cbe20af6e37270.tar.gz
aports-a9680a033dcd7af96b7d424703cbe20af6e37270.tar.bz2
aports-a9680a033dcd7af96b7d424703cbe20af6e37270.tar.xz
main/freeradius: move dhcp module into subpkg -dhcp
Same as in Debian.
-rw-r--r--main/freeradius/APKBUILD10
-rw-r--r--main/freeradius/freeradius.post-upgrade2
2 files changed, 11 insertions, 1 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD
index 7178f19f88..a729ba096f 100644
--- a/main/freeradius/APKBUILD
+++ b/main/freeradius/APKBUILD
@@ -45,6 +45,7 @@ subpackages="
$pkgname-dev
$pkgname-eap
$pkgname-ldap
+ $pkgname-dhcp
$pkgname-lib
$pkgname-mssql
$pkgname-mysql
@@ -210,6 +211,15 @@ krb5() {
amove $_radmodsdir/krb5
}
+dhcp() {
+ pkgdesc="DHCP module for FreeRADIUS server"
+ depends="freeradius=$pkgver-r$pkgrel"
+
+ amove $_radlibdir/*_dhcp.so $_radlibdir/libfreeradius-dhcp.so
+ amove $_radmodsdir/dhcp
+ amove $_radconfdir/sites-available/dhcp
+}
+
lib() {
pkgdesc="Freeradius shared libraries"
depends=""
diff --git a/main/freeradius/freeradius.post-upgrade b/main/freeradius/freeradius.post-upgrade
index eae1d17883..1a462af4a2 100644
--- a/main/freeradius/freeradius.post-upgrade
+++ b/main/freeradius/freeradius.post-upgrade
@@ -7,7 +7,7 @@ if [ "$(apk version -t "$ver_old" "3.0.20-r4")" = "<" ]; then
cat >&2 <<-EOF
*
* FreeRADIUS utilities (such as radtest, radwho...) were moved into package
- * freeradius-utils. If you use them, run "apk add freeradius-utils".
+ * freeradius-utils. DHCP module was moved into package freeradius-dhcp.
*
EOF
fi