wok-6.x annotate nmap/receipt @ rev 24999
updated nmap (7.80 -> 7.92)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 13:38:34 2022 +0100 (2022-05-16) |
parents | 2a0479881723 |
children |
rev | line source |
---|---|
erjo@180 | 1 # SliTaz package receipt. |
erjo@180 | 2 |
erjo@180 | 3 PACKAGE="nmap" |
Hans-G?nter@24999 | 4 VERSION="7.92" |
erjo@180 | 5 CATEGORY="security" |
Hans-G?nter@21546 | 6 TAGS="network" |
erjo@180 | 7 SHORT_DESC="The Network Mapper." |
erjo@784 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15003 | 9 LICENSE="GPL2" |
Hans-G?nter@21546 | 10 WEB_SITE="https://nmap.org/" |
Hans-G?nter@21546 | 11 |
erjo@180 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21546 | 13 WGET_URL="${WEB_SITE}dist/$TARBALL" |
Hans-G?nter@21546 | 14 |
Hans-G?nter@21546 | 15 DEPENDS="gcc-lib-base libpcap openssl pcre" |
Hans-G?nter@21546 | 16 BUILD_DEPENDS="libpcap-dev openssl-dev pcre-dev python-dev" |
Hans-G?nter@21546 | 17 |
pankso@16449 | 18 HOST_ARCH="i486 arm" |
erjo@180 | 19 |
pascal@24436 | 20 # What is the latest version available today? |
pascal@24436 | 21 current_version() |
pascal@24436 | 22 { |
pascal@24436 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24436 | 24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24436 | 25 } |
pascal@24436 | 26 |
erjo@180 | 27 # Rules to configure and make the package. |
erjo@180 | 28 compile_rules() |
erjo@180 | 29 { |
Hans-G?nter@21546 | 30 # patch -p1 < $stuff/$PACKAGE-$VERSION-nolua.patch |
Hans-G?nter@21546 | 31 |
Hans-G?nter@21546 | 32 ./configure \ |
Hans-G?nter@21546 | 33 --cache-file=$PWD/config.cache \ |
Hans-G?nter@21546 | 34 --without-liblua \ |
samuel_trassare@14115 | 35 $CONFIGURE_ARGS && |
pascal@14121 | 36 make 2>&1 | grep -v makefile.dep && |
Hans-G?nter@24999 | 37 make install-nmap DESTDIR=$DESTDIR |
erjo@180 | 38 } |
erjo@180 | 39 |
erjo@180 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@180 | 41 genpkg_rules() |
erjo@180 | 42 { |
Hans-G?nter@21546 | 43 mkdir -p $fs/usr/share |
Hans-G?nter@21546 | 44 |
Hans-G?nter@21546 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21546 | 46 cp -a $install/usr/share/nmap $fs/usr/share |
pascal@23957 | 47 cp -a $src/ncat/docs/ncat.1 $install/usr/share/man/man1 |
erjo@180 | 48 } |