summaryrefslogtreecommitdiff
path: root/community/lxdm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
committerroot <root@rshg054.dnsready.net>2012-09-27 00:42:08 -0700
commitbd8faf795abf6d91abdc52bc968829cc2efae4bb (patch)
treec073a5288d3917e9aa98d3762479ad083c5ceafe /community/lxdm
parent483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff)
Thu Sep 27 00:42:07 PDT 2012
Diffstat (limited to 'community/lxdm')
-rw-r--r--community/lxdm/PKGBUILD4
-rw-r--r--community/lxdm/lxdm.install26
2 files changed, 12 insertions, 18 deletions
diff --git a/community/lxdm/PKGBUILD b/community/lxdm/PKGBUILD
index 4a6d1c707..7fb73b5b1 100644
--- a/community/lxdm/PKGBUILD
+++ b/community/lxdm/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 74705 2012-08-02 08:51:42Z bpiotrowski $
+# $Id: PKGBUILD 76688 2012-09-26 21:14:05Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: kiefer <jorgelmadrid@gmail.com>
pkgname=lxdm
pkgver=0.4.1
-pkgrel=14
+pkgrel=15
pkgdesc='Lightweight X11 Display Manager'
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/lxdm/"
diff --git a/community/lxdm/lxdm.install b/community/lxdm/lxdm.install
index eaf2339cd..4d1285dc5 100644
--- a/community/lxdm/lxdm.install
+++ b/community/lxdm/lxdm.install
@@ -1,24 +1,18 @@
-pkgname=lxdm
-
post_install() {
- if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
- groupadd lxdm
- chown root:lxdm /etc/lxdm/lxdm.conf
- fi
- chown -R root:lxdm /var/lib/lxdm > /dev/null
- chmod +r /etc/lxdm/lxdm.conf
+ if ! getent group lxdm > /dev/null ; then
+ groupadd --system lxdm
+ chgrp -R lxdm /var/lib/lxdm
+ chgrp lxdm /etc/lxdm/lxdm.conf
+ chmod +r /etc/lxdm/lxdm.conf
+ fi
}
post_upgrade() {
- post_install
+ post_install $1
}
post_remove() {
- getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null
- return 0
+ if ! getent group lxdm > /dev/null ; then
+ groupdel lxdm
+ fi
}
-
-op=$1
-shift
-
-$op "$@"