diff options
-rw-r--r-- | meta-oe/recipes-extended/zram/zram/zram.service (renamed from meta-systemd/meta-oe/recipes-extended/zram/zram/zram.service) | 0 | ||||
-rw-r--r-- | meta-oe/recipes-extended/zram/zram_0.1.bb | 13 | ||||
-rw-r--r-- | meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend | 20 |
3 files changed, 11 insertions, 22 deletions
diff --git a/meta-systemd/meta-oe/recipes-extended/zram/zram/zram.service b/meta-oe/recipes-extended/zram/zram/zram.service index 4a19367d9..4a19367d9 100644 --- a/meta-systemd/meta-oe/recipes-extended/zram/zram/zram.service +++ b/meta-oe/recipes-extended/zram/zram/zram.service | |||
diff --git a/meta-oe/recipes-extended/zram/zram_0.1.bb b/meta-oe/recipes-extended/zram/zram_0.1.bb index 85262647c..115e6437f 100644 --- a/meta-oe/recipes-extended/zram/zram_0.1.bb +++ b/meta-oe/recipes-extended/zram/zram_0.1.bb | |||
@@ -2,22 +2,31 @@ DESCRIPTION = "Linux zram compressed in-memory swap" | |||
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" |
4 | 4 | ||
5 | inherit allarch update-rc.d | 5 | inherit allarch update-rc.d systemd |
6 | 6 | ||
7 | RDEPENDS_${PN} = "util-linux-swaponoff kmod kernel-module-zram" | 7 | RDEPENDS_${PN} = "util-linux-swaponoff kmod kernel-module-zram" |
8 | 8 | ||
9 | PR = "r0" | 9 | PR = "r3" |
10 | 10 | ||
11 | SRC_URI = " \ | 11 | SRC_URI = " \ |
12 | file://init \ | 12 | file://init \ |
13 | file://zram.service \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | do_install () { | 16 | do_install () { |
16 | # Sysvinit | 17 | # Sysvinit |
17 | install -d ${D}${sysconfdir}/init.d | 18 | install -d ${D}${sysconfdir}/init.d |
18 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram | 19 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram |
20 | |||
21 | install -d ${D}${systemd_unitdir}/system | ||
22 | install -m 0644 ${WORKDIR}/zram.service ${D}${systemd_unitdir}/system | ||
19 | } | 23 | } |
20 | 24 | ||
21 | FILES_${PN} = "${sysconfdir}/init.d" | 25 | FILES_${PN} = "${sysconfdir}/init.d" |
22 | INITSCRIPT_NAME = "zram" | 26 | INITSCRIPT_NAME = "zram" |
23 | INITSCRIPT_PARAMS = "start 05 2 3 4 5 . stop 22 0 1 6 ." | 27 | INITSCRIPT_PARAMS = "start 05 2 3 4 5 . stop 22 0 1 6 ." |
28 | |||
29 | RPROVIDES_${PN} += "${PN}-systemd" | ||
30 | RREPLACES_${PN} += "${PN}-systemd" | ||
31 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
32 | SYSTEMD_SERVICE_${PN} = "zram.service" | ||
diff --git a/meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend b/meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend deleted file mode 100644 index 227c1c7c6..000000000 --- a/meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 2}" | ||
4 | |||
5 | inherit systemd | ||
6 | |||
7 | SRC_URI += " \ | ||
8 | file://zram.service \ | ||
9 | " | ||
10 | |||
11 | RPROVIDES_${PN} += "${PN}-systemd" | ||
12 | RREPLACES_${PN} += "${PN}-systemd" | ||
13 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
14 | SYSTEMD_SERVICE_${PN} = "zram.service" | ||
15 | |||
16 | do_install_append() { | ||
17 | install -d ${D}${systemd_unitdir}/system | ||
18 | install -m 0644 ${WORKDIR}/zram.service ${D}${systemd_unitdir}/system | ||
19 | } | ||
20 | |||