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 $(GLUONDIR)/include/package.mk define Package/ffho-node-tuning SECTION:=ffho CATEGORY:=FFHO TITLE:=Freifunk Hochstift Node Tuning-Settings DEPENDS:=+gluon-core +busybox MAINTAINER:=Freifunk Hochstift URL:=https://git.c3pb.de/freifunk-pb/ffho-packages 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 $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/) endef define Package/ffho-node-tuning/install $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/ endef $(eval $(call BuildPackage,ffho-node-tuning))