wok-current view cmospwd/receipt @ rev 25586

Fix linux build with gcc > 6 again
author Stanislas Leduc <shann@slitaz.org>
date Mon May 29 12:23:26 2023 +0000 (17 months ago)
parents 39fb10403b4b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cmospwd"
4 VERSION="5.1"
5 CATEGORY="misc"
6 TAGS="CMOS"
7 SHORT_DESC="Decrypts password stored in cmos used to access BIOS SETUP."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.cgsecurity.org/wiki/CmosPwd"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://www.cgsecurity.org/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/cmospwd-/!d;/tar..z/!d;s|.*cmospwd-||;s|.tar.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src/src
26 rm -f cmospwd
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/src/cmospwd $fs/usr/bin
35 }