kumquat-buildroot/package/tftpd/tftpd.mk
Kelvin Cheung 0659ca799f tftpd: install TFTP client as well
This patch installs TFTP client as well and overrides BusyBox
implementations if BusyBox is enabled.

[Thomas: fix typo SYSKLOGD_DEPENDENCIES -> TFTPD_DEPENDENCIES noticed
by Baruch.]

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-10-23 22:11:44 +02:00

28 lines
801 B
Makefile

################################################################################
#
# tftpd
#
################################################################################
TFTPD_VERSION = 5.2
TFTPD_SOURCE = tftp-hpa-$(TFTPD_VERSION).tar.xz
TFTPD_SITE = $(BR2_KERNEL_MIRROR)/software/network/tftp/tftp-hpa
TFTPD_CONF_OPTS = --without-tcpwrappers
ifneq ($(BR2_INET_IPV6),y)
TFTPD_CONF_OPTS += --without-ipv6
endif
# Override BusyBox implementations if BusyBox is enabled.
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
TFTPD_DEPENDENCIES += busybox
endif
define TFTPD_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp
$(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
$(INSTALL) -D package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/
endef
$(eval $(autotools-package))