summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsbinitscripts_9.64.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/lsb/lsbinitscripts_9.64.bb')
-rw-r--r--meta/recipes-extended/lsb/lsbinitscripts_9.64.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.64.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.64.bb
new file mode 100644
index 0000000000..6db667c135
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.64.bb
@@ -0,0 +1,32 @@
1SUMMARY = "SysV init scripts which are only used in an LSB image"
2SECTION = "base"
3LICENSE = "GPLv2"
4DEPENDS = "popt glib-2.0"
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
7
8S="${WORKDIR}/initscripts-${PV}"
9SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-${PV}.tar.bz2/9cce2ae1009750e84be37c09a028757e/initscripts-${PV}.tar.bz2 \
10 file://functions.patch \
11 file://0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch \
12 "
13
14SRC_URI[md5sum] = "9cce2ae1009750e84be37c09a028757e"
15SRC_URI[sha256sum] = "48b59ce8157cfc58bbd4b1dfa58ad1087245761ae11c2033b66ae3864ea7e1cf"
16
17inherit update-alternatives
18
19ALTERNATIVE_PRIORITY = "100"
20ALTERNATIVE_${PN} = "functions"
21ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
22
23# Since we are only taking the patched version of functions, no need to
24# configure or compile anything so do not execute these
25do_configure[noexec] = "1"
26do_compile[noexec] = "1"
27
28do_install(){
29 install -d ${D}${sysconfdir}/init.d/
30 install -m 0644 ${S}/rc.d/init.d/functions ${D}${sysconfdir}/init.d/functions
31 sed -i 's,${base_bindir}/mountpoint,${bindir}/mountpoint,g' ${D}${sysconfdir}/init.d/functions
32}