From: Laszlo Attila Toth <panther@balabit.hu>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] Makefile for man pages of xtables extensions
Date: Mon, 03 Sep 2007 14:48:19 +0200 [thread overview]
Message-ID: <46DC0293.6010307@balabit.hu> (raw)
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
Hello,
I made this patch to include all available matches and targets to
iptables.8 and ip6tables.8 man pages. The source file is lixt_*.c but
the man page is libipt_*.man or libip6t.man as expected.
If there are additional matches and targets (extra, as in POM), the
variable named "extra" is used which was unescaped.
But I found that in the generated man pages of the svn version of
modules the title is
... (not supported, see Patch-O-Matic)
for instance helper, length, limit etc. Is it intended?
Regards,
Laszlo Attila Toth
[-- Attachment #2: iptables-make.diff --]
[-- Type: text/x-patch, Size: 2918 bytes --]
--- iptables.orig/extensions/Makefile 2007-08-07 10:03:05.000000000 +0200
+++ iptables/extensions/Makefile 2007-09-03 14:28:44.000000000 +0200
@@ -29,6 +29,11 @@
PF6_EXT_MAN_ALL_MATCHES:=$(foreach T,$(PF6_EXT_ALL_SLIB),$(shell test -f extensions/libip6t_$(T).man && grep -q register_match6 extensions/libip6t_$(T).c && echo $(T)))
PF6_EXT_MAN_ALL_TARGETS:=$(foreach T,$(PF6_EXT_ALL_SLIB),$(shell test -f extensions/libip6t_$(T).man && grep -q register_target6 extensions/libip6t_$(T).c && echo $(T)))
+PF_EXT_MAN_ALL_MATCHES+=$(foreach T,$(PFX_EXT_ALL_SLIB),$(shell test -f extensions/libipt_$(T).man && grep -q register_match extensions/libxt_$(T).c && echo $(T)))
+PF_EXT_MAN_ALL_TARGETS+=$(foreach T,$(PFX_EXT_ALL_SLIB),$(shell test -f extensions/libipt_$(T).man && grep -q register_target extensions/libxt_$(T).c && echo $(T)))
+PF6_EXT_MAN_ALL_MATCHES+=$(foreach T,$(PFX_EXT_ALL_SLIB),$(shell test -f extensions/libip6t_$(T).man && grep -q register_match6 extensions/libxt_$(T).c && echo $(T)))
+PF6_EXT_MAN_ALL_TARGETS+=$(foreach T,$(PFX_EXT_ALL_SLIB),$(shell test -f extensions/libip6t_$(T).man && grep -q register_target6 extensions/libxt_$(T).c && echo $(T)))
+
PF_EXT_MAN_MATCHES:=$(filter $(PF_EXT_ALL_SLIB), $(PF_EXT_MAN_ALL_MATCHES))
PF_EXT_MAN_TARGETS:=$(filter $(PF_EXT_ALL_SLIB), $(PF_EXT_MAN_ALL_TARGETS))
PF_EXT_MAN_EXTRA_MATCHES:=$(filter-out $(PF_EXT_MAN_MATCHES), $(PF_EXT_MAN_ALL_MATCHES))
@@ -141,7 +146,7 @@
cat extensions/libipt_$$ext.man ;\
done >extensions/libipt_targets.man
@if [ -n "$(PF_EXT_MAN_EXTRA_TARGETS)" ]; then \
- extra=$(PF_EXT_MAN_EXTRA_TARGETS) ;\
+ extra="$(PF_EXT_MAN_EXTRA_TARGETS)" ;\
for ext in $${extra:-""}; do \
echo ".SS $$ext (not supported, see Patch-O-Matic)" ;\
cat extensions/libipt_$$ext.man ;\
@@ -155,7 +160,7 @@
cat extensions/libipt_$$ext.man ;\
done >extensions/libipt_matches.man
@if [ -n "$(PF_EXT_MAN_EXTRA_MATCHES)" ]; then \
- extra=$(PF_EXT_MAN_EXTRA_MATCHES) ;\
+ extra="$(PF_EXT_MAN_EXTRA_MATCHES)" ;\
for ext in $${extra:-""}; do \
echo ".SS $$ext (not supported, see Patch-O-Matic)" ;\
cat extensions/libipt_$$ext.man ;\
@@ -169,7 +174,7 @@
cat extensions/libip6t_$$ext.man ;\
done >extensions/libip6t_targets.man
@if [ -n "$(PF6_EXT_MAN_EXTRA_TARGETS)" ]; then \
- extra=$(PF6_EXT_MAN_EXTRA_TARGETS) ;\
+ extra="$(PF6_EXT_MAN_EXTRA_TARGETS)" ;\
for ext in $${extra:-""}; do \
echo ".SS $$ext (not supported, see Patch-O-Matic)" ;\
cat extensions/libip6t_$$ext.man ;\
@@ -183,7 +188,7 @@
cat extensions/libip6t_$$ext.man ;\
done >extensions/libip6t_matches.man
@if [ -n "$(PF6_EXT_MAN_EXTRA_MATCHES)" ]; then \
- extra=$(PF6_EXT_MAN_EXTRA_MATCHES) ;\
+ extra="$(PF6_EXT_MAN_EXTRA_MATCHES)" ;\
for ext in $${extra:-""}; do \
echo ".SS $$ext (not supported, see Patch-O-Matic)" ;\
cat extensions/libip6t_$$ext.man ;\
next reply other threads:[~2007-09-03 12:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-03 12:48 Laszlo Attila Toth [this message]
2007-09-05 13:45 ` [PATCH] Makefile for man pages of xtables extensions Patrick McHardy
2007-09-05 15:58 ` [PATCH] Makefile for man pages of xtables extensions + connrate Laszlo Attila Toth
2007-09-06 9:56 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46DC0293.6010307@balabit.hu \
--to=panther@balabit.hu \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).