busybox: bump bbappend to 1.21.1
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox_1.21.1.bbappend
1 SRC_URI += "file://busybox-telnetd.xinetd.in \
2             file://busybox-telnetd@.service \
3             file://busybox-telnetd.socket \
4             file://0001-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \
5             file://0002-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch \
6             file://0003-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch \
7             file://0004-udhcpc-obtain-hostname-from-OS-by-default.patch \
8             file://0005-mount-don-t-pass-option-nofail-to-the-kernel.patch \
9             file://0006-mount-don-t-pass-option-auto-to-kernel.patch"
10
11 inherit systemd xinetd
12
13 do_install_append() {
14         if grep -q "CONFIG_CRONTAB=y" ${WORKDIR}/defconfig; then
15                 install -d ${D}${sysconfdir}/cron/crontabs
16         fi
17         if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
18                 install -d ${D}${systemd_unitdir}/system
19                 ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service
20                 install -m644 ${WORKDIR}/busybox-telnetd@.service ${D}${systemd_unitdir}/system
21                 install -m644 ${WORKDIR}/busybox-telnetd.socket ${D}${systemd_unitdir}/system
22         fi
23 }
24
25 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
26
27 SYSTEMD_PACKAGES += "${PN}"
28 SYSTEMD_SERVICE_${PN} = "busybox-telnetd.socket"
29 XINETD_SERVICE_${PN} = "busybox-telnetd"