]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: install iptables-apply script and manpage
authorLaurence J. Lane <ljlane@debian.org>
Wed, 4 Dec 2019 18:17:53 +0000 (19:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 Dec 2019 10:44:41 +0000 (11:44 +0100)
We have the iptables-apply script in the tree (and in the release tarball), but
is not being installed anywhere. Same for the manpage.

Arturo says:
 I'm not a strong supporter of this script, but there are many users of it, so
 better do things right and do a proper installation.
 This patch is forwarded from the iptables Debian package, where it has been
 around for many years now.

Signed-off-by: Laurence J. Lane <ljlane@debian.org>
Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/Makefile.am
iptables/ip6tables-apply.8 [new file with mode: 0644]

index fc834e0f7b89e65d7ee65f29cfb332b80322348b..71b1b1d48d4b6c5ea3902deee2f0eb82fb13a9f2 100644 (file)
@@ -53,7 +53,11 @@ sbin_PROGRAMS        += xtables-nft-multi
 endif
 man_MANS         = iptables.8 iptables-restore.8 iptables-save.8 \
                    iptables-xml.1 ip6tables.8 ip6tables-restore.8 \
-                   ip6tables-save.8 iptables-extensions.8
+                   ip6tables-save.8 iptables-extensions.8 \
+                   iptables-apply.8 ip6tables-apply.8
+
+sbin_SCRIPT      = iptables-apply
+
 if ENABLE_NFTABLES
 man_MANS       += xtables-nft.8 xtables-translate.8 xtables-legacy.8 \
                    iptables-translate.8 ip6tables-translate.8 \
@@ -106,3 +110,4 @@ install-exec-hook:
        for i in ${v4_sbin_links}; do ${LN_S} -f xtables-legacy-multi "${DESTDIR}${sbindir}/$$i"; done;
        for i in ${v6_sbin_links}; do ${LN_S} -f xtables-legacy-multi "${DESTDIR}${sbindir}/$$i"; done;
        for i in ${x_sbin_links}; do ${LN_S} -f xtables-nft-multi "${DESTDIR}${sbindir}/$$i"; done;
+       ${LN_S} -f iptables-apply "${DESTDIR}${sbindir}/ip6tables-apply"
diff --git a/iptables/ip6tables-apply.8 b/iptables/ip6tables-apply.8
new file mode 100644 (file)
index 0000000..994b487
--- /dev/null
@@ -0,0 +1 @@
+.so man8/iptables-apply.8