updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / fakeroute / PKGBUILD
blob1dffcc0171e547b6b8d3977268d8e533083c1b9c
1 # Contributor: virtuemood <virtue@archlinux.us>
2 pkgname=fakeroute
3 pkgver=0.3
4 pkgrel=1
5 license=unknown
6 source=http://www.thoughtcrime.org/software/fakeroute/${pkgname}-${pkgver}.tar.gz
7 pkgdesc="a hack that makes your host appear (to unix traceroute) to be anywhere"
8 arch=('i686' 'x86_64')
9 url=http://www.thoughtcrime.org/software/fakeroute/
10 md5sums=('345ab75c37e919d9295dd194c376e0f8')
12 build() {
13   cd $startdir/src/$pkgname-$pkgver
14   ./configure --prefix=/usr
15   make || return 1
16   make prefix=$startdir/pkg/usr install
19 echo Usage:
20 echo To use fakeroute, you must define a route file with your fake route. 
21 echo The file should be a newline separated list of dotted quad IP addresses
22 echo For example, 10.0.0.34 could have a route.conf that looks like\:
23 echo .
24 echo 216.102.187.130
25 echo 165.87.161.74
26 echo .
27 echo traceroute to localhost \(127.0.0.1\), 30 hops max, 40 byte packets
28 echo  1  core4-g3-0.snfc21.pbi.net \(216.102.187.130\)  0.324 ms  0.247 ms  0.162 ms
29 echo  2  sfra1sr3-so-1-1-1-0.ca.us.prserv.net \(165.87.161.74\)  0.164 ms  0.265 ms  0.159 ms
30 echo .
31 echo To run, become root, and simply execute "fakeroute -f <route_file>".
32 echo .
33 sleep 1