aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-09-30 14:29:01 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-09-30 14:33:36 +0000
commit92782277b458facbdef6bc322ed6083853d809eb (patch)
tree7fff3e2f987b1c9aecede8ce0835fa4daca53e51 /testing
parentccbcc6c918cad57a3dc0fec1ca9cc051dc49a74c (diff)
downloadaports-92782277b458facbdef6bc322ed6083853d809eb.tar.bz2
aports-92782277b458facbdef6bc322ed6083853d809eb.tar.xz
testing/pcsc-lite: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/pcsc-lite/APKBUILD68
-rw-r--r--testing/pcsc-lite/pcscd.initd23
2 files changed, 91 insertions, 0 deletions
diff --git a/testing/pcsc-lite/APKBUILD b/testing/pcsc-lite/APKBUILD
new file mode 100644
index 0000000000..4463ecbe27
--- /dev/null
+++ b/testing/pcsc-lite/APKBUILD
@@ -0,0 +1,68 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=pcsc-lite
+pkgver=1.8.8
+pkgrel=0
+pkgdesc="Middleware to access a smart card using SCard API (PC/SC)"
+url="http://pcsclite.alioth.debian.org/pcsclite.html"
+arch="all"
+license="Custom"
+depends=""
+depends_dev="udev-dev"
+makedepends="$depends_dev perl"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="https://alioth.debian.org/frs/download.php/3862/pcsc-lite-$pkgver.tar.bz2
+ pcscd.initd"
+
+_builddir="$srcdir"/pcsc-lite-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-libusb \
+ --enable-libudev \
+ --disable-maintainer-mode \
+ --disable-silent-rules \
+ --without-systemdsystemunitdir \
+ --enable-ipcdir=/run/pcscd \
+ --enable-usbdropdir=/usr/lib/pcsc/drivers \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m755 "$srcdir"/pcscd.initd \
+ "$pkgdir"/etc/init.d/pcscd || return 1
+ mkdir -p "$pkgdir"/usr/lib/pcsc/drivers
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+libs() {
+ pkgdesc="Middleware to access a smart card using SCard API (PC/SC) (libraries)"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib \
+ "$subpkgdir"/usr || return 1
+}
+
+md5sums="069dc875a2ae2d85a2ebceac73252c0a pcsc-lite-1.8.8.tar.bz2
+1d891cc0401773e5487269df06b881c6 pcscd.initd"
+sha256sums="fe66354a7e738d3ef8b4e572c7e447b85894da9262381fbf004e8abcc12885e7 pcsc-lite-1.8.8.tar.bz2
+e605bd74a16a978144346265aca4c48f709cf7c3fc1043930cdf591cba4b8620 pcscd.initd"
+sha512sums="02b0ce81fb1f3a0358967825499ff3687bd7375ac6b0ff892f23c0980864046330a3db6b1296aa7a4baa135f94a8b85112518a2584de3b522bd2b8dc58894658 pcsc-lite-1.8.8.tar.bz2
+3b70cdd1b07d1a118a5b808f3d2ab3d129c16c388d54d19df82886c2a1de947be7eb1e0da100395445681e68402e74d7a4c60bd070061b4495edd0143e27e394 pcscd.initd"
diff --git a/testing/pcsc-lite/pcscd.initd b/testing/pcsc-lite/pcscd.initd
new file mode 100644
index 0000000000..db366062ca
--- /dev/null
+++ b/testing/pcsc-lite/pcscd.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcsc-lite/files/pcscd-init.6,v 1.1 2013/01/16 20:49:25 flameeyes Exp $
+
+name="PC/SC Daemon"
+
+pidfile=/run/pcscd/pcscd.pid
+
+command=/usr/sbin/pcscd
+command_args="${EXTRA_OPTS}"
+
+start_stop_daemon_args="--user pcscd:pcscd"
+
+depend() {
+ need localmount
+ after udev openct
+ use logger
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o pcscd:pcscd /run/pcscd
+}