wok-next view 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 |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://github.com/jakkarth/icmptx"
11 TARBALL="jakkarth-icmptx-0386ff2.tar.gz"
12 WGET_URL="http://download.github.com/$TARBALL"
14 compile_rules() {
15 mv jakkarth-icmptx-0386ff2 $src 2> /dev/null
16 cd $src
17 make &&
18 install -Dm755 $src/icmptx $install/usr/bin/icmptx
19 }
21 genpkg_rules() {
22 copy @std
23 }
25 post_install() {
26 [ -n "$quiet" ] || cat <<EOT
28 .--------------------------------------------------------------.
29 | Server side example (on icmp-gateway): |
30 | |
31 | # icmptx -s icmp-gateway & |
32 | # sleep 1 |
33 | # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0 |
34 | # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all |
35 | # echo 1 > /proc/sys/net/ipv4/ip_forward |
36 | # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE |
37 |--------------------------------------------------------------|
38 | Client side example |
39 | (assume 192.168.1.1 as default gw for wlan interface): |
40 | |
41 | # icmptx -c icmp-gateway & |
42 | # sleep 1 |
43 | # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0 |
44 | # route add -host icmp-gateway gw 192.168.1.1 dev wlan0 |
45 | # route add default gw 10.0.1.1 tun0 |
46 '--------------------------------------------------------------'
48 EOT
49 }