mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
Update package name and documentation
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
This commit is contained in:
56
INSTALL
56
INSTALL
@@ -1,24 +1,33 @@
|
|||||||
|
Installation instructions for Xtables-addons
|
||||||
|
============================================
|
||||||
|
|
||||||
|
Xtables-addons uses the well-known configure(autotools) infrastructure
|
||||||
|
in combination with the kernel's Kbuild system.
|
||||||
|
|
||||||
|
$ ./configure
|
||||||
|
$ make
|
||||||
|
# make install
|
||||||
|
|
||||||
|
|
||||||
Prerequirements
|
Prerequirements
|
||||||
===============
|
===============
|
||||||
|
|
||||||
* iptables-devel 1.4.1
|
* xtables(-devel) 1.5.0
|
||||||
|
|
||||||
* kernel-source >= 2.6.19
|
* kernel-source >= 2.6.19 with prepared output directory
|
||||||
|
|
||||||
|
|
||||||
Compiling
|
Configuring and compiling
|
||||||
=========
|
=========================
|
||||||
|
|
||||||
./configure [options]
|
./configure [options]
|
||||||
|
|
||||||
--with-kbuild=
|
--with-kbuild=
|
||||||
|
|
||||||
Specifies the path to the kernel build output directory. We
|
Specifies the path to the kernel build output directory. We need
|
||||||
need it for building the kernel extensions. For example, on
|
it for building the kernel extensions. It defaults to
|
||||||
openSUSE:
|
/lib/modules/$(running version)/build, which usually points to
|
||||||
|
the right directory. (If not, you need to install something.)
|
||||||
--with-kbuild=/usr/src/linux-obj/x86_64/default
|
|
||||||
|
|
||||||
--with-ksource=
|
--with-ksource=
|
||||||
|
|
||||||
@@ -29,23 +38,30 @@ Compiling
|
|||||||
|
|
||||||
--with-ksource=/usr/src/linux
|
--with-ksource=/usr/src/linux
|
||||||
|
|
||||||
--with-iptables=
|
--with-xtables=
|
||||||
|
|
||||||
Specifies the path to the directory where we may find
|
Specifies the path to the directory where we may find
|
||||||
xtables.h, should it not be within the standard C compiler
|
xtables.h, should it not be within the standard C compiler
|
||||||
include path, or if you want to override it. The directory
|
include path (/usr/include), or if you want to override it.
|
||||||
will be checked for xtables.h and include/xtables.h. (This is
|
The directory will be checked for xtables.h and
|
||||||
to support the following specs:)
|
include/xtables.h. (This is to support the following specs:)
|
||||||
|
|
||||||
--with-iptables=/usr/src/iptables
|
--with-xtables=/usr/src/xtables
|
||||||
--with-iptables=/usr/src/iptables/include
|
--with-xtables=/usr/src/xtables/include
|
||||||
--with-iptables=/opt/iptables/include
|
--with-xtables=/opt/xtables/include
|
||||||
|
|
||||||
--with-iptdir=
|
--with-libxtdir=
|
||||||
|
|
||||||
Specifies the path to where the newly built extensions should
|
Specifies the path to where the newly built extensions should
|
||||||
be installed when `make install` is run. It uses the same
|
be installed when `make install` is run. It uses the same
|
||||||
default as the iptables package, ${libexecdir}/iptables.
|
default as the Xtables package, ${libexecdir}/xtables.
|
||||||
|
|
||||||
|
If you want to enable debugging, use
|
||||||
|
|
||||||
|
./configure CFLAGS="-ggdb3 -O0"
|
||||||
|
|
||||||
|
(-O0 is used to turn off instruction reordering, which makes debugging
|
||||||
|
much easier.)
|
||||||
|
|
||||||
|
|
||||||
Note to distribution packagers
|
Note to distribution packagers
|
||||||
@@ -54,5 +70,5 @@ Note to distribution packagers
|
|||||||
Except for --with-kbuild, distributions should not have a need to
|
Except for --with-kbuild, distributions should not have a need to
|
||||||
supply any other flags (besides --prefix=/usr and perhaps
|
supply any other flags (besides --prefix=/usr and perhaps
|
||||||
--libdir=/usr/lib64, etc.) to configure when all prerequired packages
|
--libdir=/usr/lib64, etc.) to configure when all prerequired packages
|
||||||
are installed. If iptables-devel is installed, necessary headers
|
are installed. If xtables-devel is installed, necessary headers should
|
||||||
should be in /usr/include, so --with-iptables is not needed.
|
be in /usr/include, so --with-xtables is not needed.
|
||||||
|
15
README
15
README
@@ -1,7 +1,10 @@
|
|||||||
iptables-addons
|
Xtables-addons
|
||||||
===============
|
==============
|
||||||
|
|
||||||
iptables-addons is what previously has been patch-o-matic and
|
Xtables-addons is the proclaimed successor to patch-o-matic(-ng). It
|
||||||
patch-o-matic-ng. Extensions that do not need immediate kernel
|
contains extensions that were not accepted in the main Xtables
|
||||||
patching are collected here in this repository and can immediately be
|
package.
|
||||||
built against a kernel and iptables.
|
|
||||||
|
Xtables-addons is different from patch-o-matic in that you do not have
|
||||||
|
to patch or recompile either kernel or Xtables(iptables). But please
|
||||||
|
see the INSTALL file for the minimum requirements of this package.
|
||||||
|
44
configure.ac
44
configure.ac
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
AC_INIT([iptables-addons], [1.4.1])
|
AC_INIT([xtables-addons], [1.5.0])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
@@ -18,29 +18,29 @@ AC_ARG_WITH([ksource],
|
|||||||
AS_HELP_STRING([--with-ksource=PATH],
|
AS_HELP_STRING([--with-ksource=PATH],
|
||||||
[Path to kernel source directory [[/lib/modules/CURRENT/source]]]),
|
[Path to kernel source directory [[/lib/modules/CURRENT/source]]]),
|
||||||
[ksourcedir="$withval"])
|
[ksourcedir="$withval"])
|
||||||
AC_ARG_WITH([iptables],
|
AC_ARG_WITH([xtables],
|
||||||
AS_HELP_STRING([--with-iptables=PATH],
|
AS_HELP_STRING([--with-xtables=PATH],
|
||||||
[Path to the iptables includes [[PREFIX/include]]]),
|
[Path to the Xtables includes [[none]]]),
|
||||||
[iptables_location="$withval"])
|
[xtables_location="$withval"])
|
||||||
AC_ARG_WITH([iptdir],
|
AC_ARG_WITH([xtlibdir],
|
||||||
AS_HELP_STRING([--with-iptdir=PATH],
|
AS_HELP_STRING([--with-xtlibdir=PATH],
|
||||||
[Path to iptables modules [[LIBEXECDIR/iptables]]]),
|
[Path where to install Xtables extensions [[LIBEXECDIR/xtables]]]),
|
||||||
[iptdir="$withval"],
|
[xtlibdir="$withval"],
|
||||||
[iptdir='${libexecdir}/iptables'])
|
[xtlibdir='${libexecdir}/xtables'])
|
||||||
|
|
||||||
AC_CHECK_HEADER([netinet/ip6.h], [], [AC_MSG_ERROR(but we need that for IPv6)])
|
AC_CHECK_HEADER([netinet/ip6.h], [], [AC_MSG_ERROR(but we need that for IPv6)])
|
||||||
|
|
||||||
AC_MSG_CHECKING([xtables.h presence])
|
AC_MSG_CHECKING([xtables.h presence])
|
||||||
if [[ -n "$iptables_location" ]]; then
|
if [[ -n "$xtables_location" ]]; then
|
||||||
if [[ -f "$iptables_location/xtables.h" ]]; then
|
if [[ -f "$xtables_location/xtables.h" ]]; then
|
||||||
AC_MSG_RESULT([$iptables_location/xtables.h])
|
AC_MSG_RESULT([$xtables_location/xtables.h])
|
||||||
iptables_CFLAGS="-I$iptables_location";
|
xtables_CFLAGS="-I $xtables_location";
|
||||||
elif [[ -f "$iptables_location/include/xtables.h" ]]; then
|
elif [[ -f "$xtables_location/include/xtables.h" ]]; then
|
||||||
AC_MSG_RESULT([$iptables_location/include/xtables.h])
|
AC_MSG_RESULT([$xtables_location/include/xtables.h])
|
||||||
iptables_CFLAGS="-I$iptables_location/include";
|
xtables_CFLAGS="-I $xtables_location/include";
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
if [[ -z "$iptables_CFLAGS" ]]; then
|
if [[ -z "$xtables_CFLAGS" ]]; then
|
||||||
if [[ -f "$includedir/xtables.h" ]]; then
|
if [[ -f "$includedir/xtables.h" ]]; then
|
||||||
AC_MSG_RESULT([$includedir/xtables.h])
|
AC_MSG_RESULT([$includedir/xtables.h])
|
||||||
else
|
else
|
||||||
@@ -52,11 +52,11 @@ regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
|
|||||||
-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
|
-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
|
||||||
-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
|
-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
|
||||||
-Winline -pipe -DIPTABLES_VERSION=\\\"$PACKAGE_VERSION\\\" \
|
-Winline -pipe -DIPTABLES_VERSION=\\\"$PACKAGE_VERSION\\\" \
|
||||||
-DIPT_LIB_DIR=\\\"\${iptdir}\\\" -DIP6T_LIB_DIR=\\\"\${iptdir}\\\"";
|
-DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\"";
|
||||||
kinclude_CFLAGS="-I\"$kbuilddir/include\" -I\"$ksourcedir/include\"";
|
kinclude_CFLAGS="-I $kbuilddir/include -I $ksourcedir/include";
|
||||||
|
|
||||||
AC_SUBST([regular_CFLAGS iptables_CFLAGS kinclude_CFLAGS])
|
AC_SUBST([regular_CFLAGS xtables_CFLAGS kinclude_CFLAGS])
|
||||||
AC_SUBST([kbuilddir])
|
AC_SUBST([kbuilddir])
|
||||||
AC_SUBST([ksourcedir])
|
AC_SUBST([ksourcedir])
|
||||||
AC_SUBST([iptdir])
|
AC_SUBST([xtlibdir])
|
||||||
AC_OUTPUT([Makefile extensions/Makefile])
|
AC_OUTPUT([Makefile extensions/Makefile])
|
||||||
|
@@ -4,12 +4,12 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
|
|||||||
abssrcdir = $(shell readlink -f ${srcdir})
|
abssrcdir = $(shell readlink -f ${srcdir})
|
||||||
|
|
||||||
regular_CFLAGS := @regular_CFLAGS@
|
regular_CFLAGS := @regular_CFLAGS@
|
||||||
iptables_CFLAGS := @iptables_CFLAGS@
|
xtables_CFLAGS := @xtables_CFLAGS@
|
||||||
kinclude_CFLAGS := @kinclude_CFLAGS@
|
kinclude_CFLAGS := @kinclude_CFLAGS@
|
||||||
AM_CFLAGS = ${regular_CFLAGS} ${iptables_CFLAGS} ${kinclude_CFLAGS} \
|
AM_CFLAGS = ${regular_CFLAGS} ${xtables_CFLAGS} ${kinclude_CFLAGS} \
|
||||||
-D_INIT=$*_init
|
-D_INIT=$*_init
|
||||||
AM_LDFLAGS = -module -avoid-version
|
AM_LDFLAGS = -module -avoid-version
|
||||||
ipt_LTLIBRARIES = \
|
xtlib_LTLIBRARIES = \
|
||||||
libxt_LOGMARK.la \
|
libxt_LOGMARK.la \
|
||||||
libxt_TARPIT.la \
|
libxt_TARPIT.la \
|
||||||
libxt_TEE.la
|
libxt_TEE.la
|
||||||
|
Reference in New Issue
Block a user