enigma2: 4.3.1r13
[opendreambox.git] / meta-opendreambox / recipes-core / busybox / busybox_%.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             file://0007-speed_table-remove-hack-which-made-large-baud-rates-.patch \
11             file://0008-speed_table-add-baud-rates-up-to-4-MBit-s-as-defined.patch \
12             file://0009-dd-behave-like-GNU-coreutils-with-conv-fsync.patch \
13             file://opendreambox.cfg"
14
15 inherit xinetd
16
17 do_install_append() {
18         if grep -q "CONFIG_CRONTAB=y" ${B}/.config; then
19                 install -d ${D}${sysconfdir}/cron/crontabs
20         fi
21         if grep -q "CONFIG_TELNETD=y" ${B}/.config; then
22                 install -d ${D}${systemd_unitdir}/system
23                 ln -sf /dev/null ${D}${systemd_unitdir}/system/busybox-telnetd.service
24                 install -m644 ${WORKDIR}/busybox-telnetd@.service ${D}${systemd_unitdir}/system
25                 install -m644 ${WORKDIR}/busybox-telnetd.socket ${D}${systemd_unitdir}/system
26         fi
27 }
28
29 FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
30
31 SYSTEMD_PACKAGES += "${PN}"
32 SYSTEMD_SERVICE_${PN} = "busybox-telnetd.socket"
33 XINETD_SERVICE_${PN} = "busybox-telnetd"