wok view scanssh/receipt @ rev 24462

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