Date: Monday, April 10, 2023 @ 20:28:09
  Author: eworm
Revision: 1444584

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 1444583, freeradius/trunk/0001-python-3-10.patch)
  
freeradius/repos/community-staging-x86_64/0002-Use-accessor-function-for-PyFrameObject-members.patch
    (from rev 1444583, 
freeradius/trunk/0002-Use-accessor-function-for-PyFrameObject-members.patch)
  freeradius/repos/community-staging-x86_64/PKGBUILD
    (from rev 1444583, freeradius/trunk/PKGBUILD)
  freeradius/repos/community-staging-x86_64/freeradius-sysusers.conf
    (from rev 1444583, freeradius/trunk/freeradius-sysusers.conf)
  freeradius/repos/community-staging-x86_64/freeradius-tmpfiles.conf
    (from rev 1444583, freeradius/trunk/freeradius-tmpfiles.conf)
  freeradius/repos/community-staging-x86_64/freeradius.service
    (from rev 1444583, freeradius/trunk/freeradius.service)
  freeradius/repos/community-staging-x86_64/keys/

------------------------------------------------------------+
 0001-python-3-10.patch                                     |   13 +
 0002-Use-accessor-function-for-PyFrameObject-members.patch |   41 +++++
 PKGBUILD                                                   |   77 +++++++++++
 freeradius-sysusers.conf                                   |    1 
 freeradius-tmpfiles.conf                                   |    8 +
 freeradius.service                                         |   19 ++
 6 files changed, 159 insertions(+)

Copied: freeradius/repos/community-staging-x86_64/0001-python-3-10.patch (from 
rev 1444583, 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     2023-04-10 20:28:09 UTC 
(rev 1444584)
@@ -0,0 +1,13 @@
+diff --git a/src/modules/rlm_python/configure 
b/src/modules/rlm_python/configure
+index 636acb13c8..9240afc015 100755
+--- a/src/modules/rlm_python/configure
++++ b/src/modules/rlm_python/configure
+@@ -2994,7 +2994,7 @@ $as_echo "$as_me: Python sys.prefix \"${PY_PREFIX}\"" 
>&6;}
+       { $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-Use-accessor-function-for-PyFrameObject-members.patch
 (from rev 1444583, 
freeradius/trunk/0002-Use-accessor-function-for-PyFrameObject-members.patch)
===================================================================
--- 
community-staging-x86_64/0002-Use-accessor-function-for-PyFrameObject-members.patch
                         (rev 0)
+++ 
community-staging-x86_64/0002-Use-accessor-function-for-PyFrameObject-members.patch
 2023-04-10 20:28:09 UTC (rev 1444584)
@@ -0,0 +1,41 @@
+From fac2aff7b099af6e678290e0ddd186c747bbd3d9 Mon Sep 17 00:00:00 2001
+From: Nick Porter <[email protected]>
+Date: Fri, 13 Jan 2023 18:05:38 +0000
+Subject: Use accessor function for PyFrameObject members on python >= 3.10
+
+---
+ src/modules/rlm_python/rlm_python.c | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/src/modules/rlm_python/rlm_python.c 
b/src/modules/rlm_python/rlm_python.c
+index 2adba0e..96992cb 100644
+--- a/src/modules/rlm_python/rlm_python.c
++++ b/src/modules/rlm_python/rlm_python.c
+@@ -234,13 +234,27 @@ static void python_error_log(void)
+ 
+               for (; ptb != NULL; ptb = ptb->tb_next, fnum++) {
+                       PyFrameObject *cur_frame = ptb->tb_frame;
++#if PY_VERSION_HEX >= 0x030A0000
++                      PyCodeObject *code = PyFrame_GetCode(cur_frame);
++#endif
+ 
+                       ERROR("[%ld] %s:%d at %s()",
+                               fnum,
++#if PY_VERSION_HEX >= 0x030A0000
++                              PyUnicode_AsUTF8(code->co_filename),
++#else
+                               
PyString_AsString(cur_frame->f_code->co_filename),
++#endif
+                               PyFrame_GetLineNumber(cur_frame),
++#if PY_VERSION_HEX >= 0x30A0000
++                              PyUnicode_AsUTF8(code->co_name)
++#else
+                               PyString_AsString(cur_frame->f_code->co_name)
++#endif
+                       );
++#if PY_VERSION_HEX >= 0x030A0000
++                      Py_XDECREF(code);
++#endif
+               }
+       }
+ 

Copied: freeradius/repos/community-staging-x86_64/PKGBUILD (from rev 1444583, 
freeradius/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-10 20:28:09 UTC (rev 1444584)
@@ -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.2
+pkgrel=2
+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')
+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-Use-accessor-function-for-PyFrameObject-members.patch'
+        'freeradius-sysusers.conf'
+        'freeradius-tmpfiles.conf'
+        'freeradius.service')
+sha256sums=('8b31cb10b7b5ecfb03e22a9756e49484f98410e697798f3fd0ce1b3a135ba1fe'
+            'SKIP'
+            'a84b6489f58083639d9b1854b1bd8610a0f672bcf2a6d902a78da0868fca1317'
+            '5ae5a2860969b8f4973a873d9adde2ad3a8a2af2cf6f669627c619745d549382'
+            '8ecaca94c7d0f4806b326685312dd4e543ce9c6c183d3d7ad01c1a0197bdfb94'
+            'f536a9aa972e3e42a6b1a6d8ee17166eb721c7cba2e80f60473811497c7bd8bc'
+            'c469e1a3f9edad769da01c324779babe783ee85a9b53ce4638d3d2d09c7c8d4b')
+
+prepare() {
+  cd "$srcdir"/freeradius-server-$pkgver
+
+  patch -Np1 < ../0001-python-3-10.patch
+  patch -Np1 < ../0002-Use-accessor-function-for-PyFrameObject-members.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 1444583, freeradius/trunk/freeradius-sysusers.conf)
===================================================================
--- community-staging-x86_64/freeradius-sysusers.conf                           
(rev 0)
+++ community-staging-x86_64/freeradius-sysusers.conf   2023-04-10 20:28:09 UTC 
(rev 1444584)
@@ -0,0 +1 @@
+u radiusd - "radius daemon" -

Copied: freeradius/repos/community-staging-x86_64/freeradius-tmpfiles.conf 
(from rev 1444583, freeradius/trunk/freeradius-tmpfiles.conf)
===================================================================
--- community-staging-x86_64/freeradius-tmpfiles.conf                           
(rev 0)
+++ community-staging-x86_64/freeradius-tmpfiles.conf   2023-04-10 20:28:09 UTC 
(rev 1444584)
@@ -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 
1444583, freeradius/trunk/freeradius.service)
===================================================================
--- community-staging-x86_64/freeradius.service                         (rev 0)
+++ community-staging-x86_64/freeradius.service 2023-04-10 20:28:09 UTC (rev 
1444584)
@@ -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

Reply via email to