]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
doc: move documentation to rST format
authorJan Engelhardt <jengelh@inai.de>
Thu, 21 Apr 2022 09:31:55 +0000 (11:31 +0200)
committerJan Engelhardt <jengelh@inai.de>
Thu, 21 Apr 2022 09:35:48 +0000 (11:35 +0200)
INSTALL [deleted file]
INSTALL.rst [new file with mode: 0644]
README.rst [moved from README with 92% similarity]

diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index c4f8b07..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,111 +0,0 @@
-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
-
-
-Supported configurations for this release
-=========================================
-
-       * iptables >= 1.6.0
-
-       * kernel-devel >= 4.16
-         with prepared build/output directory
-         - CONFIG_NF_CONNTRACK
-         - CONFIG_NF_CONNTRACK_MARK enabled =y or as module (=m)
-         - CONFIG_CONNECTOR y/m if you wish to receive userspace
-           notifications from pknock through netlink/connector
-
-(Use xtables-addons-1.x if you need support for Linux < 3.7.
-Use xtables-addons-2.x if you need support for Linux < 4.15.
-Use xtables-addons<3.19 if you need support for Linux <=4.16.)
-Note: xtables-addons regularly fails to build with patched-to-death
-kernels like on RHEL or SLES because the API does not match
-LINUX_KERNEL_VERSION anymore.
-
-
-Selecting extensions
-====================
-
-You can edit the "mconfig" file to select what modules to build and
-install. By default, all modules are enabled.
-
-
-Configuring and compiling
-=========================
-
-./configure [options]
-
---without-kbuild
-
-       Deactivate building kernel modules, and just do userspace parts.
-
---with-kbuild=
-
-       Specifies the path to the kernel build output directory. We need
-       it for building the kernel extensions. It defaults to
-       /lib/modules/$(running version)/build, which usually points to
-       the right directory. (If not, you need to install something.)
-
-       For RPM building, it should be /usr/src/linux-obj/...
-       or whatever location the distro makes use of.
-
---with-xtlibdir=
-
-       Specifies the path to where the newly built extensions should
-       be installed when `make install` is run. The default is to
-       use the same path that Xtables/iptables modules use, as
-       determined by `pkg-config xtables --variable xtlibdir`.
-       Thus, this option normally does NOT need to be specified
-       anymore, even if your distribution put modules in a strange
-       location.
-
-If you want to enable debugging, use
-
-       ./configure CFLAGS="-ggdb3 -O0"
-
-(-O0 is used to turn off instruction reordering, which makes debugging
-much easier.)
-
-To make use of a libxtables that is not in the default path, either
-
-  a) append the location of the pkg-config files like:
-
-       PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
-
-     (Assuming that files have been installed)
-or,
-
-  b) override the pkg-config variables, for example:
-
-       ./configure libxtables_CFLAGS="-I../iptables/include" \
-               libxtables_LIBS="-L../iptables/.libs \
-                       -Wl,-rpath,../iptables/.libs -lxtables"
-
-     (Use this in case you wish to use it without having to
-     run `make install`. This is because the libxtables.pc pkgconfig
-     file in ../iptables would already point to e.g. /usr/local.)
-
-
-Build-time options
-==================
-
-V= controls the verbosity of make commands.
-V=0    "silent" (output filename)
-V=1    "verbose" (entire gcc command line)
-
-
-Note to distribution packagers
-==============================
-
-Except for --with-kbuild, distributions should not have a need to
-supply any other flags (besides --prefix=/usr and perhaps
---libdir=/usr/lib64, etc.) to configure when all prerequired packages
-are installed. If iptables-devel is installed, necessary headers should
-already be in /usr/include, so that overriding PKG_CONFIG_PATH,
-libxtables_CFLAGS and libxtables_LIBS variables should not be needed.
diff --git a/INSTALL.rst b/INSTALL.rst
new file mode 100644 (file)
index 0000000..69bbd8d
--- /dev/null
@@ -0,0 +1,123 @@
+Installation instructions for Xtables-addons
+============================================
+
+Xtables-addons uses the well-known configure(autotools) infrastructure
+in combination with the kernel's Kbuild system.
+
+.. code-block:: sh
+
+       $ ./configure
+       $ make
+       # make install
+
+
+Supported configurations for this release
+=========================================
+
+* iptables >= 1.6.0
+
+* kernel-devel >= 4.16
+  with prepared build/output directory
+
+  * ``CONFIG_NF_CONNTRACK``
+
+  * ``CONFIG_NF_CONNTRACK_MARK`` enabled =y or as module (=m)
+
+  * ``CONFIG_CONNECTOR`` y/m if you wish to receive userspace
+    notifications from pknock through netlink/connector
+
+(Use xtables-addons-1.x if you need support for Linux < 3.7.
+Use xtables-addons-2.x if you need support for Linux < 4.15.
+Use xtables-addons<3.19 if you need support for Linux <=4.16.)
+Note: xtables-addons regularly fails to build with patched-to-death
+kernels like on RHEL or SLES because the API does not match
+LINUX_KERNEL_VERSION anymore.
+
+
+Selecting extensions
+====================
+
+You can edit the ``mconfig`` file to select what modules to build and
+install. By default, all modules are enabled.
+
+
+Configuring and compiling
+=========================
+
+.. code-block:: sh
+
+       ./configure [options]
+
+``--without-kbuild``
+       Deactivate building kernel modules, and just do userspace parts.
+
+``--with-kbuild=``
+       Specifies the path to the kernel build output directory. We need
+       it for building the kernel extensions. It defaults to
+       ``/lib/modules/$(running version)/build``, which usually points to
+       the right directory. (If not, you need to install something.)
+
+       For RPM building, it should be ``/usr/src/linux-obj/...``
+       or whatever location the distro makes use of.
+
+``--with-xtlibdir=``
+       Specifies the path to where the newly built extensions should
+       be installed when ``make install`` is run. The default is to
+       use the same path that Xtables/iptables modules use, as
+       determined by ``pkg-config xtables --variable xtlibdir``.
+       Thus, this option normally does *not* need to be specified
+       anymore, even if your distribution put modules in a strange
+       location.
+
+If you want to enable debugging, use
+
+.. code-block:: sh
+
+       ./configure CFLAGS="-ggdb3 -O0"
+
+(``-O0`` is used to turn off instruction reordering, which makes debugging
+much easier.)
+
+To make use of a libxtables that is not in the default path, either
+
+a) append the location of the pkg-config files like:
+
+   .. code-block:: sh
+
+       PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
+
+   (Assuming that files have been installed), or,
+
+b) override the pkg-config variables, for example:
+
+   .. code-block:: sh
+
+       ./configure libxtables_CFLAGS="-I../iptables/include" \
+       libxtables_LIBS="-L../iptables/.libs \
+       -Wl,-rpath,../iptables/.libs -lxtables"
+
+   (Use this in case you wish to use it without having to
+   run ``make install``. This is because the ``libxtables.pc`` pkgconfig
+   file in ../iptables would already point to e.g. ``/usr/local``.)
+
+
+Build-time options
+==================
+
+``V=``
+       This variable controls the verbosity of make commands:
+
+       * ``V=0``: "silent" (output filename)
+
+       * ``V=1``: "verbose" (entire gcc command line)
+
+
+Note to distribution packagers
+==============================
+
+Except for ``--with-kbuild``, distributions should not have a need to
+supply any other flags (besides ``--prefix=/usr`` and perhaps
+``--libdir=/usr/lib64``, etc.) to configure when all prerequired packages
+are installed. If *iptables-devel* is installed, necessary headers should
+already be in ``/usr/include``, so that overriding ``PKG_CONFIG_PATH``,
+``libxtables_CFLAGS`` and ``libxtables_LIBS`` variables should not be needed.
similarity index 92%
rename from README
rename to README.rst
index 3a4b003d2504e2aec355559633723ff3a06c44b9..988a41eabda176f2c71cabad3bc00422065a1458 100644 (file)
--- a/README
@@ -12,4 +12,4 @@ the minimum requirements of Xtables-addons.
 
 Included in this package
 ========================
-- xt_ACCOUNT 1.16, libxt_ACCOUNT 1.3
+* xt_ACCOUNT 1.16, libxt_ACCOUNT 1.3