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.

70 lines
1.6 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.5
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=93c87a4fb18218414e008e01c995dadd231ba4c752d0f894b34416d1e6d3038a
  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_CONF) ./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. define Package/atftpd/conffiles
  54. /etc/config/atftpd
  55. endef
  56. $(eval $(call BuildPackage,atftp))
  57. $(eval $(call BuildPackage,atftpd))