Mercurial > routeflapper
comparison routeflapper.spec.in @ 0:48d06780cf77
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 13 May 2008 14:03:10 -0700 |
parents | |
children | 180d26aa2a17 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:48d06780cf77 |
---|---|
1 %define localstatedir /var/lib | |
2 | |
3 Summary: Route flap detector | |
4 Name: @PACKAGE@ | |
5 Version: @VERSION@ | |
6 Release: 1%{?dist} | |
7 License: GPLv3+ | |
8 Group: System Environment/Daemons | |
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz | |
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | |
11 URL: http://www.five-ten-sg.com/%{name}/ | |
12 AutoReqProv: no | |
13 | |
14 Requires(post,preun): /sbin/chkconfig | |
15 Requires(post,preun): /sbin/service | |
16 Requires: quagga | |
17 Requires: coreutils | |
18 BuildRequires: gcc gcc-c++ | |
19 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6 | |
20 | |
21 | |
22 %description | |
23 This is a route flap detector, that classifies certain routes as | |
24 suspicious. It uses the log entries produced by bgpd from the quagga | |
25 package to maintain a shadow copy of the bgp routing table. Any | |
26 routes that are new are suspicious, as are any routes that have | |
27 as paths with newly adjacent as systems. | |
28 | |
29 %prep | |
30 %setup -q | |
31 | |
32 %build | |
33 %configure | |
34 make %{?_smp_mflags} | |
35 | |
36 | |
37 %install | |
38 rm -rf $RPM_BUILD_ROOT | |
39 make DESTDIR=$RPM_BUILD_ROOT install | |
40 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d | |
41 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d | |
42 | |
43 | |
44 %clean | |
45 rm -rf $RPM_BUILD_ROOT | |
46 | |
47 | |
48 %pre | |
49 | |
50 | |
51 %post | |
52 /sbin/chkconfig --add %{name} | |
53 | |
54 | |
55 %preun | |
56 [ $1 = 0 ] && /sbin/service %{name} stop || : | |
57 | |
58 | |
59 %postun | |
60 [ $1 = 0 ] && /sbin/chkconfig --del %{name} | |
61 | |
62 | |
63 %files | |
64 %defattr(-,root,root,-) | |
65 %{_sbindir}/* | |
66 %{_mandir}/man1/* | |
67 %{_mandir}/man5/* | |
68 %docdir %{_datadir}/doc/%{name}-%{version} | |
69 %{_datadir}/doc/%{name}-%{version} | |
70 %config(noreplace) %{_sysconfdir}/%{name}.conf | |
71 /etc/rc.d/init.d/%{name} | |
72 | |
73 | |
74 %changelog | |
75 * Tue Apr 01 2008 Carl Byington <carl@five-ten-sg.com> - 1.0.1 | |
76 - initial version | |
77 |