kumquat-buildroot/package/tftpd/tftpd.mk
Thomas Petazzoni ac1c9a2af8 tftpd: use <pkg>_INSTALL_INIT_SYSV mechanism
Also make sure we use a full path for the destination of the
$(INSTALL) command.

[Peter: use install -m as noted by Yann]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-12-01 23:01:19 +01:00

31 lines
859 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
endef
define TFTPD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
endef
$(eval $(autotools-package))