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