blob: 57824b3def2d2f448e404cc2adc2700de5b2710b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 108112 2014-03-22 20:07:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jason R Begley (jayray@digitalgoat.com>
pkgname=freeradius
pkgver=3.0.2
pkgrel=1
pkgdesc="The premier open source RADIUS server"
arch=('i686' 'x86_64')
url="http://www.freeradius.org/"
license=('GPL')
depends=('krb5' 'pth' 'net-snmp' 'postgresql-libs' 'libmariadbclient' 'talloc')
makedepends=('libpcap' 'unixodbc' 'python2')
optdepends=('libpcap' 'unixodbc' 'python2')
options=('!makeflags')
install=$pkgname.install
source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
freeradius.tmpfiles
freeradius.service
https://github.com/FreeRADIUS/freeradius-server/commit/ff5147c9e5088c7.patch)
md5sums=('c6b25a532e65ce6bfef4f422b7240d4d'
'SKIP'
'f959e89812bedfc9f8308076f78cd74e'
'e3f18e3a25df3b692e59f60605354708'
'9dc9a08bee8b0c3e4822c94f272e1fd6')
prepare() {
cd $srcdir/freeradius-server-$pkgver
# patch -p1 <$srcdir/ff5147c9e5088c7.patch
}
build() {
cd $srcdir/freeradius-server-$pkgver
./configure --with-system-libtool --with-system-libltdl \
--prefix=/usr --enable-heimdal-krb5 \
--localstatedir=/var \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libdir=/usr/lib/freeradius \
--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 -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
}
|