wok-6.x annotate dcfldd/receipt @ rev 24385
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 11:38:23 2022 +0000 (2022-02-07) |
parents | 522bd129061c |
children | d31cf85c8537 |
rev | line source |
---|---|
pascal@17075 | 1 # SliTaz package receipt. |
pascal@17075 | 2 |
pascal@17075 | 3 PACKAGE="dcfldd" |
pascal@17075 | 4 VERSION="1.3.4-1" |
pascal@17075 | 5 CATEGORY="misc" |
pascal@17075 | 6 SHORT_DESC="Enhanced version dd with features useful for forensics and security." |
pascal@17075 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17075 | 8 LICENSE="GPL2" |
pascal@17075 | 9 WEB_SITE="http://dcfldd.sourceforge.net/" |
pascal@17075 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17075 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@17075 | 12 |
pascal@17075 | 13 DEPENDS="" |
pascal@17075 | 14 BUILD_DEPENDS="" |
pascal@17075 | 15 |
pascal@24385 | 16 # What is the latest version available today? |
pascal@24385 | 17 current_version() |
pascal@24385 | 18 { |
pascal@24385 | 19 wget -O - https://sourceforge.net/projects/dcfldd/files/dcfldd/ 2>/dev/null | \ |
pascal@24385 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 21 sed '/scope="row/!d;s|.*/dcfldd/||;s|/.*||;q' |
pascal@24385 | 22 } |
pascal@24385 | 23 |
pascal@17075 | 24 # Rules to configure and make the package. |
pascal@17075 | 25 compile_rules() |
pascal@17075 | 26 { |
pascal@17075 | 27 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@17075 | 28 make && |
pascal@17075 | 29 make DESTDIR=$DESTDIR install |
pascal@17075 | 30 } |
pascal@17075 | 31 |
pascal@17075 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17075 | 33 genpkg_rules() |
pascal@17075 | 34 { |
pascal@17075 | 35 mkdir -p $fs/usr |
pascal@17075 | 36 cp -a $install/usr/bin $fs/usr |
pascal@17075 | 37 } |