summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-03 15:09:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-03 11:09:06 +0100
commit143e13abb64d3d1a6d8b59878442858bd35dd8bc (patch)
tree1a672e414964e6323d361ec359a974517cb68323 /meta/recipes-extended
parent44be08b5e221bb810706672db0016e7fc14b5e86 (diff)
downloadpoky-143e13abb64d3d1a6d8b59878442858bd35dd8bc.tar.gz
at: inherit update-rc.d to handle sysv init script
Inherit update-rc.d.bbclass to handle sysv init script. Also make the 'at' daemon start in runlevel 2,3,4,5 instead of S. (From OE-Core rev: a761d5fcd1880c8cee96f1f3198093fd92d08c77) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/at/at/atd.init (renamed from meta/recipes-extended/at/at/S99at)0
-rw-r--r--meta/recipes-extended/at/at_3.1.15.bb11
2 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-extended/at/at/S99at b/meta/recipes-extended/at/at/atd.init
index eca379b3cd..eca379b3cd 100644
--- a/meta/recipes-extended/at/at/S99at
+++ b/meta/recipes-extended/at/at/atd.init
diff --git a/meta/recipes-extended/at/at_3.1.15.bb b/meta/recipes-extended/at/at_3.1.15.bb
index 1080df44c5..0c37d6d912 100644
--- a/meta/recipes-extended/at/at_3.1.15.bb
+++ b/meta/recipes-extended/at/at_3.1.15.bb
@@ -20,7 +20,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \
20 file://posixtm.c \ 20 file://posixtm.c \
21 file://posixtm.h \ 21 file://posixtm.h \
22 file://file_replacement_with_gplv2.patch \ 22 file://file_replacement_with_gplv2.patch \
23 file://S99at \ 23 file://atd.init \
24 file://atd.service \ 24 file://atd.service \
25 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" 25 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
26 26
@@ -37,7 +37,10 @@ EXTRA_OECONF += "ac_cv_path_SENDMAIL=/bin/true \
37 --with-atspool=/var/spool/at/spool \ 37 --with-atspool=/var/spool/at/spool \
38 ac_cv_header_security_pam_appl_h=${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} " 38 ac_cv_header_security_pam_appl_h=${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} "
39 39
40inherit autotools-brokensep systemd 40inherit autotools-brokensep systemd update-rc.d
41
42INITSCRIPT_NAME = "atd"
43INITSCRIPT_PARAMS = "defaults"
41 44
42SYSTEMD_SERVICE_${PN} = "atd.service" 45SYSTEMD_SERVICE_${PN} = "atd.service"
43 46
@@ -51,9 +54,7 @@ do_install () {
51 oe_runmake -e "IROOT=${D}" install 54 oe_runmake -e "IROOT=${D}" install
52 55
53 install -d ${D}${sysconfdir}/init.d 56 install -d ${D}${sysconfdir}/init.d
54 install -d ${D}${sysconfdir}/rcS.d 57 install -m 0755 ${WORKDIR}/atd.init ${D}${sysconfdir}/init.d/atd
55 install -m 0755 ${WORKDIR}/S99at ${D}${sysconfdir}/init.d/atd
56 ln -sf ../init.d/atd ${D}${sysconfdir}/rcS.d/S99at
57 58
58 # install systemd unit files 59 # install systemd unit files
59 install -d ${D}${systemd_unitdir}/system 60 install -d ${D}${systemd_unitdir}/system