mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
ebtables: Update to 2.0.10-4 and fix build
http://hydra.nixos.org/build/3891670
This commit is contained in:
parent
4172cbee05
commit
67de843bce
@ -1,22 +1,27 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ebtables-2.0.9-2";
|
||||
name = "ebtables-${version}";
|
||||
version = "2.0.10-4";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/ebtables/ebtables-v2.0.9-2.tar.gz;
|
||||
sha256 = "18yni9zzhfi1ygkgifzj8qpn95cwwiw7j6b3wsl1bij39mj5z1cq";
|
||||
url = "mirror://sourceforge/ebtables/ebtables-v${version}.tar.gz";
|
||||
sha256 = "0pa5ljlk970yfyhpf3iqwfpbc30j8mgn90fapw9cfz909x47nvyw";
|
||||
};
|
||||
|
||||
makeFlags =
|
||||
"LIBDIR=$(out)/lib BINDIR=$(out)/sbin MANDIR=$(out)/share/man " +
|
||||
"ETCDIR=$(out)/etc INITDIR=$(TMPDIR) SYSCONFIGDIR=$(out)/etc/sysconfig";
|
||||
[ "LIBDIR=$(out)/lib" "BINDIR=$(out)/sbin" "MANDIR=$(out)/share/man"
|
||||
"ETCDIR=$(out)/etc" "INITDIR=$(TMPDIR)" "SYSCONFIGDIR=$(out)/etc/sysconfig"
|
||||
"LOCALSTATEDIR=/var"
|
||||
];
|
||||
|
||||
preBuild =
|
||||
''
|
||||
substituteInPlace Makefile --replace '-o root -g root' ""
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
preInstall = "mkdir -p $out/etc/sysconfig";
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user