wok-6.x annotate scanssh/receipt @ rev 25104
Up klavaro (1.2.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 08:45:04 2022 +0000 (2022-06-22) |
parents | 934055de50e2 |
children |
rev | line source |
---|---|
erjo@3616 | 1 # SliTaz package receipt. |
erjo@3616 | 2 |
erjo@3616 | 3 PACKAGE="scanssh" |
slaxemulator@6608 | 4 VERSION="2.1" |
erjo@3616 | 5 CATEGORY="network" |
erjo@3616 | 6 SHORT_DESC="Search for SSH server" |
erjo@3616 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15587 | 8 LICENSE="BSD" |
erjo@3616 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20679 | 10 WEB_SITE="https://www.monkey.org/~provos/scanssh/" |
pascal@24974 | 11 WGET_URL="https://www.monkey.org/~provos/$TARBALL" |
pascal@17141 | 12 TAGS="ssh" |
erjo@3616 | 13 |
pascal@15587 | 14 DEPENDS="libpcap libdnet libevent" |
pascal@15587 | 15 BUILD_DEPENDS="libpcap-dev libdnet-dev libevent libevent-dev autoconf" |
pascal@15587 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
erjo@3616 | 24 # Rules to configure and make the package. |
erjo@3616 | 25 compile_rules() |
erjo@3616 | 26 { |
erjo@3616 | 27 ./configure \ |
erjo@3616 | 28 --prefix=/usr \ |
erjo@3616 | 29 $CONFIGURE_ARGS && |
erjo@3616 | 30 make |
pascal@19369 | 31 install -d -m 755 $DESTDIR/usr/share/man/man1 && |
pascal@19371 | 32 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 |
erjo@3616 | 33 } |
erjo@3616 | 34 |
erjo@3616 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3616 | 36 genpkg_rules() |
erjo@3616 | 37 { |
erjo@3616 | 38 mkdir -p $fs/usr/bin |
erjo@3616 | 39 cp -a $src/scanssh $fs/usr/bin |
erjo@3616 | 40 } |
erjo@3616 | 41 |