Makefile 1.0 KB

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