Mercurial > routeflapper
annotate routeflapper.spec.in @ 5:ccf40fd3b050
autoconf cleanup from libpst changes
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 07 Feb 2009 11:33:07 -0800 |
parents | 180d26aa2a17 |
children | 5e7c39aa868c |
rev | line source |
---|---|
0 | 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 | |
13 Requires(post,preun): /sbin/chkconfig | |
14 Requires(post,preun): /sbin/service | |
15 Requires: quagga | |
16 Requires: coreutils | |
17 BuildRequires: gcc gcc-c++ | |
18 | |
19 | |
20 %description | |
21 This is a route flap detector, that classifies certain routes as | |
22 suspicious. It uses the log entries produced by bgpd from the quagga | |
23 package to maintain a shadow copy of the bgp routing table. Any | |
24 routes that are new are suspicious, as are any routes that have | |
25 as paths with newly adjacent as systems. | |
26 | |
27 %prep | |
28 %setup -q | |
29 | |
30 %build | |
31 %configure | |
32 make %{?_smp_mflags} | |
33 | |
34 | |
35 %install | |
36 rm -rf $RPM_BUILD_ROOT | |
37 make DESTDIR=$RPM_BUILD_ROOT install | |
38 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d | |
4
180d26aa2a17
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
39 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
180d26aa2a17
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
40 mkdir -p $RPM_BUILD_ROOT/var/run/%{name} |
0 | 41 |
42 | |
43 %clean | |
44 rm -rf $RPM_BUILD_ROOT | |
45 | |
46 | |
47 %pre | |
48 | |
49 | |
50 %post | |
51 /sbin/chkconfig --add %{name} | |
52 | |
53 | |
54 %preun | |
55 [ $1 = 0 ] && /sbin/service %{name} stop || : | |
56 | |
57 | |
58 %postun | |
59 [ $1 = 0 ] && /sbin/chkconfig --del %{name} | |
60 | |
61 | |
62 %files | |
63 %defattr(-,root,root,-) | |
64 %{_sbindir}/* | |
65 %{_mandir}/man1/* | |
66 %{_mandir}/man5/* | |
67 %docdir %{_datadir}/doc/%{name}-%{version} | |
68 %{_datadir}/doc/%{name}-%{version} | |
69 %config(noreplace) %{_sysconfdir}/%{name}.conf | |
70 /etc/rc.d/init.d/%{name} | |
4
180d26aa2a17
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
71 %dir %attr(0750,%{name},root) /var/run/%{name} |
0 | 72 |
73 | |
74 %changelog | |
4
180d26aa2a17
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
75 * Thu Jun 12 2008 Carl Byington <carl@five-ten-sg.com> - 1.0.1-1 |
0 | 76 - initial version |
77 |