wok-next annotate icmptx/receipt @ rev 11847

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