From a0fba12cbc5a998e29606754a467e8d37425d06e Mon Sep 17 00:00:00 2001 From: onekk Date: Thu, 15 May 2014 19:15:11 +0200 Subject: [PATCH 1/4] New Package: pcsclite - middleware to comunicate to smartcard using the PC/SC protocol 1st step to implement the needed programs to use the italian CRS, might be useful for many other as the implementation is standard and the smartcard reader are quite widespread. Regards Carlo --- srcpkgs/libpcsclite | 1 + srcpkgs/pcsclite-devel | 1 + srcpkgs/pcsclite/template | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 120000 srcpkgs/libpcsclite create mode 120000 srcpkgs/pcsclite-devel create mode 100644 srcpkgs/pcsclite/template diff --git a/srcpkgs/libpcsclite b/srcpkgs/libpcsclite new file mode 120000 index 00000000000..9892e3e23cc --- /dev/null +++ b/srcpkgs/libpcsclite @@ -0,0 +1 @@ +pcsclite \ No newline at end of file diff --git a/srcpkgs/pcsclite-devel b/srcpkgs/pcsclite-devel new file mode 120000 index 00000000000..9892e3e23cc --- /dev/null +++ b/srcpkgs/pcsclite-devel @@ -0,0 +1 @@ +pcsclite \ No newline at end of file diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template new file mode 100644 index 00000000000..a162062ae62 --- /dev/null +++ b/srcpkgs/pcsclite/template @@ -0,0 +1,39 @@ +# Template file for 'pcsclite' +pkgname=pcsclite +version=1.8.11 +revision=1 +build_style=gnu-configure +maintainer="Carlo Dormeletti " +homepage="https://alioth.debian.org/projects/pcsclite" +license="LGPL" +short_desc="PCSCLite - Middleware to access a smart card using SCard API (PC/SC) " +configure_args="--enable-libudev" +hostmakedepends=" pkg-config" +makedepends="intltool libudev-devel libusb-devel systemd-devel" +depends="python" +distfiles="https://alioth.debian.org/frs/download.php/file/3991/${pkgname}-${version}.tar.bz2" +checksum="945041c94c53959ae5a767616a4ec5099fe67f549bfd344e8bd0cfe7a3c71ac6" +wrksrc="pcsc-lite-${version}" +conf_files=" + /etc/reader.conf + " + +pcsclite-devel_package() { + short_desc+=" - development files" + depends="libpcsclite>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.la" + vmove "usr/lib/*.so" + } +} + +libpcsclite_package() { + short_desc+=" - library files" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +# vim: set ts=4 sw=4 sts=4 et: From 5628b1a0449f2e357480364565c237c0c8c02501 Mon Sep 17 00:00:00 2001 From: onekk Date: Thu, 15 May 2014 21:26:28 +0200 Subject: [PATCH 2/4] pcsclite: modified to make it work and to tidy the identation (hope) it is right with gvim and the line you gave me it mix spaces and tabs strange, maybe i'm missing something in vimrc Regards Carlo --- srcpkgs/pcsclite/template | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/srcpkgs/pcsclite/template b/srcpkgs/pcsclite/template index a162062ae62..5c37e30b69e 100644 --- a/srcpkgs/pcsclite/template +++ b/srcpkgs/pcsclite/template @@ -5,26 +5,24 @@ revision=1 build_style=gnu-configure maintainer="Carlo Dormeletti " homepage="https://alioth.debian.org/projects/pcsclite" -license="LGPL" +license="Modified BSD" short_desc="PCSCLite - Middleware to access a smart card using SCard API (PC/SC) " configure_args="--enable-libudev" -hostmakedepends=" pkg-config" -makedepends="intltool libudev-devel libusb-devel systemd-devel" +hostmakedepends="intltool pkg-config" +makedepends="libudev-devel libusb-devel systemd-devel" depends="python" distfiles="https://alioth.debian.org/frs/download.php/file/3991/${pkgname}-${version}.tar.bz2" checksum="945041c94c53959ae5a767616a4ec5099fe67f549bfd344e8bd0cfe7a3c71ac6" wrksrc="pcsc-lite-${version}" -conf_files=" - /etc/reader.conf - " +conf_files="/etc/reader.conf" pcsclite-devel_package() { short_desc+=" - development files" depends="libpcsclite>=${version}_${revision}" pkg_install() { - vmove usr/include - vmove usr/lib/pkgconfig - vmove "usr/lib/*.la" + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.la" vmove "usr/lib/*.so" } } From 9b716913f57ef665d709d32e7441950774fa1f10 Mon Sep 17 00:00:00 2001 From: onekk Date: Sat, 17 May 2014 10:48:39 +0200 Subject: [PATCH 3/4] pcsclite: trying the common/shlibs thing, hope it,s work --- common/shlibs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/shlibs b/common/shlibs index 830dc375d60..922d8585f47 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1612,3 +1612,5 @@ liblsan.so.0 libsanitizer-4.9.0_1 libcilkrts.so.5 libcilkrts-4.9.0_1 libvtv.so.0 libvtv-4.9.0_1 libatomic.so.1 libatomic-4.9.0_1 +libpcsclite.so.1 libpcsclite-1.8.11_1 +libpcscspy.so.0 libpcsclite-1.8.11_1 \ No newline at end of file From f6e2c31be2b1a4438b037e822973643f9e68593b Mon Sep 17 00:00:00 2001 From: onekk Date: Sat, 17 May 2014 10:55:17 +0200 Subject: [PATCH 4/4] common/shlibs: newline fixed --- common/shlibs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/shlibs b/common/shlibs index 922d8585f47..f7bd9c43787 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1613,4 +1613,4 @@ libcilkrts.so.5 libcilkrts-4.9.0_1 libvtv.so.0 libvtv-4.9.0_1 libatomic.so.1 libatomic-4.9.0_1 libpcsclite.so.1 libpcsclite-1.8.11_1 -libpcscspy.so.0 libpcsclite-1.8.11_1 \ No newline at end of file +libpcscspy.so.0 libpcsclite-1.8.11_1