wok annotate opensc/receipt @ rev 24695

advancecomp: CVE-2019-8383 & CVE-2019-9210
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 15:13:28 2022 +0000 (2022-03-13)
parents 5ea0ce1cecc0
children
rev   line source
pascal@16234 1 # SliTaz package receipt.
pascal@16234 2
pascal@16234 3 PACKAGE="opensc"
Hans-G?nter@21636 4 VERSION="0.19.0"
pascal@16234 5 CATEGORY="security"
pascal@16234 6 SHORT_DESC="Tools and libraries for smart cards."
pascal@16234 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16234 8 LICENSE="LGPL2.1"
Hans-G?nter@21636 9 WEB_SITE="https://github.com/OpenSC/OpenSC/wiki"
Hans-G?nter@21636 10
pascal@16234 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21637 12 WGET_URL="https://github.com/OpenSc/OpenSc/releases/download/$VERSION/$TARBALL"
pascal@16234 13
pascal@16234 14 DEPENDS="libcrypto zlib"
Hans-G?nter@21636 15 BUILD_DEPENDS="openssl-dev pcsc-lite-dev"
Hans-G?nter@21636 16 CONFIG_FILES="/etc/opensc.conf"
pascal@16234 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24079 20 wget -O - ${WGET_URL%/rele*} 2>/dev/null | \
pascal@24079 21 sed '/releases.tag/!d;s|.*/tag.\(.*\)".*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@16234 24 # Rules to configure and make the package.
pascal@16234 25 compile_rules()
pascal@16234 26 {
Hans-G?nter@21636 27 ./configure \
Hans-G?nter@21636 28 --prefix=/usr \
Hans-G?nter@21636 29 --sysconfdir=/etc \
Hans-G?nter@21636 30 --localstatedir=/var \
Hans-G?nter@21636 31 --mandir=/usr/share/man \
pascal@16234 32 $CONFIGURE_ARGS &&
pascal@16234 33 make &&
pascal@16234 34 make DESTDIR=$DESTDIR install
pascal@16234 35 }
pascal@16234 36
pascal@16234 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16234 38 genpkg_rules()
pascal@16234 39 {
pascal@16234 40 mkdir -p $fs/usr/share
Hans-G?nter@21636 41
Hans-G?nter@21636 42 cp -a $install/etc $fs
Hans-G?nter@21636 43 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21636 44 cp -a $install/usr/share/opensc $fs/usr/share
Hans-G?nter@21636 45 cp -a $install/usr/lib $fs/usr
pascal@16234 46 }