busybox: update bbappend for 1.20.2
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox_1.20.2.bbappend
1 PRINC := "${@int(PRINC) + 1}"
2
3 SRC_URI += "file://busybox-telnetd.xinetd.in \
4             file://busybox-telnetd@.service \
5             file://busybox-telnetd.socket \
6             file://0002-ifplugd-move-read_pid-to-libbb-pidfile.c-and-rename-.patch \
7             file://0003-ifupdown-dhcp_down-wait-until-udhcpc-has-been-killed.patch \
8             file://0004-udhcpc-calculate-broadcast-address-if-not-given-by-s.patch \
9             file://0005-udhcpc-obtain-hostname-from-OS-by-default.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         install -d ${D}${systemd_unitdir}/system
18         ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service
19 }
20
21 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
22
23 SYSTEMD_PACKAGES += "${PN}-systemd"
24 SYSTEMD_SERVICE_${PN}-systemd = "busybox-telnetd.socket"
25
26 XINETD_PACKAGES = "${PN}-xinetd"
27 XINETD_SERVICE_${PN}-xinetd = "busybox-telnetd"