]>
Commit | Line | Data |
---|---|---|
f4bd6f7f | 1 | Summary: Switches in redundant servers using arp spoofing |
2 | Name: fake | |
18bc49b3 | 3 | Version: 1.1.2 |
f4bd6f7f | 4 | Release: 2 |
5 | Copyright: GPL | |
6 | Group: Networking/Utilities | |
8c753cd4 | 7 | Source: ftp://ftp.zipworld.com.au/pub/linux/fake/%{name}-%{version}.tar.gz |
f4bd6f7f | 8 | URL: http://linux.zipworld.com.au/redundant_linux/ |
3d0a2db4 | 9 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
455c16c5 | 10 | |
11 | %description | |
f4bd6f7f | 12 | Fake is a utility that enables the IP address be taken over by bringing up a |
13 | second interface on the host machine and using gratuitous arp. Designed to | |
14 | switch in backup servers on a LAN. | |
455c16c5 | 15 | |
16 | %prep | |
f4bd6f7f | 17 | %setup -q |
455c16c5 | 18 | make patch |
19 | ||
20 | %build | |
8c753cd4 | 21 | make CC="gcc $RPM_OPT_FLAGS" |
455c16c5 | 22 | |
23 | %install | |
24 | rm -rf $RPM_BUILD_ROOT | |
25 | ||
26 | make ROOT_DIR=$RPM_BUILD_ROOT install | |
27 | ||
8c753cd4 JR |
28 | rm -rf $RPM_BUILD_ROOT/etc/fake/run/CVS |
29 | ||
30 | gzip -9nf README AUTHORS ChangeLog docs/{arp_fun,redundant_linux}.txt | |
f4bd6f7f | 31 | |
455c16c5 | 32 | %clean |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
455c16c5 | 35 | %files |
f4bd6f7f | 36 | %defattr(644,root,root,755) |
37 | %doc *.gz docs/*.txt.gz | |
8c753cd4 JR |
38 | %attr(755,root,root) %{_bindir}/send_arp |
39 | %attr(755,root,root) %{_bindir}/fake | |
455c16c5 | 40 | %config /etc/fake/.fakerc |
41 | %config /etc/fake/clear_routers | |
42 | %config /etc/fake/instance_config/203.12.97.7.cfg | |
43 | /etc/fake/run |