wok-6.x annotate scalpel/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 164fcaca1cd0
children
rev   line source
pascal@4477 1 # SliTaz package receipt.
pascal@4477 2
pascal@4477 3 PACKAGE="scalpel"
pascal@4477 4 VERSION="1.60"
pascal@4477 5 CATEGORY="system-tools"
pascal@4477 6 SHORT_DESC="Frugal, high performance file carver."
pascal@4477 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15587 8 LICENSE="GPL2"
pascal@4477 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4477 10 WEB_SITE="http://www.digitalforensicssolutions.com/Scalpel"
pascal@4477 11 WGET_URL="$WEB_SITE/$TARBALL"
pascal@4477 12
pascal@24535 13 # What is the latest version available today?
pascal@24535 14 current_version()
pascal@24535 15 {
pascal@24535 16 wget -O - https://raw.githubusercontent.com/sleuthkit/scalpel/master/Changelog 2>/dev/null | \
pascal@24535 17 sed '/^[0-9]/!d;s|[^0-9\.].*||' | sort -Vr | sed q
pascal@24535 18 }
pascal@24535 19
pascal@4477 20 # Rules to configure and make the package.
pascal@4477 21 compile_rules()
pascal@4477 22 {
pascal@4477 23 cd $src && make
pascal@4477 24 }
pascal@4477 25
pascal@4477 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4477 27 genpkg_rules()
pascal@4477 28 {
pascal@4477 29 mkdir -p $fs/usr/bin $fs/etc
pascal@4477 30 cp -a $src/scalpel $fs/usr/bin
pascal@4477 31 cp -a $src/scalpel.conf $fs/etc
pascal@4477 32 }
pascal@4477 33