wok annotate unhide/receipt @ rev 24411
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 17:57:59 2022 +0000 (2022-02-09) |
parents | ab5565177ad5 |
children | cb67b4f8be05 |
rev | line source |
---|---|
pascal@15888 | 1 # SliTaz package receipt. |
pascal@15888 | 2 |
pascal@15888 | 3 PACKAGE="unhide" |
Hans-G?nter@23717 | 4 VERSION="20130526" |
pascal@15888 | 5 CATEGORY="security" |
pascal@15888 | 6 SHORT_DESC="Forensic tool to find hidden processes and TCP/UDP ports." |
pascal@15888 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15888 | 8 LICENSE="GPL3" |
pascal@15888 | 9 WEB_SITE="http://www.unhide-forensics.info/?Linux" |
Hans-G?nter@23717 | 10 |
Hans-G?nter@23717 | 11 TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@15888 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15888 | 13 |
pascal@15888 | 14 DEPENDS="" |
pascal@15888 | 15 BUILD_DEPENDS="" |
pascal@15888 | 16 |
pascal@24340 | 17 # What is the latest version available today? |
pascal@24340 | 18 current_version() |
pascal@24340 | 19 { |
pascal@24340 | 20 wget -O - https://sourceforge.net/projects/unhide/files/unhide/ 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;/tar/!d;s|.*nhide-||;s|.tar.*||;q' |
pascal@24340 | 22 } |
pascal@24340 | 23 |
pascal@15888 | 24 # Rules to configure and make the package. |
pascal@15888 | 25 compile_rules() |
pascal@15888 | 26 { |
pascal@15888 | 27 CC="gcc -Wall -O2 --static" |
pascal@15888 | 28 $CC -pthread unhide-linux*.c unhide-output.c -o unhide |
pascal@15888 | 29 $CC unhide_rb.c -o unhide_rb |
pascal@15888 | 30 $CC unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp |
pascal@15888 | 31 } |
pascal@15888 | 32 |
pascal@15888 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15888 | 34 genpkg_rules() |
pascal@15888 | 35 { |
pascal@15888 | 36 mkdir -p $fs/usr/sbin |
Hans-G?nter@23717 | 37 |
Hans-G?nter@23717 | 38 cp -a $src/unhide $fs/usr/sbin |
Hans-G?nter@23717 | 39 cp -a $src/unhide_rb $fs/usr/sbin |
Hans-G?nter@23717 | 40 cp -a $src/unhide-tcp $fs/usr/sbin |
pascal@15888 | 41 } |