You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=atftp
  9. PKG_VERSION:=0.7.1
  10. PKG_RELEASE:=5
  11. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  15. PKG_HASH:=ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/atftp/Default
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=TFTP
  21. SUBMENU:=File Transfer
  22. endef
  23. define Package/atftp
  24. $(call Package/atftp/Default)
  25. DEPENDS:=+libreadline +libncurses
  26. TITLE+= client
  27. endef
  28. define Package/atftpd
  29. $(call Package/atftp/Default)
  30. DEPENDS:=+libpcre +libpthread
  31. TITLE+= server
  32. endef
  33. CONFIGURE_ARGS += \
  34. --disable-libwrap
  35. define Package/atftp/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftp $(1)/usr/sbin/
  38. endef
  39. define Package/atftpd/install
  40. $(INSTALL_DIR) $(1)/etc
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftpd $(1)/usr/sbin/
  43. endef
  44. $(eval $(call BuildPackage,atftp))
  45. $(eval $(call BuildPackage,atftpd))