summaryrefslogtreecommitdiff
path: root/recipes-core/busybox/busybox_%.bbappend
blob: a841f8ab1eb58864026fde32948a339b9741bef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PR .= ".mlinux5"
PACKAGES =+ "busybox-ifplugd"
FILESEXTRAPATHS_prepend := ":${THISDIR}/files:"
RDEPENDS_${PN} += "bash"
DEPENDS += "libtirpc"

#
# MD: temporally disable IPCS/IPCRM (needed for ntpd/gpsd according to John)
#     because those are also provided by util-linux which is in RDEPENDS for docker
#
SRC_URI += "file://disable-ipc-for-docker.cfg \
"

SRC_URI += "file://udhcpd.conf.example \
            file://ifplugd.action \
            file://ifplugd.default \
            file://ifplugd.init \
            file://eth0.conf \
            file://eth1.conf.example \
"

do_install_append () {
	install -m 644 ${WORKDIR}/udhcpd.conf.example ${D}${sysconfdir}/udhcpd.conf.example
	install -m 600 ${WORKDIR}/udhcpd.conf.example ${D}${sysconfdir}/udhcpd.conf
        install -d -m 755 ${D}${sysconfdir}/init.d
        install -d -m 755 ${D}${sysconfdir}/ifplugd
        install -d -m 755 ${D}${sysconfdir}/default
        install -m 755 ${WORKDIR}/ifplugd.init ${D}${sysconfdir}/init.d/ifplugd
        install -m 755 ${WORKDIR}/ifplugd.default ${D}${sysconfdir}/default/ifplugd
        install -m 755 ${WORKDIR}/ifplugd.action ${D}${sysconfdir}/ifplugd
        install -m 755 ${WORKDIR}/eth0.conf ${D}${sysconfdir}/ifplugd
        install -m 644 ${WORKDIR}/eth1.conf.example ${D}${sysconfdir}/ifplugd
}

export EXTRA_CFLAGS += "-I${STAGING_INCDIR}/tirpc"
 

RDEPENDS_${PN}-ifplugd += "bash"
# PACKAGES =+ "${PN}-ifplugd"
inherit update-rc.d
INITSCRIPT_PACKAGES += "${PN}-ifplugd"
INITSCRIPT_NAME_${PN}-ifplugd = "ifplugd"
INITSCRIPT_PARAMS_${PN}-ifplugd = "defaults 3"

FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd/eth0.conf \
               ${sysconfdir}/ifplugd/eth1.conf.example \
               ${sysconfdir}/ifplugd/ifplugd.action \
               ${sysconfdir}/default/ifplugd \
               ${sysconfdir}/init.d/ifplugd \
               "

FILES_${PN}-udhcpc =+ "${sysconfidir}/udhcpd.conf \
                       ${sysconfidir}/udhcpd.conf.example \
                      "


CONFFILES_${PN}-ifplugd = "${sysconfdir}/ifplugd/eth0.conf \
               ${sysconfdir}/ifplugd/ifplugd.action \
               ${sysconfdir}/default/ifplugd \
               ${sysconfidir}/udhcpd.conf \
               "

CONFFILES_${PN}-udhcpc =+ "${sysconfidir}/udhcpd.conf"