[go: up one dir, main page]

File: fake.spec

package info (click to toggle)
fake 1.1.7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 324 kB
  • ctags: 40
  • sloc: sh: 183; ansic: 103; makefile: 88
file content (59 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
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