Dirk Mueller
2c115ddd58
- Update to version 2.0.8 Changes/Fixes: * Automatic channel reloads based on RPKI changes * Multiple static routes with the same network * Use bitmaps to keep track of exported routes * Per-channel debug flags * CLI commands show info from multiple protocols * Linux: IPv4 routes with IPv6 nexthops * Filter: Optimized redesign of prefix sets * Filter: Improved type checking of user filters * Filter: New src/dst accessors for Flowspec and SADR * Filter: New 'weight' route attribute * Filter: BGP path mask loop operator * Filter: Remove quitbird command * RIP: Demand circuit support (RFC 2091) * BGP: New 'allow as sets' and 'enforce first as' options * BGP: Support for BGP hostname capability * BGP: Support for MD5SIG with dynamic BGP * BFD: Optional separation of IPv4 / IPv6 BFD instances * BFD: Per-peer session options * RPKI: Allow build without libSSH * RPKI: New 'ignore max length' option * OSPF: Redesign of handling of unnumbered PtPs * OSPF: Allow key id 0 in authentication * Babel: Use onlink flag for routes with unreachable next hop * Many bugfixes Notes: * Automatic channel reloads based on RPKI changes are enabled by default, but require import table enabled when used in BGP import filter. OBS-URL: https://build.opensuse.org/request/show/880493 OBS-URL: https://build.opensuse.org/package/show/network/bird?expand=0&rev=17
121 lines
3.5 KiB
RPMSpec
121 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package bird
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define bird_user bird
|
|
%define bird_group bird
|
|
%define bird_home %{_localstatedir}/lib/bird
|
|
%define bird_runtimedir %{_rundir}/%{name}
|
|
Name: bird
|
|
Version: 2.0.8
|
|
Release: 0
|
|
Summary: The BIRD Internet Routing Daemon
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/Routing
|
|
URL: https://bird.network.cz/
|
|
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
|
|
Source1: bird.service
|
|
Source3: bird.tmpfiles.d
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: readline-devel
|
|
BuildRequires: pkgconfig(systemd)
|
|
Provides: bird6 = %{version}
|
|
Provides: bird6:%{_sbindir}/bird6
|
|
Obsoletes: bird6 < %{version}
|
|
Provides: bird-common = %{version}
|
|
Obsoletes: bird-common < %{version}
|
|
|
|
%description
|
|
BIRD is an implementation for routing Internet Protocol packets. IPv4
|
|
and IPv6 are supported by running separate daemons. It establishes
|
|
multiple routing tables, and uses BGP, RIP, and OSPF routing
|
|
protocols, as well as statically defined routes.
|
|
|
|
This package holds the IPv4+IPv6 binaries.
|
|
|
|
This package holds common files and directories.
|
|
|
|
%package doc
|
|
Summary: Documentation for the BIRD Internet Routing Daemon
|
|
Group: Documentation/HTML
|
|
BuildRequires: perl-FindBin-Real
|
|
|
|
%description doc
|
|
BIRD is an implementation for routing Internet Protocol packets.
|
|
|
|
This package holds the HTML documentation.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="${RPM_OPT_FLAGS} -fpic -DPIC -fno-strict-aliasing -Wno-parentheses -Wno-pointer-sign"
|
|
export LDFLAGS="-Wl,-z,relro -pie"
|
|
%configure \
|
|
--with-runtimedir=%{bird_runtimedir}
|
|
%make_build all
|
|
# requires linuxdoctools
|
|
# make docs
|
|
|
|
%install
|
|
%make_install
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/bird.service
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rcbird
|
|
install -D -d -m 0750 %{buildroot}%{bird_home}
|
|
install -D -d -m 0750 %{buildroot}%{_docdir}/%{name}/
|
|
|
|
%check
|
|
make test
|
|
|
|
%pre
|
|
# Create bird user/group
|
|
getent group %{bird_group} >/dev/null || groupadd -r %{bird_group}
|
|
getent passwd %{bird_user} >/dev/null || useradd -r -g %{bird_group} -d %{bird_home} -s /sbin/nologin -c "Bird routing daemon" %{bird_user}
|
|
%service_add_pre bird.service
|
|
|
|
%preun
|
|
%service_del_preun bird.service
|
|
|
|
%post
|
|
systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf || true
|
|
%service_add_post bird.service
|
|
|
|
%postun
|
|
%service_del_postun bird.service
|
|
|
|
%files
|
|
%config(noreplace) %attr(0640,root,%{bird_group}) %{_sysconfdir}/bird.conf
|
|
%{_sbindir}/bird
|
|
%{_sbindir}/birdc
|
|
%{_sbindir}/birdcl
|
|
%{_sbindir}/rcbird
|
|
%{_unitdir}/bird.service
|
|
%dir %attr(750,%{bird_user},%{bird_group}) %{bird_home}
|
|
%{_tmpfilesdir}/%{name}.conf
|
|
%dir %attr(-,%{bird_user},%{bird_group}) %ghost %{bird_runtimedir}
|
|
|
|
%files doc
|
|
%doc NEWS README
|
|
%doc doc/bird.conf.*
|
|
|
|
%changelog
|