2006-11-09 20:34:59 +00:00
|
|
|
#
|
2011-11-13 22:16:16 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-11-09 20:34:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tftp-hpa
|
2008-01-03 19:47:09 +00:00
|
|
|
PKG_VERSION:=0.48
|
2011-11-13 22:16:16 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-11-09 20:34:59 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/software/network/tftp
|
2008-01-03 19:47:09 +00:00
|
|
|
PKG_MD5SUM:=73dd29dfa9062a174163f6a267e0b5f7
|
2006-11-09 20:34:59 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-11-14 09:09:31 +00:00
|
|
|
define Package/tftp-hpa/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 05:50:28 +00:00
|
|
|
SUBMENU:=File Transfer
|
2009-08-14 13:25:19 +00:00
|
|
|
DEPENDS:=+libreadline
|
2006-11-14 09:09:31 +00:00
|
|
|
URL:=http://www.kernel.org/pub/software/network/tftp
|
|
|
|
endef
|
|
|
|
|
2006-11-09 20:34:59 +00:00
|
|
|
define Package/tftp-hpa
|
2006-11-14 09:09:31 +00:00
|
|
|
$(call Package/tftp-hpa/Default)
|
|
|
|
TITLE:=An enhanced version of the BSD TFTP client
|
2006-11-09 20:34:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tftpd-hpa
|
2006-11-14 09:09:31 +00:00
|
|
|
$(call Package/tftp-hpa/Default)
|
|
|
|
TITLE:=An enhanced version of the BSD TFTP server
|
2006-11-09 20:34:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-11-14 09:09:31 +00:00
|
|
|
$(call Build/Configure/Default, \
|
2009-08-14 13:25:19 +00:00
|
|
|
--without-tcpwrappers, \
|
2006-11-14 09:09:31 +00:00
|
|
|
CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
|
|
|
|
)
|
2006-11-09 20:34:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tftp-hpa/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tftp/tftp $(1)/usr/bin/tftp-hpa
|
2006-11-09 20:34:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tftpd-hpa/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd/tftpd $(1)/usr/sbin/tftpd-hpa
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/tftpd-hpa.init $(1)/etc/init.d/tftpd-hpa
|
2006-11-09 20:34:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,tftp-hpa))
|
|
|
|
$(eval $(call BuildPackage,tftpd-hpa))
|