wok annotate icmptx/receipt @ rev 24880

updated manaplus (1.9.3.23 -> 2.1.3.17)
author Hans-G?nter Theisgen
date Thu Mar 31 14:47:26 2022 +0100 (2022-03-31)
parents a78610b2eb47
children 429cd2dffc4f
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@15600 8 LICENSE="GPL3"
pascal@4629 9 SOURCE="jakkarth-icmptx-0386ff2"
pascal@4629 10 TARBALL="$SOURCE.tar.gz"
pascal@20669 11 WEB_SITE="https://github.com/jakkarth/icmptx"
pascal@4629 12 WGET_URL="http://download.github.com/$TARBALL"
pascal@4628 13
pascal@24308 14 # What is the latest version available today?
pascal@24308 15 current_version()
pascal@24308 16 {
pascal@24308 17 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24308 18 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 19 }
pascal@24308 20
pascal@4628 21 # Rules to configure and make the package.
pascal@4628 22 compile_rules()
pascal@4628 23 {
pascal@4629 24 mv $SOURCE $src 2> /dev/null
pascal@4628 25 cd $src
pascal@4628 26 make
pascal@4628 27 }
pascal@4628 28
pascal@4628 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4628 30 genpkg_rules()
pascal@4628 31 {
pascal@4628 32 mkdir -p $fs/usr/bin
pascal@4628 33 cp $src/$PACKAGE $fs/usr/bin
pascal@4628 34 }
pascal@4628 35
pascal@4628 36 # Pre and post install commands for Tazpkg.
pascal@4628 37 post_install()
pascal@4628 38 {
pascal@4628 39 cat << EOT
pascal@4628 40 Server side example (on icmp-gateway) :
pascal@4629 41 # icmptx -s icmp-gateway &
pascal@4629 42 # sleep 1
pascal@4628 43 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
pascal@4628 44 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
pascal@4628 45 # echo 1 > /proc/sys/net/ipv4/ip_forward
pascal@4628 46 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
pascal@4628 47
pascal@4628 48 client side example (assume 192.168.1.1 as default gw for wlan interface) :
pascal@4628 49 # icmptx -c icmp-gateway &
pascal@4629 50 # sleep 1
pascal@4628 51 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
pascal@4628 52 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
pascal@4628 53 # route add default gw 10.0.1.1 tun0
pascal@4628 54
pascal@4628 55 EOT
pascal@4628 56 }
pascal@4628 57