Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-node-tuning
  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 $(GLUONDIR)/include/package.mk
  7. define Package/ffho-node-tuning
  8. SECTION:=ffho
  9. CATEGORY:=FFHO
  10. TITLE:=Freifunk Hochstift Node Tuning-Settings
  11. DEPENDS:=+gluon-core +busybox
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  14. endef
  15. define Package/ffho-node-tuning/description
  16. As its name states, this packages applies some config optimizations (like
  17. tweaking kernal knobs via sysctl) on the nodes.
  18. For the most knobs Gluon sticks for OpenWRT defaults for good reasons, as
  19. some values need to be set according to the environment of the nodes (e.g.
  20. the network's size). As OpenWRT basically aims at providing a stable system
  21. for standalone WiFi access-points, the system's default configuration may
  22. not be appropriate anymore the larger the network grows, though.
  23. endef
  24. define Build/Prepare
  25. mkdir -p $(PKG_BUILD_DIR)
  26. endef
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  31. endef
  32. define Package/ffho-node-tuning/install
  33. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  34. endef
  35. $(eval $(call BuildPackage,ffho-node-tuning))