]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - bird/bird.nm
350cd0eae647bdfe2c2ef85bdd8424fcb00b2e0f
[people/pmueller/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 = 2.0.10
8 release = 2
9
10 groups = Networking/Routing
11 url = https://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 = https://bird.network.cz/download/
21
22 build
23 requires
24 bison
25 flex
26 ncurses-devel
27 readline-devel
28 end
29
30 install_cmds
31 # Drop /var/run
32 rm -rvf %{BUILDROOT}%{localstatedir}/run
33 end
34 end
35
36 packages
37 package %{name}
38 prerequires = systemd-units
39
40 script postin
41 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
42 end
43
44 script preun
45 /bin/systemctl --no-reload disable bird.service > /dev/null 2>&1 || :
46 /bin/systemctl stop bird.service > /dev/null 2>&1 || :
47
48 end
49
50 script postun
51 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
52 end
53
54 script postup
55 /bin/systemctl daemon-reload 2>&1 || :
56 /bin/systemctl reload-or-try-restart bird.service >/dev/null 2>&1 || :
57 end
58 end
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
63 end