Patchwork [meta-efl,04/16] elsa: add systemd service and add RCONFLICTS/RREPLACES with xserver-nodm-init

login
register
mail settings
Submitter Martin Jansa
Date Dec. 6, 2011, 9:57 a.m.
Message ID <9e3a6b890464734afdadc89f19db0339e1dcaabc.1323165311.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/16275/
State Accepted
Commit 1bc18fca9e935ed2c2cfb92517da26737cf9d2be
Headers show

Comments

Martin Jansa - Dec. 6, 2011, 9:57 a.m.
* add RCONFLICTS/RREPLACES also to PN-systemd, because that's where file
  collision with xserver-nodm-init is, in PN it's just functional
  collision
* fixes upgrade path for task-x11-utils

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-efl/recipes-efl/efl/elsa/xserver-nodm.service |    8 ++++++++
 meta-efl/recipes-efl/efl/elsa_svn.bb               |   20 +++++++++++++++++++-
 2 files changed, 27 insertions(+), 1 deletions(-)
 create mode 100644 meta-efl/recipes-efl/efl/elsa/xserver-nodm.service

Patch

diff --git a/meta-efl/recipes-efl/efl/elsa/xserver-nodm.service b/meta-efl/recipes-efl/efl/elsa/xserver-nodm.service
new file mode 100644
index 0000000..0b9c0f5
--- /dev/null
+++ b/meta-efl/recipes-efl/efl/elsa/xserver-nodm.service
@@ -0,0 +1,8 @@ 
+[Unit]
+Description=Login manager for Enlightenment
+
+[Service]
+ExecStart=/usr/sbin/elsa
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-efl/recipes-efl/efl/elsa_svn.bb b/meta-efl/recipes-efl/efl/elsa_svn.bb
index e2f6fd7..f885daf 100644
--- a/meta-efl/recipes-efl/efl/elsa_svn.bb
+++ b/meta-efl/recipes-efl/efl/elsa_svn.bb
@@ -7,14 +7,32 @@  SECTION = "e/apps"
 inherit e gettext
 SRC_URI = "${E_SVN}/trunk/PROTO;module=${SRCNAME};proto=http;scmdata=keep \
   file://0001-pam-use-common-auth-instead-of-system-auth.patch \
+  file://xserver-nodm.service \
 "
 S = "${WORKDIR}/${SRCNAME}"
 
 EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"
 
-PR = "r1"
+PR = "r2"
 PV = "0.0.4+svnr${SRCPV}"
 SRCREV = "${EFL_SRCREV}"
 
+do_install_append() {
+        install -d ${D}${base_libdir}/systemd/system/
+        install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${base_libdir}/systemd/system/xserver-nodm.service
+}
+
+inherit systemd
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "xserver-nodm.service"
+
+PACKAGES =+ "${PN}-systemd"
+FILES_${PN}-systemd += "${base_libdir}/systemd"
+RDEPENDS_${PN}-systemd += "${PN}"
+
 RDEPENDS_${PN} += "${PN}-themes sessreg xauth"
 CONFFILES_${PN} += "${sysconfdir}/elsa.conf"
+RCONFLICTS_${PN} += "xserver-nodm-init"
+RREPLACES_${PN} += "xserver-nodm-init"
+RCONFLICTS_${PN}-systemd += "xserver-nodm-init"
+RREPLACES_${PN}-systemd += "xserver-nodm-init"