Makefile 1.4 KB

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