wok-4.x view icmptx/receipt @ rev 10502

edje: up to fix e17 build (1.0.1)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 25 14:17:58 2011 +0200 (2011-05-25)
parents 59f353e896ed
children
line source
1 # SliTaz package receipt.
3 PACKAGE="icmptx"
4 VERSION="0.2"
5 CATEGORY="network"
6 SHORT_DESC="Tunnel IP connections using ICMP echo request."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="jakkarth-icmptx-0386ff2"
9 TARBALL="$SOURCE.tar.gz"
10 WEB_SITE="http://github.com/jakkarth/icmptx"
11 WGET_URL="http://download.github.com/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 mv $SOURCE $src 2> /dev/null
17 cd $src
18 make
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin
25 cp $src/$PACKAGE $fs/usr/bin
26 }
28 # Pre and post install commands for Tazpkg.
29 post_install()
30 {
31 cat << EOT
32 Server side example (on icmp-gateway) :
33 # icmptx -s icmp-gateway &
34 # sleep 1
35 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
36 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
37 # echo 1 > /proc/sys/net/ipv4/ip_forward
38 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
40 client side example (assume 192.168.1.1 as default gw for wlan interface) :
41 # icmptx -c icmp-gateway &
42 # sleep 1
43 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
44 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
45 # route add default gw 10.0.1.1 tun0
47 EOT
48 }