summaryrefslogtreecommitdiffstats
path: root/core/modules/iptables
diff options
context:
space:
mode:
authorJonathan Bauer2019-05-23 14:15:18 +0200
committerJonathan Bauer2019-05-23 14:15:18 +0200
commit0594681640a253a564a917c3226c342b24aeda0a (patch)
tree4842168afbb50c5d1d95269ab3ae4242a8089686 /core/modules/iptables
parent[networkd-dispatcher] retry reverse lookup (diff)
downloadmltk-0594681640a253a564a917c3226c342b24aeda0a.tar.gz
mltk-0594681640a253a564a917c3226c342b24aeda0a.tar.xz
mltk-0594681640a253a564a917c3226c342b24aeda0a.zip
[iptables] move iptables to its own module
Diffstat (limited to 'core/modules/iptables')
-rw-r--r--core/modules/iptables/module.build20
-rw-r--r--core/modules/iptables/module.conf7
-rw-r--r--core/modules/iptables/module.conf.ubuntu3
3 files changed, 30 insertions, 0 deletions
diff --git a/core/modules/iptables/module.build b/core/modules/iptables/module.build
new file mode 100644
index 00000000..4012ec43
--- /dev/null
+++ b/core/modules/iptables/module.build
@@ -0,0 +1,20 @@
+#!/bin/bash
+fetch_source() {
+ :
+}
+
+build() {
+ local BIN_LOCATION
+ for BIN in $REQUIRED_BINARIES; do
+ BIN_LOCATION="$(which ${BIN})"
+ pinfo "$BIN_LOCATION"
+ if [ -z "$BIN_LOCATION" ]; then
+ perror "'$BIN' not found on the system. Install it."
+ fi
+ tarcopy "$(get_link_chain ${BIN_LOCATION})" "${MODULE_BUILD_DIR}"
+ done
+}
+
+post_copy() {
+ :
+}
diff --git a/core/modules/iptables/module.conf b/core/modules/iptables/module.conf
new file mode 100644
index 00000000..353859e6
--- /dev/null
+++ b/core/modules/iptables/module.conf
@@ -0,0 +1,7 @@
+REQUIRED_BINARIES="
+ iptables
+ ip6tables
+"
+REQUIRED_SYSTEM_FILES+="
+ /usr/lib/x86_64-linux-gnu/xtables
+"
diff --git a/core/modules/iptables/module.conf.ubuntu b/core/modules/iptables/module.conf.ubuntu
new file mode 100644
index 00000000..01b6d246
--- /dev/null
+++ b/core/modules/iptables/module.conf.ubuntu
@@ -0,0 +1,3 @@
+REQUIRED_INSTALLED_PACKAGES="
+ iptables
+"