wok-6.x view icmptx/receipt @ rev 25466

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 09:32:27 2022 +0000 (2022-10-01)
parents b569b85b0fb9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="icmptx"
4 GITHASH="52df90f374b7d0ae1debee0c1fe1acd74f5e793f"
5 VERSION="20190501"
6 CATEGORY="network"
7 SHORT_DESC="Tunnel IP connections using ICMP echo request."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="$PACKAGE-$PACKAGE.zip"
11 WEB_SITE="https://github.com/jakkarth/icmptx"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
18 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
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 }