Makefile 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 $(INCLUDE_DIR)/package.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. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-ath9k-blackout-workaround/description
  16. Restartes the wifi if possible blckout is detected.
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. endef
  25. define Package/ffho-ath9k-blackout-workaround/install
  26. $(CP) ./files/* $(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))