wok-current annotate pwauth/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 6135577f4d08 |
children | 1805f71c5d9f |
rev | line source |
---|---|
pankso@12191 | 1 # SliTaz package receipt. |
pankso@12191 | 2 |
pankso@12191 | 3 PACKAGE="pwauth" |
pankso@12191 | 4 VERSION="2.3.10" |
pankso@12191 | 5 CATEGORY="security" |
pankso@12191 | 6 SHORT_DESC="Support reasonably secure web auth using system password DB" |
pankso@12191 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15376 | 8 LICENSE="BSD" |
pankso@12191 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24308 | 10 WEB_SITE="https://github.com/phokz/pwauth" |
pankso@12191 | 11 WGET_URL="https://pwauth.googlecode.com/files/$TARBALL" |
pankso@12191 | 12 |
pankso@12191 | 13 DEPENDS="" |
pankso@12191 | 14 BUILD_DEPENDS="wget" |
pankso@12191 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
pankso@12191 | 23 # Rules to configure and make the package. |
pankso@12191 | 24 compile_rules() |
pankso@12191 | 25 { |
pankso@12191 | 26 cd $src && make |
pankso@12191 | 27 } |
pankso@12191 | 28 |
pankso@12191 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12191 | 30 genpkg_rules() |
pankso@12191 | 31 { |
pankso@12191 | 32 mkdir -p $fs/usr/bin |
pankso@12191 | 33 cp -a $src/pwauth $fs/usr/bin |
pankso@12191 | 34 } |