From b764a223c0b6b4a0001839d8b0fd83b604fbb219 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Sep 2013 02:08:54 -0700 Subject: Sat Sep 7 02:08:44 PDT 2013 --- community/freeradius/PKGBUILD | 4 ++-- community/freeradius/freeradius.install | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'community/freeradius') diff --git a/community/freeradius/PKGBUILD b/community/freeradius/PKGBUILD index 6ecba36c1..13cd9b3d2 100644 --- a/community/freeradius/PKGBUILD +++ b/community/freeradius/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 91902 2013-05-29 10:03:34Z spupykin $ +# $Id: PKGBUILD 96844 2013-09-06 12:39:09Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Jason R Begley (jayray@digitalgoat.com> pkgname=freeradius pkgver=2.2.0 -pkgrel=8 +pkgrel=9 pkgdesc="The premier open source RADIUS server" arch=('i686' 'x86_64') url="http://www.freeradius.org/" diff --git a/community/freeradius/freeradius.install b/community/freeradius/freeradius.install index cb7590e77..8ec764b81 100644 --- a/community/freeradius/freeradius.install +++ b/community/freeradius/freeradius.install @@ -5,13 +5,17 @@ post_install() { touch var/log/radius/radius.log chown -R radiusd:radiusd var/log/radius/radius.log - [ -d etc/raddb ] || cp -a etc/raddb.default etc/raddb + [ -d etc/raddb ] || { + cp -a etc/raddb.default etc/raddb + chown -R radiusd:radiusd etc/raddb + } - true + systemd-tmpfiles --create freeradius.conf } post_remove() { userdel radiusd - groupdel radiusd - true + grep "^radiusd:" etc/group >/dev/null && groupdel radiusd + systemd-tmpfiles --create freeradius.conf + echo "-- You may want to remove /var/lib/radiusd and /etc/raddb" } -- cgit v1.2.3-54-g00ecf