wok view icmptx/receipt @ rev 24441

firefox-official*: prohibit user update
author Hans-G?nter Theisgen
date Mon Feb 14 07:01:08 2022 +0100 (2022-02-14)
parents a78610b2eb47
children 429cd2dffc4f
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 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/tags 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 mv $SOURCE $src 2> /dev/null
25 cd $src
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp $src/$PACKAGE $fs/usr/bin
34 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 cat << EOT
40 Server side example (on icmp-gateway) :
41 # icmptx -s icmp-gateway &
42 # sleep 1
43 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
44 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
45 # echo 1 > /proc/sys/net/ipv4/ip_forward
46 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
48 client side example (assume 192.168.1.1 as default gw for wlan interface) :
49 # icmptx -c icmp-gateway &
50 # sleep 1
51 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
52 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
53 # route add default gw 10.0.1.1 tun0
55 EOT
56 }