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

commit 74a3fc96cff4ae1c2d389d68a77a364481996615
Author: James Buren <[email protected]>
Date:   Thu Aug 22 23:24:10 2013 -0500

kdebase-workspace-4.10.5-3-x86_64
* add a scriptlet for KDM subpkg

diff --git a/source/kde/kdebase-workspace/FrugalBuild 
b/source/kde/kdebase-workspace/FrugalBuild
index 3017d14..8d8587b 100644
--- a/source/kde/kdebase-workspace/FrugalBuild
+++ b/source/kde/kdebase-workspace/FrugalBuild
@@ -9,7 +9,7 @@ USE_GPSD=${USE_GPSD:-"n"}
USE_NETWORKMANAGER=${USE_NETWORKMANAGER:-"y"}

pkgname=kdebase-workspace
-pkgrel=2
+pkgrel=3
pkgdesc="Programs specific for the KDE4 desktop."
groups=('kde' 'kde-minimal')
archs=('i686' 'x86_64')
@@ -321,7 +321,7 @@ subrodepends=("${subrodepends[@]}" "kde4-pam")
subgroups=("${subgroups[@]}" 'kde kde-core')
subreplaces=("${subreplaces[@]}" '')
subarchs=("${subarchs[@]}" 'i686 x86_64')
-subinstall=("${subinstall[@]}" "")
+subinstall=("${subinstall[@]}" "kdm.install")

## libs/solid again? kdelibs has one also .. ?
## libkde.. , or libsolid-.. ? libworkspacesolid.. ?
diff --git a/source/kde/kdebase-workspace/kdm.install 
b/source/kde/kdebase-workspace/kdm.install
new file mode 100644
index 0000000..ed06049
--- /dev/null
+++ b/source/kde/kdebase-workspace/kdm.install
@@ -0,0 +1,27 @@
+post_install()
+{
+       if [ ! -h /etc/systemd/system/display-manager.service ]; then
+               systemctl enable kdm.service
+       fi
+}
+
+post_upgrade()
+{
+       post_install
+
+       systemctl daemon-reload >/dev/null 2>&1
+}
+
+pre_remove()
+{
+       systemctl --no-reload disable kdm.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