2016-07-29 22:19:06 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gluon-radv-filterd
|
|
|
|
PKG_VERSION:=1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2017-02-08 16:05:25 +00:00
|
|
|
include ../gluon.mk
|
2016-07-29 22:19:06 +00:00
|
|
|
|
|
|
|
define Package/gluon-radv-filterd
|
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
|
|
|
TITLE:=Filter IPv6 router advertisements
|
2017-12-20 14:08:18 +00:00
|
|
|
DEPENDS:=+gluon-ebtables +libgluonutil +libbatadv +libnl-tiny
|
2016-07-29 22:19:06 +00:00
|
|
|
endef
|
|
|
|
|
2017-12-20 14:08:18 +00:00
|
|
|
MAKE_VARS += \
|
|
|
|
LIBNL_NAME="libnl-tiny" \
|
|
|
|
LIBNL_GENL_NAME="libnl-tiny"
|
|
|
|
|
2016-07-29 22:19:06 +00:00
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2017-03-31 05:41:36 +00:00
|
|
|
$(call Build/Compile/Default)
|
2016-11-26 11:59:47 +00:00
|
|
|
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
|
2016-07-29 22:19:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-radv-filterd/install
|
|
|
|
$(CP) ./files/* $(1)/
|
2016-11-26 11:59:47 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
|
2016-07-29 22:19:06 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-radv-filterd $(1)/usr/sbin/
|
2017-02-09 18:29:24 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/respondd
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/radv-filterd.so
|
2016-07-29 22:19:06 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gluon-radv-filterd/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
$(call GluonCheckSite,check_site.lua)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gluon-radv-filterd))
|