summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-13 14:32:42 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:22:04 +0200
commit05c8eb4393f77314246b41b0465305f95e979df0 (patch)
tree7ffc7ce20494e49bcd1c32d6cbb5feb4bf202d78
parente965f6efc0942b08f5ab39a623833ebe8f39115e (diff)
downloadmeta-openembedded-05c8eb4393f77314246b41b0465305f95e979df0.tar.gz
xserver-nodm-init: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf (renamed from meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf)0
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service (renamed from meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service)0
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb18
-rw-r--r--meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend25
4 files changed, 16 insertions, 27 deletions
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf
index 3c0582a87..3c0582a87 100644
--- a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service
index 53e61d765..53e61d765 100644
--- a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
index 544ae7f8c..bbed445fe 100644
--- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
@@ -3,14 +3,16 @@ LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4SECTION = "x11" 4SECTION = "x11"
5 5
6PR = "r17" 6PR = "r21"
7 7
8SRC_URI = "file://xserver-nodm \ 8SRC_URI = "file://xserver-nodm \
9 file://gplv2-license.patch \ 9 file://gplv2-license.patch \
10 file://xserver-nodm.service \
11 file://xserver-nodm.conf \
10" 12"
11S = "${WORKDIR}" 13S = "${WORKDIR}"
12 14
13inherit allarch update-rc.d 15inherit allarch update-rc.d systemd
14 16
15INITSCRIPT_NAME = "xserver-nodm" 17INITSCRIPT_NAME = "xserver-nodm"
16INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." 18INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
@@ -19,6 +21,18 @@ INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
19do_install() { 21do_install() {
20 install -d ${D}${sysconfdir}/init.d 22 install -d ${D}${sysconfdir}/init.d
21 install xserver-nodm ${D}${sysconfdir}/init.d 23 install xserver-nodm ${D}${sysconfdir}/init.d
24
25 install -d ${D}${sysconfdir}/default
26 install -d ${D}${systemd_unitdir}/system
27 install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
28 install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${systemd_unitdir}/system
22} 29}
23 30
24RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" 31RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
32
33RPROVIDES_${PN} += "${PN}-systemd"
34RREPLACES_${PN} += "${PN}-systemd"
35RCONFLICTS_${PN} += "${PN}-systemd"
36SYSTEMD_SERVICE_${PN} = "xserver-nodm.service"
37
38FILES_${PN} += "${sysconfdir}/default/xserver-nodm"
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend
deleted file mode 100644
index cae5a3c15..000000000
--- a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend
+++ /dev/null
@@ -1,25 +0,0 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3PRINC := "${@int(PRINC) + 3}"
4
5inherit systemd
6
7SRC_URI += "file://xserver-nodm.service \
8 file://xserver-nodm.conf \
9"
10
11do_install_append() {
12 install -d ${D}${sysconfdir}/default
13 install -d ${D}${systemd_unitdir}/system
14 install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
15 install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${systemd_unitdir}/system
16}
17
18RPROVIDES_${PN} += "${PN}-systemd"
19RREPLACES_${PN} += "${PN}-systemd"
20RCONFLICTS_${PN} += "${PN}-systemd"
21SYSTEMD_SERVICE_${PN} = "xserver-nodm.service"
22
23FILES_${PN} += "${sysconfdir}/default/xserver-nodm"
24
25RDEPENDS_${PN} += "xserver-common (>= 1.30) xinit"