mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added community/freeradius
This commit is contained in:
parent
fa8e1fffad
commit
b4f01f1dc3
4 changed files with 90 additions and 0 deletions
62
community/freeradius/PKGBUILD
Normal file
62
community/freeradius/PKGBUILD
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Jason R Begley (jayray@digitalgoat.com>
|
||||
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - explicitly link v5/v6 with libatomic
|
||||
|
||||
pkgname=freeradius
|
||||
pkgver=3.0.18
|
||||
pkgrel=1
|
||||
pkgdesc='The premier open source RADIUS server'
|
||||
arch=('x86_64')
|
||||
url="https://freeradius.org/"
|
||||
license=('GPL')
|
||||
depends=('krb5' 'pth' 'net-snmp' 'postgresql-libs' 'mariadb-libs' 'talloc'
|
||||
'libpcap' 'libwbclient')
|
||||
makedepends=('unixodbc' 'python2' 'curl' 'json-c' 'samba')
|
||||
optdepends=('unixodbc: for ODBC'
|
||||
'python2: for Python'
|
||||
'json-c: rlm_rest module'
|
||||
'curl: for REST')
|
||||
options=('!makeflags')
|
||||
validpgpkeys=('BF2384EC6938B9744B03E2A620E37C25995B4F85') # FreeRADIUS - Package Signing [...] <packages@freeradius.org>
|
||||
source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
|
||||
'freeradius-sysusers.conf'
|
||||
'freeradius-tmpfiles.conf'
|
||||
'freeradius.service')
|
||||
sha256sums=('695149c9f4dabe7131028b0c4e43d9ae149d0d06da5dfc97f10eed2fbee6c011'
|
||||
'SKIP'
|
||||
'573c05df429405d8647f5b52f68f7ad13bf7392314d30154df770ab170d793f8'
|
||||
'f536a9aa972e3e42a6b1a6d8ee17166eb721c7cba2e80f60473811497c7bd8bc'
|
||||
'c469e1a3f9edad769da01c324779babe783ee85a9b53ce4638d3d2d09c7c8d4b')
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/freeradius-server-$pkgver
|
||||
|
||||
[[ $CARCH == arm || $CARCH == armv6h ]] && LIBS="-latomic"
|
||||
LIBS=$LIBS ./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--libdir=/usr/lib/freeradius \
|
||||
--localstatedir=/var \
|
||||
--enable-heimdal-krb5 \
|
||||
--with-system-libltdl \
|
||||
--with-system-libtool \
|
||||
--with-udpfromto
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/freeradius-server-$pkgver
|
||||
|
||||
make install R="$pkgdir"
|
||||
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
|
||||
}
|
1
community/freeradius/freeradius-sysusers.conf
Normal file
1
community/freeradius/freeradius-sysusers.conf
Normal file
|
@ -0,0 +1 @@
|
|||
u radiusd - "radius daemon" /var/lib/radiusd
|
8
community/freeradius/freeradius-tmpfiles.conf
Normal file
8
community/freeradius/freeradius-tmpfiles.conf
Normal file
|
@ -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 -
|
19
community/freeradius/freeradius.service
Normal file
19
community/freeradius/freeradius.service
Normal file
|
@ -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
|
Loading…
Reference in a new issue