Date: Thursday, November 17, 2022 @ 10:02:26
Author: eworm
Revision: 1349312
archrelease: copy trunk to community-staging-x86_64
Added:
freeradius/repos/community-staging-x86_64/
freeradius/repos/community-staging-x86_64/0001-python-3-10.patch
(from rev 1349311, freeradius/trunk/0001-python-3-10.patch)
freeradius/repos/community-staging-x86_64/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch
(from rev 1349311,
freeradius/trunk/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch)
freeradius/repos/community-staging-x86_64/PKGBUILD
(from rev 1349311, freeradius/trunk/PKGBUILD)
freeradius/repos/community-staging-x86_64/freeradius-sysusers.conf
(from rev 1349311, freeradius/trunk/freeradius-sysusers.conf)
freeradius/repos/community-staging-x86_64/freeradius-tmpfiles.conf
(from rev 1349311, freeradius/trunk/freeradius-tmpfiles.conf)
freeradius/repos/community-staging-x86_64/freeradius.service
(from rev 1349311, freeradius/trunk/freeradius.service)
freeradius/repos/community-staging-x86_64/keys/
---------------------------------------------------------------+
0001-python-3-10.patch | 12 +
0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch | 25 +++
PKGBUILD | 77 ++++++++++
freeradius-sysusers.conf | 1
freeradius-tmpfiles.conf | 8 +
freeradius.service | 19 ++
6 files changed, 142 insertions(+)
Copied: freeradius/repos/community-staging-x86_64/0001-python-3-10.patch (from
rev 1349311, freeradius/trunk/0001-python-3-10.patch)
===================================================================
--- community-staging-x86_64/0001-python-3-10.patch
(rev 0)
+++ community-staging-x86_64/0001-python-3-10.patch 2022-11-17 10:02:26 UTC
(rev 1349312)
@@ -0,0 +1,12 @@
+diff -upr freeradius-server/src/modules/rlm_python/configure
freeradius-server/src/modules/rlm_python/configure
+--- freeradius-server/src/modules/rlm_python/configure 2021-10-07
22:46:04.000000000 +0300
++++ freeradius-server/src/modules/rlm_python/configure 2021-12-10
18:13:15.196401810 +0200
+@@ -2945,7 +2945,7 @@ $as_echo "$as_me: Python sys.prefix \"${
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.exec_prefix
\"${PY_EXEC_PREFIX}\"" >&5
+ $as_echo "$as_me: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&6;}
+
+- PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ;
print(sys.version[0:3])'`
++ PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ;
print(".".join(map(str, sys.version_info[:2])))'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.version
\"${PY_SYS_VERSION}\"" >&5
+ $as_echo "$as_me: Python sys.version \"${PY_SYS_VERSION}\"" >&6;}
+
Copied:
freeradius/repos/community-staging-x86_64/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch
(from rev 1349311,
freeradius/trunk/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch)
===================================================================
---
community-staging-x86_64/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch
(rev 0)
+++
community-staging-x86_64/0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch
2022-11-17 10:02:26 UTC (rev 1349312)
@@ -0,0 +1,25 @@
+From 882a598c5ce4ce235ecb23f22afc2141c92910f5 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <[email protected]>
+Date: Sat, 15 Oct 2022 22:38:42 +0200
+Subject: [PATCH 1/1] Fallback to `uname -n` on missing `hostname` in radtest
+
+This should work without inetutils being installed, so add a fallback.
+
+Signed-off-by: Christian Hesse <[email protected]>
+---
+ src/main/radtest.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/main/radtest.in b/src/main/radtest.in
+index 11e929147a..e15f92ed9b 100644
+--- a/src/main/radtest.in
++++ b/src/main/radtest.in
+@@ -100,7 +100,7 @@ if [ "$7" ]
+ then
+ nas=$7
+ else
+- nas=`hostname`
++ nas=`(hostname || uname -n) 2>/dev/null | sed 1q`
+ fi
+
+ (
Copied: freeradius/repos/community-staging-x86_64/PKGBUILD (from rev 1349311,
freeradius/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-17 10:02:26 UTC (rev 1349312)
@@ -0,0 +1,77 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Contributor: Jason R Begley ([email protected]>
+# Contributor: Daniel Micay <[email protected]>
+
+pkgname=freeradius
+pkgver=3.2.1
+pkgrel=4
+pkgdesc='The premier open source RADIUS server'
+arch=('x86_64')
+url='https://freeradius.org/'
+license=('GPL')
+depends=('krb5' 'net-snmp' 'postgresql-libs' 'mariadb-libs' 'talloc'
+ 'libpcap' 'libxcrypt' 'libcrypt.so' 'smbclient')
+makedepends=('curl' 'freetds' 'hiredis' 'json-c' 'libmemcached' 'perl'
+ 'python' 'samba' 'sqlite' 'unixodbc' 'yubico-c-client')
+optdepends=('curl: for REST'
+ 'freetds: for Sybase and MS SQL'
+ 'hiredis: for redis support'
+ 'json-c: rlm_rest module'
+ 'libmemcached: for memcached'
+ 'perl: for Perl'
+ 'python: for Python'
+ 'sqlite: for sqlite'
+ 'unixodbc: for ODBC'
+ 'yubico-c-client: for yubicloud')
+options=('!makeflags' 'debug')
+validpgpkeys=('BF2384EC6938B9744B03E2A620E37C25995B4F85') # FreeRADIUS -
Package Signing [...] <[email protected]>
+source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
+ '0001-python-3-10.patch'
+ '0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch'
+ 'freeradius-sysusers.conf'
+ 'freeradius-tmpfiles.conf'
+ 'freeradius.service')
+sha256sums=('32cd4eae3c24af2893aa5feff643bc9ac0755341b2b7e8dd622c6e9a23e9f256'
+ 'SKIP'
+ 'c9c7b0d409e15b65b49f925f5480f379312be7d9f7b9601d958a40f894befa73'
+ '280d451646153f2a5541f54215d437a5b86d03c732523e4e3c94dccc508d0f9a'
+ '8ecaca94c7d0f4806b326685312dd4e543ce9c6c183d3d7ad01c1a0197bdfb94'
+ 'f536a9aa972e3e42a6b1a6d8ee17166eb721c7cba2e80f60473811497c7bd8bc'
+ 'c469e1a3f9edad769da01c324779babe783ee85a9b53ce4638d3d2d09c7c8d4b')
+
+prepare() {
+ cd "$srcdir"/freeradius-server-$pkgver
+
+ patch -Np1 < ../0001-python-3-10.patch
+ patch -Np1 < ../0002-Fallback-to-uname-n-on-missing-hostname-in-radtest.patch
+}
+
+build() {
+ cd "$srcdir"/freeradius-server-$pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib/freeradius \
+ --localstatedir=/var \
+ --enable-heimdal-krb5 \
+ --enable-reproducible-builds \
+ --with-system-libltdl \
+ --with-system-libtool \
+ --with-udpfromto
+ make PACKAGE='archlinux'
+}
+
+package() {
+ cd "$srcdir"/freeradius-server-$pkgver
+
+ make install R="$pkgdir" PACKAGE='archlinux'
+ chmod o+r "$pkgdir"/etc/raddb/*
+ mv "$pkgdir"/etc/raddb "$pkgdir"/etc/raddb.default
+ rm -rf "$pkgdir"/var/run
+
+ install -D -m0644 "$srcdir"/$pkgname.service
"$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ install -D -m0644 "$srcdir"/$pkgname-sysusers.conf
"$pkgdir"/usr/lib/sysusers.d/$pkgname.conf
+ install -D -m0644 "$srcdir"/$pkgname-tmpfiles.conf
"$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+}
Copied: freeradius/repos/community-staging-x86_64/freeradius-sysusers.conf
(from rev 1349311, freeradius/trunk/freeradius-sysusers.conf)
===================================================================
--- community-staging-x86_64/freeradius-sysusers.conf
(rev 0)
+++ community-staging-x86_64/freeradius-sysusers.conf 2022-11-17 10:02:26 UTC
(rev 1349312)
@@ -0,0 +1 @@
+u radiusd - "radius daemon" -
Copied: freeradius/repos/community-staging-x86_64/freeradius-tmpfiles.conf
(from rev 1349311, freeradius/trunk/freeradius-tmpfiles.conf)
===================================================================
--- community-staging-x86_64/freeradius-tmpfiles.conf
(rev 0)
+++ community-staging-x86_64/freeradius-tmpfiles.conf 2022-11-17 10:02:26 UTC
(rev 1349312)
@@ -0,0 +1,8 @@
+# configuration directory
+C /etc/raddb 0755 radiusd radiusd - /etc/raddb.default
+
+# log file
+f /var/log/radius/radius.log 0644 radiusd radiusd -
+
+# run directory
+d /run/radiusd 0755 radiusd radiusd -
Copied: freeradius/repos/community-staging-x86_64/freeradius.service (from rev
1349311, freeradius/trunk/freeradius.service)
===================================================================
--- community-staging-x86_64/freeradius.service (rev 0)
+++ community-staging-x86_64/freeradius.service 2022-11-17 10:02:26 UTC (rev
1349312)
@@ -0,0 +1,19 @@
+[Unit]
+Description=FreeRADIUS high performance RADIUS server.
+After=syslog.target network.target
+Documentation=man:radiusd(8) man:radiusd.conf(5)
https://wiki.freeradius.org/Home
https://networkradius.com/freeradius-documentation/
+
+[Service]
+Type=forking
+PIDFile=/run/radiusd/radiusd.pid
+ExecStartPre=/usr/bin/radiusd -C
+ExecStart=/usr/bin/radiusd -d /etc/raddb
+ExecReload=/usr/bin/radiusd -C
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+RestartSec=2
+ProtectSystem=full
+ProtectHome=on
+
+[Install]
+WantedBy=multi-user.target