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.

66 lines
1.5 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.4
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=d3c9cd0d971dfc786d7a5f4055c35d4e66aafc8102ac03473ef225bdf7edb26a
  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)/etc/init.d
  46. $(INSTALL_BIN) ./files/atftpd.init $(1)/etc/init.d/atftpd
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_BIN) ./files/atftpd.conf $(1)/etc/config/atftpd
  49. $(INSTALL_DIR) $(1)/srv/tftp
  50. $(INSTALL_DIR) $(1)/usr/sbin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)//usr/sbin/atftpd $(1)/usr/sbin/
  52. endef
  53. $(eval $(call BuildPackage,atftp))
  54. $(eval $(call BuildPackage,atftpd))