wok annotate sshproxy/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 505d1daeed6c
children
rev   line source
pascal@4561 1 # SliTaz package receipt.
pascal@4561 2
pascal@4561 3 PACKAGE="sshproxy"
pascal@4561 4 VERSION="0.6.0_beta2"
pascal@4561 5 CATEGORY="network"
pascal@4561 6 SHORT_DESC="SSH proxy to connect without passwords or keys."
pascal@4561 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15582 8 LICENSE="GPL2"
pascal@4561 9 TARBALL="sshproxy_0.6.0~beta2.orig.tar.gz"
pascal@22840 10 WEB_SITE="https://web.archive.org/web/20091027113547/http://sshproxy-project.org/"
pascal@25026 11 WGET_URL="https://mirror.xtom.jp/debian-archive/debian/pool/main/s/sshproxy/$TARBALL"
pascal@17141 12 TAGS="ssh"
erjo@9921 13
pascal@25074 14 DEPENDS="python paramiko python-mysql pycrypto python-ipaddress"
pascal@25074 15 BUILD_DEPENDS="paramiko python-mysql pycrypto python-ipaddress"
pascal@4561 16
pascal@24769 17 # What is the latest version available today?
pascal@24769 18 current_version()
pascal@24769 19 {
pascal@24769 20 wget -O - https://github.com/eldondevcg/sshproxy/tags 2>/dev/null | \
pascal@24769 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;s|-|_|;q'
pascal@24769 22 }
pascal@24769 23
pascal@4561 24 # Rules to configure and make the package.
pascal@4561 25 compile_rules()
pascal@4561 26 {
pascal@23885 27 python setup.py install --root=$DESTDIR &&
pascal@19369 28 install -d -m 755 $DESTDIR/usr/share/man/man1 &&
pascal@19369 29 install -d -m 755 $DESTDIR/usr/share/man/man5 &&
pascal@19369 30 install -d -m 755 $DESTDIR/usr/share/man/man8 &&
pascal@19369 31 install -d -m 755 $DESTDIR/usr/share/doc &&
pascal@19371 32 install -m 644 $src/doc/*.1 $DESTDIR/usr/share/man/man1 &&
pascal@19371 33 install -m 644 $src/doc/*.5 $DESTDIR/usr/share/man/man5 &&
pascal@19371 34 install -m 644 $src/doc/*.8 $DESTDIR/usr/share/man/man8 &&
pascal@19371 35 install -m 644 $src/[A-Z][A-Z]* $DESTDIR/usr/share/doc
pascal@4561 36 }
pascal@4561 37
pascal@4561 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4561 39 genpkg_rules()
pascal@4561 40 {
pascal@15582 41 cp -a $install/usr $fs
pascal@19369 42 rm -rf $fs/usr/share/doc $fs/usr/share/man
pascal@4561 43 }