gluon/package/gluon-radv-priorityd/Makefile
Jan-Philipp Litza 99ddcc4f4e Add package gluon-radv-priorityd
This package tries to prioritize the router advertisements of the
gateway selected by the B.A.T.M.A.N. advanced gateway selection. It does
this by inserting rules into the firewall to hand all router
advertisements via the NFQUEUE mechanism to a userspace daemon, which
then examines them and changes the preference field to "high" if
appropriate.
2016-04-04 16:31:32 +02:00

42 lines
1003 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-radv-priorityd
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/gluon-radv-priorityd
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Prioritize router advertisements
DEPENDS:=+gluon-core +kmod-ipt-nfqueue +libnetfilter-queue +kmod-ipt-extra +iptables-mod-nfqueue
endef
define Package/gluon-radv-priorityd/description
Gluon community wifi mesh firmware framework: prioritize router advertisements
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Build/Compile
CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
endef
define Package/gluon-radv-priorityd/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radv-priorityd $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,gluon-radv-priorityd))