manpages: generate manpages

This commit is contained in:
Jan Engelhardt
2008-04-09 20:41:08 +02:00
parent 2c2527bdc4
commit d5ee47e9da
8 changed files with 62 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
.*.cmd
.*.d
.manpages.lst
.tmp_versions
*.ko
*.mod.c
@@ -8,3 +9,5 @@
GNUmakefile
Module.symvers
modules.order
matches.man
targets.man

View File

@@ -58,7 +58,7 @@ targets_install := ${obj-m}
.PHONY: all install clean distclean FORCE
all: modules ${targets}
all: modules ${targets} matches.man targets.man
install: modules_install ${targets_install}
@mkdir -p "${DESTDIR}${xtlibdir}";
@@ -68,7 +68,7 @@ clean: clean_modules
rm -f *.oo *.so;
distclean: clean
rm -f .*.d;
rm -f .*.d .manpages.lst;
-include .*.d
@@ -96,3 +96,34 @@ lib%.so: lib%.oo
lib%.oo: ${srcdir}/lib%.c
${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
#
# Manpages
#
wcman_matches := $(wildcard ${srcdir}/libxt_[a-z]*.man)
wcman_targets := $(wildcard ${srcdir}/libxt_[A-Z]*.man)
wlist_matches := $(patsubst ${srcdir}/libxt_%.man,%,${wcman_matches})
wlist_targets := $(patsubst ${srcdir}/libxt_%.man,%,${wcman_targets})
.manpages.lst: FORCE
@echo "${wlist_targets} ${wlist_matches}" >$@.tmp; \
cmp -s $@ $@.tmp || mv $@.tmp $@; \
rm -f $@.tmp;
man_run = \
${AM_VERBOSE_GEN} \
for ext in $(1); do \
f="${srcdir}/libxt_$$ext.man"; \
if [ -f "$$f" ]; then \
echo ".SS $$ext"; \
cat "$$f"; \
continue; \
fi; \
done >$@;
matches.man: .manpages.lst ${wcman_matches}
$(call man_run,${wlist_matches})
targets.man: .manpages.lst ${wcman_targets}
$(call man_run,${wlist_targets})

View File

@@ -2,11 +2,10 @@ Allows you to mark a received packet basing on its IP address. This
can replace many mangle/mark entries with only one, if you use
firewall based classifier.
This target is to be used inside the mangle table, in the PREROUTING,
POSTROUTING or FORWARD hooks.
This target is to be used inside the \fBmangle\fP table.
.TP
.BI "--addr " "src/dst"
Use source or destination IP address.
\fB--addr\fP {\fBsrc\fP|\fBdst\fP}
Select source or destination IP address as a basis for the mark.
.TP
.BI "--and-mask " "mask"
Perform bitwise `and' on the IP address and this mask.

View File

@@ -21,7 +21,7 @@ the Linux box, and add:
-A FORWARD -p tcp -j TARPIT
.IP
-A FORWARD -j DROP
.TP
.PP
NOTE:
If you use the conntrack module while you are using TARPIT, you should also use
the NOTRACK target, or the kernel will unnecessarily allocate resources for

View File

@@ -35,9 +35,6 @@ Matches some WinMX packets. Considered as beta, use careful!
.B "--ares "
Matches Ares and AresLite packets. Use together with -j DROP only.
.TP
.B "--ipp2p "
Short hand for: --edk --kazaa --gnu --dc
.TP
.B "--debug "
Prints some information about each hit into kernel logfile. May
produce huge logfiles so beware!