diff options
author | root <root@rshg054.dnsready.net> | 2012-12-25 02:32:08 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-25 02:32:08 -0800 |
commit | 6fbdd2899f39266e458531dcffefb85b9ce8d1b9 (patch) | |
tree | 7d290e717ddd4dab90362a017be197c551dd2ae0 /community/znc | |
parent | 6003fa8908f984a4696fade78b69a8803eabcc6c (diff) |
Tue Dec 25 02:27:55 PST 2012
Diffstat (limited to 'community/znc')
-rw-r--r-- | community/znc/PKGBUILD | 4 | ||||
-rw-r--r-- | community/znc/znc.install | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/community/znc/PKGBUILD b/community/znc/PKGBUILD index 049b311dc..b3edff7b1 100644 --- a/community/znc/PKGBUILD +++ b/community/znc/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 80926 2012-12-07 02:04:08Z seblu $ +# $Id: PKGBUILD 81614 2012-12-25 00:34:19Z foutrelis $ # Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org> # Contributor: Kaiting Chen <kaitocracy@gmail.com> # Contributor: mickael9 <mickael9 at gmail dot com> pkgname=znc pkgver=1.0 -pkgrel=2 +pkgrel=4 pkgdesc='An IRC bouncer with modules & scripts support' url='http://en.znc.in/wiki/index.php/ZNC' license=('GPL2') diff --git a/community/znc/znc.install b/community/znc/znc.install index 92bc0572a..e5dd6575a 100644 --- a/community/znc/znc.install +++ b/community/znc/znc.install @@ -3,7 +3,19 @@ # arg 1: the new package version post_install() { getent group znc >/dev/null || groupadd -g 136 znc - getent passwd znc >/dev/null || useradd -d /var/empty -u 136 -g 136 znc + getent passwd znc >/dev/null || useradd -r -d /var/lib/znc -u 136 -g 136 znc + [ -d /var/lib/znc ] || install -dm 750 -o znc -g znc /var/lib/znc + echo "==> Use 'znc --makeconf' as user znc to generate your first config" + true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + if [ "`vercmp $2 1.0-4`" -lt 0 ]; then + [ -d /var/lib/znc ] || install -dm 750 -o znc -g znc /var/lib/znc + usermod -d /var/lib/znc znc 2>/dev/null && echo '==> znc home directory has moved to /var/lib/znc' + fi true } |