wok view chntpw/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents ba12500dd54e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="chntpw"
4 VERSION="140201"
5 CATEGORY="security"
6 SHORT_DESC="Offline NT Password and Registry editor"
7 MAINTAINER="db_slitaz@m4x.org"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-source-$VERSION.zip"
10 WEB_SITE="http://pogostick.net/~pnh/ntpasswd/"
11 WGET_URL="http://pogostick.net/~pnh/ntpasswd/$TARBALL"
13 DEPENDS="openssl"
14 BUILD_DEPENDS="openssl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/main.html 2>/dev/null | \
20 sed '/Latest release/!d;s|.* is ||;s| (.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/chntpw $src/reged $src/cpnt $fs/usr/bin
35 }