autotools conversion: added autotools support for the 'files' subdir.
cover autotools conversion: added autotools support for the 'files' subdir.
From: Giorgio <[email protected]>
This patch adds the autotools support to install the nft scripts in 'files/nftables' under the configured $pkgsysconfdir/nftables (typically /etc/nftables). After copying the files to their destination dir. a call to 'sed' replaces the marker @sbindir@' with the actually configured sbin directory (typically '/sbin' or '/usr/sbin').
Giorgio (1):
autotools conversion: added autotools support for the 'files' subdir.
Makefile.am | 3 ++- configure.ac | 2 ++ files/Makefile.am | 1 + files/nftables/Makefile.am | 13 +++++++++++++ files/nftables/bridge-filter | 2 +- files/nftables/inet-filter | 2 +- files/nftables/ipv4-filter | 2 +- files/nftables/ipv4-mangle | 2 +- files/nftables/ipv4-nat | 2 +- files/nftables/ipv6-filter | 2 +- files/nftables/ipv6-mangle | 2 +- files/nftables/ipv6-nat | 2 +- 12 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 files/Makefile.am create mode 100644 files/nftables/Makefile.am
Signature · 1 line
2.1.3
PATCH 1/1 autotools conversion: added autotools support for the 'files' subdir.
From: Giorgio <[email protected]>
--- Makefile.am | 3 ++- configure.ac | 2 ++ files/Makefile.am | 1 + files/nftables/Makefile.am | 13 +++++++++++++ files/nftables/bridge-filter | 2 +- files/nftables/inet-filter | 2 +- files/nftables/ipv4-filter | 2 +- files/nftables/ipv4-mangle | 2 +- files/nftables/ipv4-nat | 2 +- files/nftables/ipv6-filter | 2 +- files/nftables/ipv6-mangle | 2 +- files/nftables/ipv6-nat | 2 +- 12 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 files/Makefile.am create mode 100644 files/nftables/Makefile.am
Makefile.am +2 -1
@@ -1,4 +1,5 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src \ - include + include \ + files
configure.ac +2 -0
@@ -122,6 +122,8 @@ AC_CHECK_FUNCS([memmove memset strchr strdup strerror strtoull]) AC_CONFIG_FILES([ \ Makefile \ src/Makefile \ + files/Makefile \ + files/nftables/Makefile \ include/Makefile \ include/linux/Makefile \ include/linux/netfilter/Makefile \
files/Makefile.am new file +1 -0
@@ -0,0 +1 @@ +SUBDIRS = nftables
files/nftables/Makefile.am new file +13 -0
@@ -0,0 +1,13 @@ + +pkgsysconfdir = ${sysconfdir}/nftables +dist_pkgsysconf_DATA = bridge-filter \ + inet-filter \ + ipv4-filter \ + ipv4-mangle \ + ipv4-nat \ + ipv6-filter \ + ipv6-mangle \ + ipv6-nat + +install-data-hook: + ${SED} -i 's|@sbindir[@]|${sbindir}/|g' ${DESTDIR}${pkgsysconfdir}/*
files/nftables/bridge-filter +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table bridge filter { chain input { type filter hook input priority -200; }
files/nftables/inet-filter +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table inet filter { chain input { type filter hook input priority 0; }
files/nftables/ipv4-filter +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table filter { chain input { type filter hook input priority 0; }
files/nftables/ipv4-mangle +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table mangle { chain output { type route hook output priority -150; }
files/nftables/ipv4-nat +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table nat { chain prerouting { type nat hook prerouting priority -150; }
files/nftables/ipv6-filter +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table ip6 filter { chain input { type filter hook input priority 0; }
files/nftables/ipv6-mangle +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table ip6 mangle { chain output { type route hook output priority -150; }
files/nftables/ipv6-nat +1 -1
@@ -1,4 +1,4 @@ -#! nft -f +#! @sbindir@nft -f table ip6 nat { chain prerouting { type nat hook prerouting priority -150; }
Signature · 1 line
2.1.3
Pablo Neira Ayuso
maintainerQuoted 1 line · Giorgio Dal Molin
From: Giorgio <[email protected]>
Same thing here, thanks.