]> git.ipfire.org Git - ipfire-3.x.git/blob - bird/bird.nm
bird: Update to 1.6.0
[ipfire-3.x.git] / bird / bird.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = bird
7 version = 1.6.0
8 release = 1
9
10 groups = Networking/Routing
11 url = http://bird.network.cz/
12 license = GPLv2+
13 summary = BIRD Internet Routing Daemon.
14
15 description
16 BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
17 protocols BGP, RIP and OSPF.
18 end
19
20 source_dl = ftp://bird.network.cz/pub/bird/
21
22 build
23 requires
24 bison
25 flex
26 ncurses-devel
27 readline-devel
28 end
29
30 prepare_cmds
31 mkdir -pv %{DIR_APP}/ipv6
32 tar c --exclude ipv6 . | tar x -C ipv6
33 end
34
35 build
36 ./configure %{configure_options}
37 make %{PARALLELISMFLAGS}
38
39 cd ipv6
40 ./configure %{configure_options} --enable-ipv6
41 make %{PARALLELISMFLAGS}
42 end
43
44 install
45 make install DESTDIR=%{BUILDROOT}
46
47 cd ipv6
48 make install DESTDIR=%{BUILDROOT}
49
50 rm -rfv %{BUILDROOT}/var
51 end
52 end
53
54 packages
55 package %{name}
56 prerequires = systemd-units
57
58 script postin
59 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
60 end
61
62 script preun
63 /bin/systemctl --no-reload disable bird.service > /dev/null 2>&1 || :
64 /bin/systemctl stop bird.service > /dev/null 2>&1 || :
65
66 /bin/systemctl --no-reload disable bird6.service > /dev/null 2>&1 || :
67 /bin/systemctl stop bird6.service > /dev/null 2>&1 || :
68 end
69
70 script postun
71 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
72 end
73
74 script postup
75 /bin/systemctl daemon-reload 2>&1 || :
76 /bin/systemctl reload-or-try-restart bird.service >/dev/null 2>&1 || :
77 /bin/systemctl reload-or-try-restart bird6.service >/dev/null 2>&1 || :
78 end
79 end
80
81 package %{name}-debuginfo
82 template DEBUGINFO
83 end
84 end