Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=1695c696e8d0408ff2bc653d8acce7d4ce258368
commit 1695c696e8d0408ff2bc653d8acce7d4ce258368 Author: Devil505 <[email protected]> Date: Sat May 5 09:34:44 2012 +0200 lightdm-1.2.2-7-i686 * updating install file with hermier's advices diff --git a/source/xfce4/lightdm/FrugalBuild b/source/xfce4/lightdm/FrugalBuild index e5c55f3..897c75a 100644 --- a/source/xfce4/lightdm/FrugalBuild +++ b/source/xfce4/lightdm/FrugalBuild @@ -3,7 +3,7 @@ pkgname=lightdm pkgver=1.2.2 -pkgrel=6 +pkgrel=7 pkgdesc="A lightweight display manager." rodepends=('lightdm-gtk-greeter') depends=('webkit-gtk3' 'dbus-glib' 'libxklavier' 'accountsservice' 'xorg-server-xephyr') diff --git a/source/xfce4/lightdm/lightdm.install b/source/xfce4/lightdm/lightdm.install index b3d130e..cc822a1 100644 --- a/source/xfce4/lightdm/lightdm.install +++ b/source/xfce4/lightdm/lightdm.install @@ -2,6 +2,11 @@ post_install() { sed 's|"/usr/bin/lightdm"$|"/usr/sbin/lightdm"|' -i /etc/sysconfig/desktop sed 's|^#desktop="/usr/sbin/lightdm"$|desktop="/usr/sbin/lightdm"|' -i /etc/sysconfig/desktop + getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm + getent passwd lightdm > /dev/null 2>&1 || useradd -c 'LightDM Display Manager' -u 620 -g lightdm -d /var/run/lightdm -s /sbin/nologin lightdm + passwd -l lightdm > /dev/null + chown -R lightdm:lightdm /var/run/lightdm > /dev/null + chmod +r /etc/lightdm/lightdm.conf } post_upgrade() @@ -12,6 +17,8 @@ post_upgrade() post_remove() { sed -i 's|^desktop="/usr/sbin/lightdm"$|#desktop="/usr/sbin/lightdm"|' /etc/sysconfig/desktop + getent passwd lightdm > /dev/null 2>&1 && userdel lightdm + getent group lightdm > /dev/null 2>&1 && groupdel lightdm } op=$1 _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
