bird.spec 1.3 KB
Newer Older
Ondřej Filip's avatar
Ondřej Filip committed
1
2
Summary: BIRD Internet Routing Daemon
Name: bird
Ondřej Zajíček's avatar
Ondřej Zajíček committed
3
Version: 2.0.1
Ondřej Filip's avatar
Ondřej Filip committed
4
Release: 1
Ondřej Filip's avatar
Ondřej Filip committed
5
6
7
8
Copyright: GPL
Group: Networking/Daemons
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
Source1: bird.init
9
Source2: birdc6
Ondřej Filip's avatar
Ondřej Filip committed
10
11
12
Buildroot: /var/tmp/bird-root
Url: http://bird.network.cz
Prereq: /sbin/chkconfig
Ondřej Zajíček's avatar
Ondřej Zajíček committed
13
BuildRequires: flex bison readline-devel ncurses-devel
Ondřej Filip's avatar
Ondřej Filip committed
14
15
16
17
18
19
20
21
22

%description
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
protocols BGP, RIP and OSPF.

%prep
%setup -n bird-%{version}

%build
23
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
24
25
make
mv bird bird6
26
27
make clean
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
Ondřej Filip's avatar
Ondřej Filip committed
28
29
make

30

Ondřej Filip's avatar
Ondřej Filip committed
31
32
%install
rm -rf $RPM_BUILD_ROOT/*
33
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
34
install bird6 $RPM_BUILD_ROOT/usr/sbin
Ondřej Filip's avatar
Ondřej Filip committed
35
36

cd $RPM_BUILD_ROOT
37
38
install -d etc/rc.d/init.d
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
39
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
Ondřej Filip's avatar
Ondřej Filip committed
40
41
42

%post
/sbin/ldconfig
43
/sbin/chkconfig --add bird
Ondřej Zajíček's avatar
Ondřej Zajíček committed
44

Ondřej Filip's avatar
Ondřej Filip committed
45
46
%preun
if [ $1 = 0 ] ; then
47
        /sbin/chkconfig --del bird
Ondřej Zajíček's avatar
Ondřej Zajíček committed
48
fi
Ondřej Filip's avatar
Ondřej Filip committed
49
50
51

%files
%attr(755,root,root) /usr/sbin/bird
52
%attr(755,root,root) /usr/sbin/bird6
Ondřej Filip's avatar
Ondřej Filip committed
53
%attr(755,root,root) /usr/sbin/birdc
54
%attr(755,root,root) /usr/sbin/birdc6
55
%attr(755,root,root) /etc/rc.d/init.d/bird