wok-6.x annotate icmptx/receipt @ rev 17897

Add: perltidy
author Nathan Neulinger <nneul@neulinger.org>
date Thu Apr 02 22:07:09 2015 +0000 (2015-04-02)
parents aa502dab7c89
children a78610b2eb47
rev   line source
pascal@4628 1 # SliTaz package receipt.
pascal@4628 2
pascal@4628 3 PACKAGE="icmptx"
pascal@4629 4 VERSION="0.2"
pascal@4628 5 CATEGORY="network"
pascal@4628 6 SHORT_DESC="Tunnel IP connections using ICMP echo request."
pascal@4628 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15600 8 LICENSE="GPL3"
pascal@4629 9 SOURCE="jakkarth-icmptx-0386ff2"
pascal@4629 10 TARBALL="$SOURCE.tar.gz"
pascal@4629 11 WEB_SITE="http://github.com/jakkarth/icmptx"
pascal@4629 12 WGET_URL="http://download.github.com/$TARBALL"
pascal@4628 13
pascal@4628 14 # Rules to configure and make the package.
pascal@4628 15 compile_rules()
pascal@4628 16 {
pascal@4629 17 mv $SOURCE $src 2> /dev/null
pascal@4628 18 cd $src
pascal@4628 19 make
pascal@4628 20 }
pascal@4628 21
pascal@4628 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4628 23 genpkg_rules()
pascal@4628 24 {
pascal@4628 25 mkdir -p $fs/usr/bin
pascal@4628 26 cp $src/$PACKAGE $fs/usr/bin
pascal@4628 27 }
pascal@4628 28
pascal@4628 29 # Pre and post install commands for Tazpkg.
pascal@4628 30 post_install()
pascal@4628 31 {
pascal@4628 32 cat << EOT
pascal@4628 33 Server side example (on icmp-gateway) :
pascal@4629 34 # icmptx -s icmp-gateway &
pascal@4629 35 # sleep 1
pascal@4628 36 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
pascal@4628 37 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
pascal@4628 38 # echo 1 > /proc/sys/net/ipv4/ip_forward
pascal@4628 39 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
pascal@4628 40
pascal@4628 41 client side example (assume 192.168.1.1 as default gw for wlan interface) :
pascal@4628 42 # icmptx -c icmp-gateway &
pascal@4629 43 # sleep 1
pascal@4628 44 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
pascal@4628 45 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
pascal@4628 46 # route add default gw 10.0.1.1 tun0
pascal@4628 47
pascal@4628 48 EOT
pascal@4628 49 }
pascal@4628 50