Makefile 895 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=freifunk-mapupdate
  5. PKG_RELEASE:=1
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(INCLUDE_DIR)/package.mk
  8. define Package/freifunk-mapupdate
  9. SECTION:=luci
  10. CATEGORY:=LuCI
  11. SUBMENU:=9. Freifunk
  12. TITLE:=Update script for freifunkmap
  13. DEPENDS:=+olsrd-mod-nameservice
  14. endef
  15. define Package/freifunk-mapupdate/description
  16. This script updates the freifunkmap (also known as the global map, see http://map.berlin.freifunk.net) every hour. Config file is /etc/config/freifunk-mapupdate.
  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/freifunk-mapupdate/install
  26. $(CP) ./files/* $(1)/
  27. endef
  28. $(eval $(call BuildPackage,freifunk-mapupdate))