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.

50 lines
1.5 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:=2017-12-07
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/ap51-flash/ap51-flash.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=f94f9c99711d14a3c0186318d822d67d9d0ce391
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_MIRROR_HASH:=15786a0ecae9be5ed4e8f32940624d1a1c83da924294df08003616a863947074
  17. PKG_MAINTAINER:=Russell Senior <russell@personaltelco.net>
  18. PKG_LICENSE:=GPL-3.0+
  19. PKG_LICENSE_FILES:=LICENSES/preferred/GPL-3.0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/ap51-flash
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=A tool for flashing (nearly) all ap51/ap61 based routers
  25. URL:=http://dev.cloudtrax.com/wiki/ap51-flash-station
  26. endef
  27. # pass optimization flags
  28. MAKE_FLAGS += \
  29. REVISION="$(PKG_VERSION)" \
  30. ap51-flash
  31. define Package/ap51-flash/install
  32. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin \
  33. $(1)/usr/lib/ap51-flash
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/
  35. $(INSTALL_BIN) ./files/ap51-flash.init $(1)/etc/init.d/ap51-flash
  36. $(INSTALL_BIN) ./files/ap51-flash.sh $(1)/usr/lib/ap51-flash/ap51-flash.sh
  37. $(INSTALL_DATA) ./files/ap51-flash.config $(1)/etc/config/ap51-flash
  38. endef
  39. define Package/ap51-flash/conffiles
  40. /etc/config/ap51-flash
  41. endef
  42. $(eval $(call BuildPackage,ap51-flash))