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

commit b29ca57f6ec4eba03ecabd5b0115e0625d70e8c7
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Nov 28 15:38:30 2010 +0000

lxdm-0.3.0-2-i686
*enable systemd support
*we can use some services for start lxdm/kdm....
*we can perhaps drop /etc/sysconfig/desktop and use this way
*now I've a desktop/network with systemd \o/

diff --git a/source/x11-extra/lxdm/FrugalBuild 
b/source/x11-extra/lxdm/FrugalBuild
index bedbe12..d7df6ab 100644
--- a/source/x11-extra/lxdm/FrugalBuild
+++ b/source/x11-extra/lxdm/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=lxdm
pkgver=0.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="LXDM - GUI login manager for LXDE"
depends=('gtk+2>=2.20.1' 'glibc' 'consolekit-x11' 'iso-codes')
rodepends=('lxde-common' 'gtk+2-theme-frugalware')
@@ -15,11 +15,12 @@ archs=('i686' 'ppc' 'x86_64')
_F_sourceforge_dirname="lxde"
Finclude sourceforge
url="http://lxde.org/";
-source=($source conf.diff pam lxdm)
+source=($source conf.diff pam lxdm l...@.service)
sha1sums=('a8bcf9e8dcda4203b846c09ee9d9d8c7e2374746' \
'477bef4bb4e5c5d4598d8d054ae354794777adc9' \
'057e8138c508174812fe1210ea8253f822d60c0e' \
-          'de20a394901337c298922e0ccf0cd5ac9e4f5c07')
+          'de20a394901337c298922e0ccf0cd5ac9e4f5c07' \
+          '69ab1ada5bdda45c05323a8792f3a4d21d5cbfc5')
backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm')

build()  {
@@ -31,6 +32,8 @@ build()  {
Fcp lxdm usr/sbin/lxdm
Frm etc/pam.d/lxdm
Fcp pam etc/pam.d/lxdm
+       Fmkdir etc/systemd/system/
+       Fcp l...@.service etc/systemd/system/
}

# optimization OK
diff --git a/source/x11-extra/lxdm/lxdm.install 
b/source/x11-extra/lxdm/lxdm.install
index 9681562..ee3c0d1 100644
--- a/source/x11-extra/lxdm/lxdm.install
+++ b/source/x11-extra/lxdm/lxdm.install
@@ -2,6 +2,7 @@ post_install()
{
sed 's|"/usr/bin/lxdm"$|"/usr/sbin/lxdm"|' -i /etc/sysconfig/desktop
sed 's|^#desktop="/usr/sbin/lxdm"$|desktop="/usr/sbin/lxdm"|' -i 
/etc/sysconfig/desktop
+       systemctl enable l...@.service
}

post_upgrade()
@@ -11,6 +12,7 @@ post_upgrade()

post_remove()
{
+       systemctl delete l...@.service
sed -i 's|^desktop="/usr/sbin/lxdm"$|#desktop="/usr/sbin/lxdm"|' 
/etc/sysconfig/desktop
}

diff --git a/source/x11-extra/lxdm/l...@.service 
b/source/x11-extra/lxdm/l...@.service
new file mode 100644
index 0000000..84dec9e
--- /dev/null
+++ b/source/x11-extra/lxdm/l...@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lxdm Display Manager on %I
+Requires=dev-%i.device
+After=dev-%i.device
+
+[Service]
+ExecStart=/usr/sbin/lxdm
+StandardOutput=syslog
+
+[Install]
+Alias=graphical.target.wants/l...@tty7.service
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to