# $Id: PKGBUILD 112168 2014-05-29 12:37:06Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Jason R Begley (jayray@digitalgoat.com> # Contributor: Daniel Micay pkgname=freeradius pkgver=3.0.3 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) md5sums=('6093be8d2a962035d6b1111789b3447c' 'SKIP' 'f959e89812bedfc9f8308076f78cd74e' 'e3f18e3a25df3b692e59f60605354708') 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 }