From 90b6235c31c2ceed5e07133dfce0639e07c372c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Chrustek?= Date: Sat, 9 Apr 2011 22:58:58 +0000 Subject: [PATCH] - Added alien bcond to allow import openvz routes to bird's routing table Details: http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg01069.html Changed files: bird-allowalien.patch -> 1.1 bird.spec -> 1.47 --- bird-allowalien.patch | 14 ++++++++++++++ bird.spec | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 bird-allowalien.patch diff --git a/bird-allowalien.patch b/bird-allowalien.patch new file mode 100644 index 0000000..113001f --- /dev/null +++ b/bird-allowalien.patch @@ -0,0 +1,14 @@ +diff -ru bird-1.3.0.orig/sysdep/linux/netlink/netlink.c bird-1.3.0/sysdep/linux/netlink/netlink.c +--- bird-1.3.0.orig/sysdep/linux/netlink/netlink.c 2011-03-31 10:29:42.000000000 +0200 ++++ bird-1.3.0/sysdep/linux/netlink/netlink.c 2011-04-10 00:51:11.000000000 +0200 +@@ -851,8 +851,9 @@ + * for their 'alien' routes. + */ + +- if (i->rtm_protocol == RTPROT_BOOT) ++ /* if (i->rtm_protocol == RTPROT_BOOT) + src = KRT_SRC_KERNEL; ++ */ + } + + break; diff --git a/bird.spec b/bird.spec index 8837ce0..c005e35 100644 --- a/bird.spec +++ b/bird.spec @@ -4,6 +4,7 @@ # Conditional build: %bcond_without ipv6 # disable IPv6 support (and building bird-ipv6 package) %bcond_without ipv4 # disable IPv4 support (and building bird-ipv4 package) +%bcond_with alien # enable possibility to import 'alien' routes import into bird's routing table # Summary: The BIRD Internet Routing Daemon Summary(pl.UTF-8): Demon BIRD Internetowego Routingu Dynamicznego @@ -21,6 +22,7 @@ Source4: %{name}-ipv6.sysconfig Source5: ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz # Source5-md5: c99c927430a4ccb07d3317614520caf2 Patch0: %{name}-tinfo.patch +%{?with_alien:Patch1: %{name}-allowalien.patch} URL: http://bird.network.cz/ BuildRequires: autoconf BuildRequires: automake @@ -104,6 +106,9 @@ filtrów o dużych możliwościach. %prep %setup -q -a 5 %patch0 -p1 +%if %{with alien} +%patch1 -p1 +%endif %build cp -f /usr/share/automake/config.* tools -- 2.44.0