wok view icmptx/receipt @ rev 17685

slitaz-i18n-extra/stuff/locale-pack.conf: add isomaster to EXTRA_PKGS
author Richard Dunbar <mojo@slitaz.org>
date Fri Feb 20 18:12:30 2015 -0500 (2015-02-20)
parents aa502dab7c89
children a78610b2eb47
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 LICENSE="GPL3"
9 SOURCE="jakkarth-icmptx-0386ff2"
10 TARBALL="$SOURCE.tar.gz"
11 WEB_SITE="http://github.com/jakkarth/icmptx"
12 WGET_URL="http://download.github.com/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $SOURCE $src 2> /dev/null
18 cd $src
19 make
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/bin
26 cp $src/$PACKAGE $fs/usr/bin
27 }
29 # Pre and post install commands for Tazpkg.
30 post_install()
31 {
32 cat << EOT
33 Server side example (on icmp-gateway) :
34 # icmptx -s icmp-gateway &
35 # sleep 1
36 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
37 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
38 # echo 1 > /proc/sys/net/ipv4/ip_forward
39 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
41 client side example (assume 192.168.1.1 as default gw for wlan interface) :
42 # icmptx -c icmp-gateway &
43 # sleep 1
44 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
45 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
46 # route add default gw 10.0.1.1 tun0
48 EOT
49 }