aboutsummaryrefslogtreecommitdiffstats
path: root/community/opensc
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-10-19 16:10:53 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-10-19 16:11:10 +0300
commit5589934361999662654f960b2b00260320590d99 (patch)
treef26287415e42a0c2e0f48ba40e5f3bc02ed72adb /community/opensc
parent72ba34914fface74a63ecc53c358eb9fe0a5c3a6 (diff)
downloadaports-5589934361999662654f960b2b00260320590d99.tar.bz2
aports-5589934361999662654f960b2b00260320590d99.tar.xz
community/opensc: moved from testing
Diffstat (limited to 'community/opensc')
-rw-r--r--community/opensc/APKBUILD53
-rw-r--r--community/opensc/libressl.patch22
2 files changed, 75 insertions, 0 deletions
diff --git a/community/opensc/APKBUILD b/community/opensc/APKBUILD
new file mode 100644
index 0000000000..e69a8a4445
--- /dev/null
+++ b/community/opensc/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=opensc
+_realname=OpenSC
+pkgver=0.16.0
+pkgrel=0
+pkgdesc="Open source smart card tools and middleware"
+url="https://github.com/OpenSC/OpenSC"
+arch="all"
+license="LGPL"
+depends="pcsc-lite"
+depends_dev="zlib-dev pcsc-lite-dev libressl-dev readline-dev"
+makedepends="$depends_dev automake autoconf m4 gettext libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="$_realname-${pkgver}.tar.gz::https://github.com/OpenSC/OpenSC/archive/${pkgver}.tar.gz
+ libressl.patch"
+
+builddir="$srcdir/$_realname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./bootstrap || return 1
+ ./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 \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 etc/opensc.conf \
+ "$pkgdir/etc/opensc.conf" || return 1
+}
+
+md5sums="4148305139a80ec3d5db8bcccc89217f OpenSC-0.16.0.tar.gz
+2af60aeea860dccc07a368546bec24c3 libressl.patch"
+sha256sums="4969627f0eab48bef6a5d9e162facc3a49ba8e675fadb8a9a446391fcfa19bc6 OpenSC-0.16.0.tar.gz
+1685e2da7d5c2c3e6a7e8e831c812ee1592baadf7321b4dcb41f56cc6fff5d65 libressl.patch"
+sha512sums="87fb163eafa6a09b9f5495d8f00ec7abb914ab957282b0e03839afafb73484c8e9fdb2e8295c2a968b80d9f15b26edc358068d796fb1e29f532962552637f2b6 OpenSC-0.16.0.tar.gz
+6405ee573202112283ae7c1a7d667c523d3401e7d4b66109fa8ef8127d2da15b6cfd127e355679c7ea20a8cb93af3923c8560745915612b5df12da57781c2fb0 libressl.patch"
diff --git a/community/opensc/libressl.patch b/community/opensc/libressl.patch
new file mode 100644
index 0000000000..003328e000
--- /dev/null
+++ b/community/opensc/libressl.patch
@@ -0,0 +1,22 @@
+https://raw.githubusercontent.com/voidlinux/void-packages/4b22d402a290a6192853dd3994e24128023a3b7e/srcpkgs/opensc/patches/libressl.patch
+
+--- a/src/pkcs11/openssl.c.orig 2016-06-05 18:51:11.947157265 +0200
++++ b/src/pkcs11/openssl.c 2016-06-05 18:55:21.067170117 +0200
+@@ -180,7 +180,7 @@
+ e = ENGINE_by_id("gost");
+ if (!e)
+ {
+-#if !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST)
++#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST)
+ ENGINE_load_gost();
+ e = ENGINE_by_id("gost");
+ #else
+@@ -195,7 +195,7 @@
+ ENGINE_free(e);
+ e = NULL;
+ }
+-#endif /* !OPENSSL_NO_STATIC_ENGINE && !OPENSSL_NO_GOST */
++#endif /* !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST) */
+ }
+ if (e) {
+ ENGINE_set_default(e, ENGINE_METHOD_ALL);