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.

47 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2011 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:=ap51-flash
  9. PKG_VERSION:=2018.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/ap51-flash/ap51-flash/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=e38e48a12d7c7b8e189f5538b78bbf00548044414d9ededa18ec9a5b5886afaa
  14. PKG_MAINTAINER:=Russell Senior <russell@personaltelco.net>
  15. PKG_LICENSE:=GPL-3.0+
  16. PKG_LICENSE_FILES:=LICENSES/preferred/GPL-3.0
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ap51-flash
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=A tool for flashing (nearly) all ap51/ap61 based routers
  22. URL:=https://ap51-flash.readthedocs.io/en/latest/
  23. endef
  24. # pass optimization flags
  25. MAKE_FLAGS += \
  26. REVISION="$(PKG_VERSION)" \
  27. ap51-flash
  28. define Package/ap51-flash/install
  29. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin \
  30. $(1)/usr/lib/ap51-flash
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/
  32. $(INSTALL_BIN) ./files/ap51-flash.init $(1)/etc/init.d/ap51-flash
  33. $(INSTALL_BIN) ./files/ap51-flash.sh $(1)/usr/lib/ap51-flash/ap51-flash.sh
  34. $(INSTALL_DATA) ./files/ap51-flash.config $(1)/etc/config/ap51-flash
  35. endef
  36. define Package/ap51-flash/conffiles
  37. /etc/config/ap51-flash
  38. endef
  39. $(eval $(call BuildPackage,ap51-flash))