blob: 01594c96ff615180d52eb0abd63b67e3c4deb8f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=opensc
_realname=OpenSC
pkgver=0.20.0
pkgrel=2
pkgdesc="Open source smart card tools and middleware"
url="https://github.com/OpenSC/OpenSC"
arch="all"
license="LGPL-2.1-or-later"
depends="pcsc-lite"
depends_dev="zlib-dev pcsc-lite-dev openssl-dev readline-dev"
makedepends="$depends_dev automake autoconf m4 gettext libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
source="$_realname-$pkgver.tar.gz::https://github.com/OpenSC/OpenSC/archive/$pkgver.tar.gz
CVE-2020-26570.patch
CVE-2020-26571.patch
CVE-2020-26572.patch
"
builddir="$srcdir/$_realname-$pkgver"
# secfixes:
# 0.20.0-r2:
# - CVE-2020-26570
# - CVE-2020-26571
# - CVE-2020-26572
# 0.20.0-r0:
# - CVE-2019-6502
# - CVE-2019-15945
# - CVE-2019-15946
# - CVE-2019-19479
# - CVE-2019-19480
# - CVE-2019-19481
# 0.19.0-r0:
# - CVE-2018-16391
# - CVE-2018-16392
# - CVE-2018-16393
# - CVE-2018-16418
# - CVE-2018-16419
# - CVE-2018-16420
# - CVE-2018-16421
# - CVE-2018-16422
# - CVE-2018-16423
# - CVE-2018-16424
# - CVE-2018-16425
# - CVE-2018-16426
# - CVE-2018-16427
prepare() {
default_prepare
./bootstrap
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-zlib \
--enable-readline \
--enable-openssl \
--enable-pcsc \
--enable-sm
make
}
package() {
make DESTDIR="$pkgdir" install
install -D -m644 etc/opensc.conf \
"$pkgdir/etc/opensc.conf"
mkdir -p "$pkgdir"/usr/share/bash-completion
mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
amove usr/share/bash-completion/completions
}
sha512sums="1360ee35f579cbeecf368777bb60d6c23ec2a80a2983328ea2c193530cc9b101a807ff1e2982ad34bfcc2bae2c867feecf300b6229d15057e796bd31ecffb02d OpenSC-0.20.0.tar.gz
e5d3aa047459986bbdefcb436ada8079345fa5f5d4498062f8cd1c1af9c769b56e7b1a79f792aa85e767b21d802815ec52fff5093540ac928da203c634b01996 CVE-2020-26570.patch
aa822cddb8526d4ed9a124f5b5854688e82f1101c8a2ac05b33784f43f0c79fdc0f0772bc89ced066bfe700ad674209e0cec9707e9af326c028b8021d321ea1b CVE-2020-26571.patch
0e71e69396123578def598cdb9f359000e15bf4d9cfeca0df50808d31bbeee8ecd458333fb8734a7569112c5559ca2d4bdb740cef9360a8bcba3be3650bd32bf CVE-2020-26572.patch"
|