forked from mirrors/nixpkgs
iptables-compat: rename to iptables-nftables-compat
Same as debian, more clarity what the package is about.
This commit is contained in:
parent
32f6ce33ed
commit
88c5b20606
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchurl, pkgconfig, pruneLibtoolFiles, flex, bison
|
||||
, libmnl, libnetfilter_conntrack, libnfnetlink, libnftnl, libpcap
|
||||
, modeCompat ? false
|
||||
, nftablesCompat ? false
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -28,11 +28,11 @@ stdenv.mkDerivation rec {
|
|||
"--enable-libipq"
|
||||
"--enable-nfsynproxy"
|
||||
"--enable-shared"
|
||||
] ++ optional (!modeCompat) "--disable-nftables";
|
||||
] ++ optional (!nftablesCompat) "--disable-nftables";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
postInstall = optional modeCompat ''
|
||||
postInstall = optional nftablesCompat ''
|
||||
rm $out/sbin/{iptables,iptables-restore,iptables-save,ip6tables,ip6tables-restore,ip6tables-save}
|
||||
ln -sv xtables-nft-multi $out/bin/iptables
|
||||
ln -sv xtables-nft-multi $out/bin/iptables-restore
|
||||
|
|
|
@ -15631,7 +15631,7 @@ in
|
|||
|
||||
iptables = iptables-legacy;
|
||||
iptables-legacy = callPackage ../os-specific/linux/iptables { };
|
||||
iptables-compat = callPackage ../os-specific/linux/iptables { modeCompat = true; };
|
||||
iptables-nftables-compat = callPackage ../os-specific/linux/iptables { nftablesCompat = true; };
|
||||
|
||||
iptstate = callPackage ../os-specific/linux/iptstate { } ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue