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.

61 lines
1.3 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.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=1ad080674e9f974217b3a703e7356c6c8446dc5e7b2014d0d06e1bfaa11b5041
  14. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/atftp/Default
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=TFTP
  24. SUBMENU:=File Transfer
  25. endef
  26. define Package/atftp
  27. $(call Package/atftp/Default)
  28. DEPENDS:=+libreadline +libncurses
  29. TITLE+= client
  30. endef
  31. define Package/atftpd
  32. $(call Package/atftp/Default)
  33. DEPENDS:=+libpcre +libpthread
  34. TITLE+= server
  35. endef
  36. CONFIGURE_ARGS += \
  37. --disable-debug \
  38. --disable-libwrap
  39. define Package/atftp/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/atftp $(1)/usr/bin/
  42. endef
  43. define Package/atftpd/install
  44. $(INSTALL_DIR) $(1)/etc
  45. $(INSTALL_DIR) $(1)/usr/sbin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)//usr/sbin/atftpd $(1)/usr/sbin/
  47. endef
  48. $(eval $(call BuildPackage,atftp))
  49. $(eval $(call BuildPackage,atftpd))