1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# Note that this is NOT a relocatable package
%define ver 1.1.7
%define rel 1
%define prefix /usr
Summary: Switches in redundant servers using arp spoofing
Name: fake
Version: %ver
Release: %rel
Copyright: GPL
Group: Networking/Utilities
Source: ftp://ftp.vergenet.net/pub/fake/fake-%{ver}.tar.gz
Obsoletes: fake
BuildRoot: /tmp/fake-root
Packager: Horms <horms@vergenet.net>
URL: http://vergenet.net/fake/
Docdir: %{prefix}/doc
%description
Fake is a utility that enables the IP address be taken over
by bringing up a second interface on the host machine and
using gratuitous arp. Designed to switch in backup servers
on a LAN.
%prep
%setup -n fake-%{ver}
make patch
%build
CFLAGS="${RPM_OPT_FLAGS}"
make
%install
rm -rf $RPM_BUILD_ROOT
make ROOT_DIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-, root, root)
%doc AUTHORS
%doc ChangeLog
%doc docs/arp_fun.txt
%doc docs/redundant_linux.txt
%{prefix}/bin/*
%{prefix}/man/man8/*
%config /etc/fake/.fakerc
%config /etc/fake/clear_routers
%config /etc/fake/instance_config/203.12.97.7.cfg
|