wok annotate pamtester/receipt @ rev 25611
Add zx0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 01 18:37:27 2023 +0000 (14 months ago) |
parents | 7dd01dedad38 |
children |
rev | line source |
---|---|
pascal@11214 | 1 # SliTaz package receipt. |
pascal@11214 | 2 |
pascal@11214 | 3 PACKAGE="pamtester" |
pascal@11214 | 4 VERSION="0.1.2" |
pascal@11214 | 5 CATEGORY="system-tools" |
pascal@11214 | 6 SHORT_DESC="Test the pluggable authentication modules (PAM) facility" |
pascal@11214 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15375 | 8 LICENSE="BSD" |
pascal@11214 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25460 | 10 WEB_SITE="https://$PACKAGE.sourceforge.net/" |
pascal@11214 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15375 | 12 |
pascal@11214 | 13 DEPENDS="pam" |
pascal@11214 | 14 BUILD_DEPENDS="pam pam-dev" |
pascal@11214 | 15 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/pamtester/files/pamtester/ 2>/dev/null | \ |
pascal@25607 | 20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/pamtester/||;s|/.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
pascal@11214 | 24 # Rules to configure and make the package. |
pascal@11214 | 25 compile_rules() |
pascal@11214 | 26 { |
pascal@11214 | 27 cd $src |
pascal@11214 | 28 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@11214 | 29 --mandir=/usr/share/man \ |
pascal@11214 | 30 $CONFIGURE_ARGS && |
pascal@11214 | 31 make && |
pascal@11214 | 32 make DESTDIR=$DESTDIR install |
pascal@11214 | 33 } |
pascal@11214 | 34 |
pascal@11214 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11214 | 36 genpkg_rules() |
pascal@11214 | 37 { |
pascal@11214 | 38 mkdir -p $fs/usr |
pascal@15375 | 39 cp -a $install/usr/bin $fs/usr |
pascal@11214 | 40 } |