diff options
author | root <root@rshg054.dnsready.net> | 2011-09-03 23:14:38 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-03 23:14:38 +0000 |
commit | 3b18be1752c9fd9fa74eb1314ca97dd61e9ce912 (patch) | |
tree | 695198e2351a85f6c3a8fe7ba53ba5e4a4ec2bdd /gnome-unstable/gdm/gdm.install | |
parent | b37ee9de1a430956d9e5958ebd9d7e0dbfc79327 (diff) |
Sat Sep 3 23:14:38 UTC 2011
Diffstat (limited to 'gnome-unstable/gdm/gdm.install')
-rw-r--r-- | gnome-unstable/gdm/gdm.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnome-unstable/gdm/gdm.install b/gnome-unstable/gdm/gdm.install new file mode 100644 index 000000000..b9732be50 --- /dev/null +++ b/gnome-unstable/gdm/gdm.install @@ -0,0 +1,29 @@ +pkgname=gdm + +post_install() { + getent group gdm >/dev/null 2>&1 || groupadd -g 120 gdm + getent passwd gdm > /dev/null 2>&1 || usr/sbin/useradd -c 'Gnome Display Manager' -u 120 -g gdm -d /var/lib/gdm -s /sbin/nologin gdm + passwd -l gdm > /dev/null + chown -R gdm:gdm /var/lib/gdm > /dev/null + + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + gconfpkg --install ${pkgname} + glib-compile-schemas usr/share/glib-2.0/schemas +} + +pre_remove() { + if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then + gconfpkg --uninstall ${pkgname} + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + getent passwd gdm >/dev/null 2>&1 && userdel gdm + getent group gdm >/dev/null 2>&1 && groupdel gdm +} |