view @ 1:47f787af96c1

update documentation to match code
author Carl Byington <>
date Tue, 13 May 2008 15:46:53 -0700
parents 48d06780cf77
children 180d26aa2a17
line wrap: on
line source

%define localstatedir   /var/lib

Summary:            Route flap detector
Name:               @PACKAGE@
Version:            @VERSION@
Release:            1%{?dist}
License:            GPLv3+
Group:              System Environment/Daemons
Source:   {name}/packages/%{name}-%{version}.tar.gz
BuildRoot:          %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL:      {name}/
AutoReqProv:        no

Requires(post,preun):   /sbin/chkconfig
Requires(post,preun):   /sbin/service
Requires:               quagga
Requires:               coreutils
BuildRequires:          gcc gcc-c++
Requires:     ,,,,

This is a route flap detector, that classifies certain routes as
suspicious. It uses the log entries produced by bgpd from the quagga
package to maintain a shadow copy of the bgp routing table. Any
routes that are new are suspicious, as are any routes that have
as paths with newly adjacent as systems.

%setup -q

make %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}        $RPM_BUILD_ROOT/etc/rc.d/init.d



/sbin/chkconfig --add %{name}

[ $1 = 0 ] && /sbin/service %{name} stop || :

[ $1 = 0 ] && /sbin/chkconfig --del %{name}

%docdir %{_datadir}/doc/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/%{name}.conf

* Tue Apr 01 2008 Carl Byington <> - 1.0.1
- initial version