summaryrefslogtreecommitdiff
path: root/sys-apps/pcsc-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/pcsc-tools
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/pcsc-tools')
-rw-r--r--sys-apps/pcsc-tools/Manifest6
-rw-r--r--sys-apps/pcsc-tools/files/smartcard.cron15
-rw-r--r--sys-apps/pcsc-tools/metadata.xml13
-rw-r--r--sys-apps/pcsc-tools/pcsc-tools-1.4.27.ebuild69
4 files changed, 103 insertions, 0 deletions
diff --git a/sys-apps/pcsc-tools/Manifest b/sys-apps/pcsc-tools/Manifest
new file mode 100644
index 000000000000..8d62a29052f4
--- /dev/null
+++ b/sys-apps/pcsc-tools/Manifest
@@ -0,0 +1,6 @@
+AUX smartcard.cron 319 SHA256 f01e91705425e0c1d85bdc0e5eafb9ac423e94e2d109279f58bf75e02ee1d398 SHA512 cb34e75090ff0fde349b81867383ed776b4c89672039f42426e27d2fce77ba0575827d2627b82fc9c435d6091b26e7c2a0e51dbcd1bdd1c883b8c37000ed516e WHIRLPOOL b18f7aa7e4e2138a2cdc8177de9972710a575acb861687bd1b749d02c9a8a6a06bacd9def2073d9e93cbb92863c025b991e5a16e2b061871b9de7878e81275d6
+DIST pcsc-tools-1.4.27.tar.gz 192342 SHA256 aca73c890293de181cb214b675efac733853afdc97d0c151a3fb5ced28982e55 SHA512 f4532e6deab799c96fb344a8b3d07768b4c13d8800a486cf0bfe6200794e2b49dcd1c761dec86dca3c350d88577ec2bba420298c693449fddeeff93672449836 WHIRLPOOL d6a1b3762714eda3a57f436b19c3bacc4be090191f339dff47d7f6284e17836d86dfb0537385461aebcce8fbc209f27e4c2c3803c97c3cacc518dca7a0352686
+EBUILD pcsc-tools-1.4.27.ebuild 1443 SHA256 4fe96bd52719ad16926151e333d4099557633d0df2956e42a84db0db73be3500 SHA512 4f2c67271f3e343469e0d556980a760e376c143a35763ab740885ef154728d8416f8e36beeda24b924bad5986c814cb1604eef6301b1f1d0982ca2909d1a4d35 WHIRLPOOL 6de13462f4b42e1fd6af14cf666fc8e0a1750106f5ded8511f282e4e622db01634180e2c55477327e79137bf83ce50ca31143776345b00a4721fdb81a9639f3c
+MISC ChangeLog 4191 SHA256 f19a9afb75061a2e69ef4e352fc696ce1aa42db389db62dc152ee5272482417a SHA512 62b426d08d2f71c790a00216050aacf639292d1004e3603425e89a0f62c45e224ca58e7a322d37f28a37f114985c4b01843f75b358fc180b3e229507bd308f08 WHIRLPOOL 455cfd7dd05887f45660dffae0c7586cbfb4fe0aff3075db4e95d10902b4bfa6b67e0df853f11559039bb5515f8417f515d4ae17cc11ee8c104d4886685ba1d2
+MISC ChangeLog-2015 5159 SHA256 bfcd5a6614afa451163b12455b12bd8b9d160b4bb3332cf7be5c20b9070873f8 SHA512 23939d397148f7604f8c70a66875a24987234b33896548cd783398e0fd3c89e0fcc92f254f663d6c3200449ebb0a57ec477a1eb8c22063c1a822919ce797e4db WHIRLPOOL 5191d80220cffb5f682f37187a62894802d0da2aa000ace65e899a719098f21d0bfd0c090af417acc07cafa850c5697f33d4d9a0d63a2638723141d339050d0f
+MISC metadata.xml 470 SHA256 71a288b765cb24293a2e62930cce2c7b2d11e045d824a65b471dcce471a2ff9f SHA512 bd45fbe04b4a3e8b1501d3807f879dc1982288a10d4d209d01690e2ad1a2fbb8a475721961835717a2925e127e26135639bf6bb1f35e147595f9e8e619481079 WHIRLPOOL 276b68377a72bf810348192da6e358e7d853ee67dd451f4a20db7afa7fb3805e83b23810358a44ca3f99ec7598086fa6408690d2696de274ea66e5c21be6b804
diff --git a/sys-apps/pcsc-tools/files/smartcard.cron b/sys-apps/pcsc-tools/files/smartcard.cron
new file mode 100644
index 000000000000..314f46f107ef
--- /dev/null
+++ b/sys-apps/pcsc-tools/files/smartcard.cron
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+SRC=http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt
+DEST=/usr/share/pcsc/smartcard_list.txt
+
+touch ${DEST} >/dev/null 2>&1 || exit 1
+
+if ! wget --quiet --no-timestamping -O "${DEST}".new "$SRC"; then
+ rm -f "${DEST}".new
+fi
+
+chmod a+r "${DEST}".new
+mv "${DEST}".new "${DEST}"
diff --git a/sys-apps/pcsc-tools/metadata.xml b/sys-apps/pcsc-tools/metadata.xml
new file mode 100644
index 000000000000..36fdbc824dde
--- /dev/null
+++ b/sys-apps/pcsc-tools/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+ </maintainer>
+ <longdescription>User tools for PC/SC SmartCard access (including pcsc_scan and the gscriptor GUI).</longdescription>
+
+ <use>
+ <flag name="network-cron">Monthly cronjob the update-smartcard_list script</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-apps/pcsc-tools/pcsc-tools-1.4.27.ebuild b/sys-apps/pcsc-tools/pcsc-tools-1.4.27.ebuild
new file mode 100644
index 000000000000..3c46092e3b4d
--- /dev/null
+++ b/sys-apps/pcsc-tools/pcsc-tools-1.4.27.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils fdo-mime multilib toolchain-funcs
+
+DESCRIPTION="PC/SC Architecture smartcard tools"
+HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"
+SRC_URI="http://ludovic.rousseau.free.fr/softwares/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="gtk network-cron"
+
+RDEPEND=">=sys-apps/pcsc-lite-1.4.14"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+RDEPEND="${RDEPEND}
+ dev-perl/pcsc-perl
+ gtk? ( dev-perl/Gtk2 )"
+
+DOCS=(
+ README Changelog
+)
+
+src_prepare() {
+ default
+ sed -i -e 's:-Wall -O2:$(CFLAGS):g' Makefile
+}
+
+src_compile() {
+ # explicitly only build the pcsc_scan application, or the man
+ # pages will be gzipped first, and then unpacked.
+ emake pcsc_scan CC=$(tc-getCC)
+}
+
+src_install() {
+ einstalldocs
+
+ # install manually, makes it much easier since the Makefile
+ # requires fiddling with
+ dobin ATR_analysis scriptor pcsc_scan
+ doman pcsc_scan.1 scriptor.1p ATR_analysis.1p
+
+ if use gtk; then
+ domenu gscriptor.desktop
+ dobin gscriptor
+ doman gscriptor.1p
+ fi
+
+ if use network-cron ; then
+ exeinto /etc/cron.monthly
+ newexe "${FILESDIR}"/smartcard.cron update-smartcard_list
+ fi
+
+ insinto /usr/share/pcsc
+ doins smartcard_list.txt
+}
+
+pkg_postinst() {
+ use gtk && fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}