|
@@ -11,16 +11,15 @@ include $(INCLUDE_DIR)/package.mk
|
|
|
define Package/ffho-ebtables-net-rules
|
|
|
SECTION:=ffho
|
|
|
CATEGORY:=FFHO
|
|
|
- TITLE:=FFHO net-specific ebtables rules to filter unreasonable L2 traffic.
|
|
|
+ TITLE:=Ebtables rules to filter unreasonable L2 traffic.
|
|
|
DEPENDS:=+gluon-core +gluon-ebtables
|
|
|
MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
|
|
|
URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
|
|
|
endef
|
|
|
|
|
|
define Package/ffho-ebtables-net-rules/description
|
|
|
- This package adds an additional layer-2 filter-ruleset to prevent traffic,
|
|
|
- which is not destined for any Freifunk Paderborn layer-3 specific target,
|
|
|
- from entering the network via the nodes.
|
|
|
+ This package adds an additional layer-2 filter-ruleset to prevent unreasonable
|
|
|
+ traffic entering the network via the nodes.
|
|
|
endef
|
|
|
|
|
|
define Build/Prepare
|
|
@@ -34,11 +33,12 @@ define Build/Compile
|
|
|
endef
|
|
|
|
|
|
define Package/ffho-ebtables-net-rules/install
|
|
|
- $(INSTALL_DIR) $(1)/lib/gluon/ebtables/
|
|
|
- $(CP) ./files/lib/gluon/ebtables/100-ffho-net-chain $(1)/lib/gluon/ebtables/
|
|
|
- $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv4-space $(1)/lib/gluon/ebtables/
|
|
|
- $(CP) ./files/lib/gluon/ebtables/110-ffho-net-allow-ipv6-spaces $(1)/lib/gluon/ebtables/
|
|
|
- $(CP) ./files/lib/gluon/ebtables/400-add-ffho-net-chain $(1)/lib/gluon/ebtables/
|
|
|
+ $(CP) ./files/* $(1)/
|
|
|
+endef
|
|
|
+
|
|
|
+define Package/ffho-ebtables-net-rules/postinst
|
|
|
+#!/bin/sh
|
|
|
+$(call GluonCheckSite,check_site.lua)
|
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,ffho-ebtables-net-rules))
|