wok-6.x view icmptx/receipt @ rev 21980

updated stuntman (1.2.6 -> 1.2.15)
author Hans-G?nter Theisgen
date Fri Oct 11 17:56:48 2019 +0100 (2019-10-11)
parents de49f29b101e
children b569b85b0fb9
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="https://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 }