parent
7fad46051e
commit
74736f26c2
@ -1,29 +1,54 @@ |
|||||||
{ stdenv, fetchurl, flex, bison, readline |
{ lib, stdenv, fetchurl, flex, bison, readline }: |
||||||
, enableIPv6 ? false }: |
|
||||||
|
|
||||||
stdenv.mkDerivation rec { |
with lib; |
||||||
name = "bird-1.6.3"; |
|
||||||
|
let |
||||||
|
|
||||||
|
generic = { version, sha256, enableIPv6 ? false }: |
||||||
|
stdenv.mkDerivation rec { |
||||||
|
name = "bird-${version}"; |
||||||
|
|
||||||
src = fetchurl { |
src = fetchurl { |
||||||
|
inherit sha256; |
||||||
url = "ftp://bird.network.cz/pub/bird/${name}.tar.gz"; |
url = "ftp://bird.network.cz/pub/bird/${name}.tar.gz"; |
||||||
sha256 = "0z3yrxqb0p7f8b7r2gk4mvrwfzk45zx7yr9aifbvba1vgksiri9r"; |
|
||||||
}; |
}; |
||||||
|
|
||||||
buildInputs = [ flex bison readline ]; |
nativeBuildInputs = [ flex bison ]; |
||||||
|
buildInputs = [ readline ]; |
||||||
|
|
||||||
patches = [ |
patches = [ |
||||||
./dont-create-sysconfdir.patch |
(./. + (builtins.toPath "/dont-create-sysconfdir-${builtins.substring 0 1 version}.patch")) |
||||||
]; |
]; |
||||||
|
|
||||||
configureFlags = [ |
configureFlags = [ |
||||||
"--localstatedir /var" |
"--localstatedir=/var" |
||||||
] ++ stdenv.lib.optional enableIPv6 "--enable-ipv6"; |
] ++ optional enableIPv6 "--enable-ipv6"; |
||||||
|
|
||||||
meta = { |
meta = { |
||||||
description = "BIRD Internet Routing Daemon"; |
description = "BIRD Internet Routing Daemon"; |
||||||
homepage = http://bird.network.cz; |
homepage = http://bird.network.cz; |
||||||
license = stdenv.lib.licenses.gpl2Plus; |
license = licenses.gpl2Plus; |
||||||
maintainers = with stdenv.lib.maintainers; [ viric fpletz ]; |
maintainers = with maintainers; [ viric fpletz ]; |
||||||
platforms = stdenv.lib.platforms.linux; |
platforms = platforms.linux; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
in |
||||||
|
|
||||||
|
{ |
||||||
|
bird = generic { |
||||||
|
version = "1.6.3"; |
||||||
|
sha256 = "0z3yrxqb0p7f8b7r2gk4mvrwfzk45zx7yr9aifbvba1vgksiri9r"; |
||||||
|
}; |
||||||
|
|
||||||
|
bird6 = generic { |
||||||
|
version = "1.6.3"; |
||||||
|
sha256 = "0z3yrxqb0p7f8b7r2gk4mvrwfzk45zx7yr9aifbvba1vgksiri9r"; |
||||||
|
enableIPv6 = true; |
||||||
|
}; |
||||||
|
|
||||||
|
bird2 = generic { |
||||||
|
version = "2.0.1"; |
||||||
|
sha256 = "0qyh2cxj7hfz90x3fnczjdm3i9g7vr0nc4l4wjkj9qm0646vc52n"; |
||||||
}; |
}; |
||||||
} |
} |
||||||
|
@ -0,0 +1,13 @@ |
|||||||
|
diff --git a/Makefile.in b/Makefile.in
|
||||||
|
index fdd5e6c..45f81a1 100644
|
||||||
|
--- a/Makefile.in
|
||||||
|
+++ b/Makefile.in
|
||||||
|
@@ -165,7 +165,7 @@ tags:
|
||||||
|
# Install
|
||||||
|
|
||||||
|
install: all
|
||||||
|
- $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/@runtimedir@
|
||||||
|
+ $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir)
|
||||||
|
$(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird
|
||||||
|
$(INSTALL_PROGRAM) $(exedir)/birdcl $(DESTDIR)/$(sbindir)/birdcl
|
||||||
|
if test -n "@CLIENT@" ; then \
|
Loading…
Reference in new issue