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 $(INCLUDE_DIR)/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. endef
  31. define Package/ffho-node-tuning/install
  32. $(INSTALL_DIR) $(1)/lib/gluon/upgrade/
  33. $(INSTALL_BIN) ./files//lib/gluon/upgrade/* $(1)/lib/gluon/upgrade/
  34. endef
  35. $(eval $(call BuildPackage,ffho-node-tuning))