]> git.pld-linux.org Git - packages/bird.git/blob - bird.spec
another routing daemon (TM)
[packages/bird.git] / bird.spec
1 Summary:        Routing daemon
2 Summary(pl):    Daemon dynamicznego routingu
3 Name:           bird
4 Version:        1.0.4
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
11 Source1:        ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
12 Source2:        %{name}.init
13 URL:            http://bird.network.cz/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The BIRD project is an attempt to create a routing daemon running on
18 UNIX-like systems (but not necessarily limited to them) with full
19 support of all modern routing protocols, easy to use configuration
20 interface and powerful route filtering language.
21
22 %description -l pl
23 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
24 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
25 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
26 filtrów o du¿ych mo¿liwo¶ciach.
27
28 %prep
29 %setup -q -a 1
30
31 %build
32 %configure \
33         --disable-memcheck \
34         --enable-client \
35         --enable-ipv6
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
41 install -d $RPM_BUILD_ROOT%{_sbindir}
42
43 install bird                    $RPM_BUILD_ROOT%{_sbindir}
44 install birdc                   $RPM_BUILD_ROOT%{_sbindir}
45 install doc/bird.conf.example   $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
46 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
47
48 %post
49 /sbin/chkconfig --add %{name} >&2
50
51 if [ -f /var/lock/subsys/%{name} ]; then
52         /etc/rc.d/init.d/%{name} restart >&2
53 else
54         echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
55 fi
56     
57 %preun
58 if [ "$1" = "0" ]; then
59         if [ -f /var/lock/subsys/%{name} ]; then
60                 /etc/rc.d/init.d/%{name} stop >&2
61         fi
62         /sbin/chkconfig --del %{name} >&2
63 fi
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc doc/*.html %{name}-doc-%{version}/doc/*.ps TODO README
71
72 %attr(755,root,root) %{_sbindir}/*
73 %attr(754,root,root) /etc/rc.d/init.d/*
74 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
This page took 0.035168 seconds and 4 git commands to generate.