-
Notifications
You must be signed in to change notification settings - Fork 3
/
bird.spec
85 lines (74 loc) · 2.21 KB
/
bird.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
%global _hardened_build 1
Summary: BIRD Internet Routing Daemon
Name: bird
Version: 1.5.0
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source0: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
Source1: bird.service
URL: http://bird.network.cz
BuildRequires: gcc make flex bison ncurses-devel readline-devel sed systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
BIRD is a dynamic routing daemon supporting IPv4 and IPv6 versions of the routing
protocols BGP, RIP and OSPF.
%prep
%setup -q
%build
%configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir} \
--enable-ipv6
make %{?_smp_mflags}
mv bird bird6
mv birdc birdc6
mv birdcl birdcl6
make clean
%configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--localstatedir=%{_localstatedir}
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
install bird6 %{buildroot}/usr/sbin
install birdc6 %{buildroot}/usr/sbin
install birdcl6 %{buildroot}/usr/sbin
install doc/bird.conf.example %{buildroot}/etc/bird6.conf
install -d %{buildroot}%{_unitdir}
sed 's/BIRD_PROGNAME/bird/' %SOURCE1 > %{buildroot}%{_unitdir}/bird.service
sed 's/BIRD_PROGNAME/bird6/' %SOURCE1 > %{buildroot}%{_unitdir}/bird6.service
%post
%systemd_post bird.service
%systemd_post bird6.service
%preun
%systemd_preun bird.service
%systemd_preun bird6.service
%postun
%systemd_postun_with_restart bird.service
%systemd_postun_with_restart bird6.service
%files
%defattr(-,root,root,-)
%doc NEWS README TODO
%doc doc/bird*.html
%config(noreplace) %{_sysconfdir}/bird.conf
%config(noreplace) %{_sysconfdir}/bird6.conf
%{_unitdir}/bird.service
%{_sbindir}/bird
%{_sbindir}/birdc
%{_sbindir}/birdcl
%{_unitdir}/bird6.service
%{_sbindir}/bird6
%{_sbindir}/birdc6
%{_sbindir}/birdcl6
%changelog
* Thu Jul 02 2015 John Siegrist <[email protected]> - 1.5.0-1
- Added dist macro to Release
* Fri May 22 2015 David Jorm <[email protected]> - 1.5.0-1
- Rebase on bird 1.5.0
* Fri May 22 2015 David Jorm <[email protected]> - 1.4.5-2
- Update service file to use -R flag to reload bird process
* Thu Feb 26 2015 David Jorm <[email protected]> - 1.4.5-1
- Initial release