diff options
Diffstat (limited to 'community/freeradius')
-rw-r--r-- | community/freeradius/PKGBUILD | 10 | ||||
-rw-r--r-- | community/freeradius/freeradius.service | 15 |
2 files changed, 22 insertions, 3 deletions
diff --git a/community/freeradius/PKGBUILD b/community/freeradius/PKGBUILD index a79adcaed..43586cdaf 100644 --- a/community/freeradius/PKGBUILD +++ b/community/freeradius/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 76509 2012-09-20 10:48:44Z spupykin $ +# $Id: PKGBUILD 77120 2012-10-05 10:52:14Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Jason R Begley (jayray@digitalgoat.com> pkgname=freeradius pkgver=2.2.0 -pkgrel=2 +pkgrel=3 pkgdesc="The premier open source RADIUS server" arch=('i686' 'x86_64') url="http://www.freeradius.org/" @@ -17,11 +17,13 @@ install=$pkgname.install source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig} radiusd freeradius.tmpfiles + freeradius.service krb5-build-fix.patch) md5sums=('0fb333fe6a64eb2b1dd6ef67f7bca119' '5dd57af81ba075102581fec45316ba7b' 'f1a6530b1b69d2fa793aa45b2de379bb' 'f959e89812bedfc9f8308076f78cd74e' + '39eba6d34f8249781e9e917646465632' 'c6a61de7576933f59154a53bfc12a2d2') build() { @@ -44,5 +46,7 @@ package() { chmod o+r $pkgdir/etc/raddb/* mv $pkgdir/etc/raddb $pkgdir/etc/raddb.default rm -rf $pkgdir/var/run - install -Dm0644 $srcdir/freeradius.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf + + install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service + install -Dm0644 $srcdir/$pkgname.tmpfiles $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf } diff --git a/community/freeradius/freeradius.service b/community/freeradius/freeradius.service new file mode 100644 index 000000000..635b6d6f8 --- /dev/null +++ b/community/freeradius/freeradius.service @@ -0,0 +1,15 @@ +[Unit] +Description=FreeRADIUS high performance RADIUS server. +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/radiusd/radiusd.pid +ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd +ExecStartPre=/usr/sbin/radiusd -C +ExecStart=/usr/sbin/radiusd -d /etc/raddb +ExecReload=/usr/sbin/radiusd -C +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |