blob: 6db667c135f06e8d5866bd5daff2c4a392f151ea [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "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}