include $(TOPDIR)/rules.mk PKG_NAME:=ffho-node-tuning PKG_VERSION:=1 PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/ffho-node-tuning SECTION:=ffho CATEGORY:=Gluon TITLE:=Freifunk Hochstift Node Tuning-Settings DEPENDS:=+gluon-core +busybox MAINTAINER:=Freifunk Hochstift URL:=https://git.c3pb.de/freifunk-pb/ffho-packages SOURCE:=git@git.c3pb.de:freifunk-pb/ffho-packages.git endef define Package/ffho-node-tuning/description As its name states, this packages applies some config optimizations (like tweaking kernal knobs via sysctl) on the nodes. For the most knobs Gluon sticks for OpenWRT defaults for good reasons, as some values need to be set according to the environment of the nodes (e.g. the network's size). As OpenWRT basically aims at providing a stable system for standalone WiFi access-points, the system's default configuration may not be appropriate anymore the larger the network grows, though. endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef define Build/Configure endef define Build/Compile endef define Package/ffho-node-tuning/postinst endef define Package/ffho-node-tuning/install $(INSTALL_DIR) $(1)/lib/gluon/upgrade/ $(INSTALL_BIN) ./files//lib/gluon/upgrade/* $(1)/lib/gluon/upgrade/ endef $(eval $(call BuildPackage,ffho-node-tuning))