13 Commits

Author SHA1 Message Date
Jan Engelhardt
c4b17cf830 tools: add a systemd unit for static rulesets
There is a customer request (bugreport) for wanting to trivially load a ruleset
from a well-known location on boot, forwarded to me by M. Gerstner. A systemd
service unit is hereby added to provide that functionality. This is based on
various distributions attempting to do same, for example,

https://src.fedoraproject.org/rpms/nftables/tree/rawhide
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/nftables/nftables.initd
https://gitlab.archlinux.org/archlinux/packaging/packages/nftables
Acked-by: Eric Garver <eric@garver.life>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2025-08-20 14:52:31 +02:00
Pablo Neira Ayuso
97c28c9260 INSTALL: provide examples to install python bindings
Provide a bit more details on how to install python bindings with legacy
setup.py and pip with .toml file.

Original text from Jeremy Sowden <jeremy@azazel.net>.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2023-08-21 22:04:26 +02:00
Jeremy Sowden
8e603e0f7e py: add pyproject.toml to support PEP-517-compatible build-systems
This makes it possible to build and install the module without directly
invoking setup.py which has been deprecated.

Retain the setup.py script for backwards-compatibility.

Update INSTALL to mention the new config-file.

Link: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2023-08-03 09:47:49 +02:00
Pablo Neira Ayuso
b3def33efe py: remove setup.py integration with autotools
With Python distutils and setuptools going deprecated, remove
integration with autotools. This integration is causing issues
in modern environments.

Note that setup.py is still left in place under the py/ folder.

Update INSTALL file to refer to Python support and setup.py.

Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2023-07-31 09:06:22 +02:00
Pablo Neira Ayuso
8e339bae3c update INSTALL file
Update it to current library dependencies and existing options.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2023-07-21 15:37:12 +02:00
Pablo Neira Ayuso
13e44a608e build: remove PDF documentation generation
This adds unnecessary complexity to our build infrastructure. People can
just manually generate them in PDF in case they need too. So let's keep
it simple and remove this.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-08-17 11:53:01 +02:00
Ville Skyttä
4ff84696af src: Spelling fixes
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-02-15 16:51:52 +01:00
Harsha Sharma
7fa0e8456a INSTALL: Update dependency list and configure with libxtables support
Add configure with libxtables in INSTALL and required dependencies for
the same.

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-10-06 14:34:44 +02:00
Steven Barth
b3529cf43b build: add --with-mini-gmp switch to disable linking libgmp
This allows to disable linking the >400 KB big libgmp and replace it
with the builtin mini-gmp which only increases size by ~30KB.

Enabling this selectively decreases debugging verbosity (pr_debug).

Signed-off-by: Steven Barth <cyrus@openwrt.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2015-01-08 12:23:13 +01:00
Pablo Neira Ayuso
1c2c506d3c use new libnftnl library name
Adapt the current code to use the new library name libnftnl.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2014-01-20 10:49:21 +01:00
Tomasz Bursztyka
ffad92b5f3 INSTALL: Update dependency list and repository URLs
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2013-08-31 00:25:34 +02:00
Patrick McHardy
b076d6c637 Add more notes to INSTALL
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-03-20 09:09:42 +01:00
Patrick McHardy
311782cbea Add installation instructions
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-03-20 01:58:41 +01:00