aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-14 11:31:30 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-14 12:13:52 +0100
commit060415a081c8c15f150fa6e5adc25b25c8f7b43c (patch)
tree89691ab0557ec2f6a3cff17eeaa921a8c555461c
parent5cdd62bc2f3dbc02532335ed189cef0af2916965 (diff)
downloadaports-060415a081c8c15f150fa6e5adc25b25c8f7b43c.tar.gz
aports-060415a081c8c15f150fa6e5adc25b25c8f7b43c.tar.bz2
aports-060415a081c8c15f150fa6e5adc25b25c8f7b43c.tar.xz
main/freeradius: move utilities to subpkg -utils
These are not needed for running radiusd. Fedora and Debian provides them in freeradius-utils package as well.
-rw-r--r--main/freeradius/APKBUILD10
-rw-r--r--main/freeradius/freeradius.post-upgrade15
2 files changed, 24 insertions, 1 deletions
diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD
index e3a1d4e750..7178f19f88 100644
--- a/main/freeradius/APKBUILD
+++ b/main/freeradius/APKBUILD
@@ -37,7 +37,7 @@ makedepends="
"
pkggroups="radius"
pkgusers="radius"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.post-upgrade"
subpackages="
$pkgname-dbg
$pkgname-doc
@@ -60,6 +60,7 @@ subpackages="
$pkgname-rest
$pkgname-redis
$pkgname-checkrad
+ $pkgname-utils
"
provides="freeradius3=$pkgver-r$pkgrel"
source="ftp://ftp.freeradius.org/pub/freeradius/$pkgname-server-$pkgver.tar.gz
@@ -329,6 +330,13 @@ redis() {
amove $_radmodsdir/redis*
}
+utils() {
+ pkgdesc="FreeRADIUS utilities"
+ depends="freeradius=$pkgver-r$pkgrel"
+
+ amove usr/bin/*
+}
+
_mvdb() {
amove $_radmodsconfdir/sql/*/$1
amove $_radlibdir/rlm_sql_$1.so
diff --git a/main/freeradius/freeradius.post-upgrade b/main/freeradius/freeradius.post-upgrade
new file mode 100644
index 0000000000..eae1d17883
--- /dev/null
+++ b/main/freeradius/freeradius.post-upgrade
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+ver_new="$1"
+ver_old="$2"
+
+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".
+ *
+ EOF
+fi
+
+exit 0