wok-next annotate icmptx/receipt @ rev 20851
Add uglifyjs; fix build / up: python-cython, xpra, xscavenger, xsshfs, zbar
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 24 16:46:03 2018 +0300 (2018-06-24) |
parents | e1c0edabdcb2 |
children | a3c581bf52b8 |
rev | line source |
---|---|
al@20473 | 1 # SliTaz package receipt v2. |
pascal@4628 | 2 |
pascal@4628 | 3 PACKAGE="icmptx" |
pascal@4629 | 4 VERSION="0.2" |
pascal@4628 | 5 CATEGORY="network" |
al@20473 | 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 WEB_SITE="http://github.com/jakkarth/icmptx" |
al@20473 | 10 |
al@20473 | 11 TARBALL="jakkarth-icmptx-0386ff2.tar.gz" |
pascal@4629 | 12 WGET_URL="http://download.github.com/$TARBALL" |
pascal@4628 | 13 |
al@20473 | 14 compile_rules() { |
al@20473 | 15 mv jakkarth-icmptx-0386ff2 $src 2> /dev/null |
pascal@4628 | 16 cd $src |
al@20473 | 17 make && |
al@20474 | 18 install -Dm755 $src/icmptx $install/usr/bin/icmptx |
pascal@4628 | 19 } |
pascal@4628 | 20 |
al@20473 | 21 genpkg_rules() { |
al@20473 | 22 copy @std |
pascal@4628 | 23 } |
pascal@4628 | 24 |
al@20473 | 25 post_install() { |
al@20473 | 26 [ -n "$quiet" ] || cat <<EOT |
pascal@4628 | 27 |
al@20473 | 28 .--------------------------------------------------------------. |
al@20473 | 29 | Server side example (on icmp-gateway): | |
al@20473 | 30 | | |
al@20473 | 31 | # icmptx -s icmp-gateway & | |
al@20473 | 32 | # sleep 1 | |
al@20473 | 33 | # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0 | |
al@20473 | 34 | # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all | |
al@20473 | 35 | # echo 1 > /proc/sys/net/ipv4/ip_forward | |
al@20473 | 36 | # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE | |
al@20473 | 37 |--------------------------------------------------------------| |
al@20473 | 38 | Client side example | |
al@20473 | 39 | (assume 192.168.1.1 as default gw for wlan interface): | |
al@20473 | 40 | | |
al@20473 | 41 | # icmptx -c icmp-gateway & | |
al@20473 | 42 | # sleep 1 | |
al@20473 | 43 | # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0 | |
al@20473 | 44 | # route add -host icmp-gateway gw 192.168.1.1 dev wlan0 | |
al@20473 | 45 | # route add default gw 10.0.1.1 tun0 | |
al@20473 | 46 '--------------------------------------------------------------' |
pascal@4628 | 47 |
pascal@4628 | 48 EOT |
pascal@4628 | 49 } |