summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-08-17 16:53:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-19 09:29:19 -0700
commitce4c33ed8a54205698db16791178c96156083440 (patch)
tree11f94646f9f24acc8d37a8c57a3b45796128e541 /meta/recipes-core
parentbe71f55f27a7a7d9a7bbf736837d7358b5e9020f (diff)
downloadpoky-ce4c33ed8a54205698db16791178c96156083440.tar.gz
sysvinit: Change ${PN} to ${BPN} in file names
Some files in sysvinit are named with ${PN}. In multilib case, ${PN} will be prefixed with "lib32-" or "lib64-". Use ${BPN} instead. (From OE-Core rev: c7bcf6e7c851269178af99ed9096207ab14fe76c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb52
1 files changed, 26 insertions, 26 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
index bda8a519b6..663e298e4a 100644
--- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
@@ -5,7 +5,7 @@ SECTION = "base"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ 6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
7 file://COPYRIGHT;endline=15;md5=349c872e0066155e1818b786938876a4" 7 file://COPYRIGHT;endline=15;md5=349c872e0066155e1818b786938876a4"
8PR = "r4" 8PR = "r5"
9 9
10RDEPENDS_${PN} = "${PN}-inittab" 10RDEPENDS_${PN} = "${PN}-inittab"
11 11
@@ -65,41 +65,41 @@ do_install () {
65 install -d ${D}${sysconfdir}/rc$level.d 65 install -d ${D}${sysconfdir}/rc$level.d
66 ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd 66 ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd
67 done 67 done
68 mv ${D}${base_sbindir}/init ${D}${base_sbindir}/init.${PN} 68 mv ${D}${base_sbindir}/init ${D}${base_sbindir}/init.${BPN}
69 mv ${D}${base_bindir}/pidof ${D}${base_bindir}/pidof.${PN} 69 mv ${D}${base_bindir}/pidof ${D}${base_bindir}/pidof.${BPN}
70 mv ${D}${base_sbindir}/halt ${D}${base_sbindir}/halt.${PN} 70 mv ${D}${base_sbindir}/halt ${D}${base_sbindir}/halt.${BPN}
71 mv ${D}${base_sbindir}/reboot ${D}${base_sbindir}/reboot.${PN} 71 mv ${D}${base_sbindir}/reboot ${D}${base_sbindir}/reboot.${BPN}
72 mv ${D}${base_sbindir}/shutdown ${D}${base_sbindir}/shutdown.${PN} 72 mv ${D}${base_sbindir}/shutdown ${D}${base_sbindir}/shutdown.${BPN}
73 mv ${D}${base_sbindir}/poweroff ${D}${base_sbindir}/poweroff.${PN} 73 mv ${D}${base_sbindir}/poweroff ${D}${base_sbindir}/poweroff.${BPN}
74 mv ${D}${bindir}/last ${D}${bindir}/last.${PN} 74 mv ${D}${bindir}/last ${D}${bindir}/last.${BPN}
75 mv ${D}${bindir}/mesg ${D}${bindir}/mesg.${PN} 75 mv ${D}${bindir}/mesg ${D}${bindir}/mesg.${BPN}
76 mv ${D}${bindir}/wall ${D}${bindir}/wall.${PN} 76 mv ${D}${bindir}/wall ${D}${bindir}/wall.${BPN}
77} 77}
78 78
79pkg_postinst_${PN} () { 79pkg_postinst_${PN} () {
80 update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200 80 update-alternatives --install ${base_sbindir}/halt halt halt.${BPN} 200
81 update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200 81 update-alternatives --install ${base_sbindir}/reboot reboot reboot.${BPN} 200
82 update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200 82 update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${BPN} 200
83 update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200 83 update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${BPN} 200
84 update-alternatives --install ${bindir}/last last last.${PN} 200 84 update-alternatives --install ${bindir}/last last last.${BPN} 200
85 update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200 85 update-alternatives --install ${bindir}/mesg mesg mesg.${BPN} 200
86 update-alternatives --install ${bindir}/wall wall wall.${PN} 200 86 update-alternatives --install ${bindir}/wall wall wall.${BPN} 200
87} 87}
88 88
89pkg_prerm_${PN} () { 89pkg_prerm_${PN} () {
90 update-alternatives --remove halt halt.${PN} 90 update-alternatives --remove halt halt.${BPN}
91 update-alternatives --remove reboot reboot.${PN} 91 update-alternatives --remove reboot reboot.${BPN}
92 update-alternatives --remove shutdown shutdown.${PN} 92 update-alternatives --remove shutdown shutdown.${BPN}
93 update-alternatives --remove poweroff poweroff.${PN} 93 update-alternatives --remove poweroff poweroff.${BPN}
94 update-alternatives --remove last last.${PN} 94 update-alternatives --remove last last.${BPN}
95 update-alternatives --remove mesg mesg.${PN} 95 update-alternatives --remove mesg mesg.${BPN}
96 update-alternatives --remove wall wall.${PN} 96 update-alternatives --remove wall wall.${BPN}
97} 97}
98 98
99pkg_postinst_sysvinit-pidof () { 99pkg_postinst_sysvinit-pidof () {
100 update-alternatives --install ${base_bindir}/pidof pidof pidof.${PN} 200 100 update-alternatives --install ${base_bindir}/pidof pidof pidof.${BPN} 200
101} 101}
102 102
103pkg_prerm_sysvinit-pidof () { 103pkg_prerm_sysvinit-pidof () {
104 update-alternatives --remove pidof pidof.${PN} 104 update-alternatives --remove pidof pidof.${BPN}
105} 105}