Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=ryuotesting11.git;a=commitdiff;h=adde650d87b948ffe3741582d3bc146757e593cc

commit adde650d87b948ffe3741582d3bc146757e593cc
Author: James Buren <[email protected]>
Date:   Sun Aug 25 12:37:34 2013 -0500

xdm-1.1.11-5-x86_64
* add xdm scriptlet

diff --git a/source/x11/xdm/FrugalBuild b/source/x11/xdm/FrugalBuild
index 338d346..2696826 100644
--- a/source/x11/xdm/FrugalBuild
+++ b/source/x11/xdm/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=xdm
pkgver=1.1.11
-pkgrel=4
+pkgrel=5
pkgdesc="X.Org xdm application"
url="http://xorg.freedesktop.org";
groups=('x11' 'xorg-core' 'xorg-apps')
diff --git a/source/x11/xdm/xdm.install b/source/x11/xdm/xdm.install
new file mode 100644
index 0000000..60e74a8
--- /dev/null
+++ b/source/x11/xdm/xdm.install
@@ -0,0 +1,27 @@
+post_install()
+{
+       if [ ! -h /etc/systemd/system/display-manager.service ]; then
+               systemctl enable xdm.service
+       fi
+}
+
+post_upgrade()
+{
+       post_install
+
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+pre_remove()
+{
+       systemctl --no-reload disable xdm.service >/dev/null 2>&1
+}
+
+post_remove()
+{
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to