elsa: add systemd service and add RCONFLICTS/RREPLACES with xserver-nodm-init

* 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>
This commit is contained in:
Martin Jansa
2011-11-30 00:29:11 +01:00
committed by Koen Kooi
parent d118787722
commit 1bc18fca9e
2 changed files with 27 additions and 1 deletions
@@ -0,0 +1,8 @@
[Unit]
Description=Login manager for Enlightenment
[Service]
ExecStart=/usr/sbin/elsa
[Install]
WantedBy=multi-user.target
+19 -1
View File
@@ -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"