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.

57 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=3
  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:=http://freefr.dl.sourceforge.net/project/atftp/
  15. PKG_MD5SUM:=367bf401965fbed04585b1229c2191a8
  16. PKG_BUILD_DEPENDS:=libpcre libreadline
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/atftp/Default
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=TFTP
  22. SUBMENU:=File Transfer
  23. endef
  24. define Package/atftp
  25. $(call Package/atftp/Default)
  26. DEPENDS:=+libreadline +libncurses
  27. TITLE+= client
  28. endef
  29. define Package/atftpd
  30. $(call Package/atftp/Default)
  31. DEPENDS:=+libpcre +libpthread
  32. TITLE+= server
  33. endef
  34. CONFIGURE_ARGS += \
  35. --disable-libwrap
  36. define Package/atftp/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftp $(1)/usr/sbin/
  39. endef
  40. define Package/atftpd/install
  41. $(INSTALL_DIR) $(1)/etc
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atftpd $(1)/usr/sbin/
  44. endef
  45. $(eval $(call BuildPackage,atftp))
  46. $(eval $(call BuildPackage,atftpd))