From 0594681640a253a564a917c3226c342b24aeda0a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 23 May 2019 14:15:18 +0200 Subject: [iptables] move iptables to its own module --- core/modules/iptables/module.build | 20 ++++++++++++++++++++ core/modules/iptables/module.conf | 7 +++++++ core/modules/iptables/module.conf.ubuntu | 3 +++ 3 files changed, 30 insertions(+) create mode 100644 core/modules/iptables/module.build create mode 100644 core/modules/iptables/module.conf create mode 100644 core/modules/iptables/module.conf.ubuntu (limited to 'core/modules/iptables') 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 +" -- cgit v1.2.3-55-g7522