1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:=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))