Makefile 975 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-ath9k-blackout-workaround
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(TOPDIR)/../package/gluon.mk
  6. define Package/ffho-ath9k-blackout-workaround
  7. SECTION:=ffho
  8. CATEGORY:=Workarounds
  9. TITLE:=ATH9K-Blackout workaround
  10. DEPENDS:=+gluon-core +micrond
  11. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  12. endef
  13. define Package/ffho-ath9k-blackout-workaround/description
  14. Restartes the wifi if possible blckout is detected.
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  23. endef
  24. define Package/ffho-ath9k-blackout-workaround/install
  25. $(CP) ./files/* $(1)/
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. endef
  28. define Package/ffho-ath9k-blackout-workaround/postinst
  29. #!/bin/sh
  30. $(call GluonCheckSite,check_site.lua)
  31. endef
  32. $(eval $(call BuildPackage,ffho-ath9k-blackout-workaround))