summaryrefslogtreecommitdiff
path: root/security/pcsc-tools
diff options
context:
space:
mode:
authorshannonjr <shannonjr@pkgsrc.org>2008-03-04 11:32:15 +0000
committershannonjr <shannonjr@pkgsrc.org>2008-03-04 11:32:15 +0000
commit5a21c9eec398a02131a345dc920b2cd42dba6873 (patch)
tree45a04e44adddf358f19de6a5c558206afd48fdbf /security/pcsc-tools
parent030533564255125a6700f9d009f3ccb5393adb38 (diff)
downloadpkgsrc-5a21c9eec398a02131a345dc920b2cd42dba6873.tar.gz
Provides several tools that are useful when working
with smart cards: csc_scan regularly scans every PC/SC reader connected to the host and reports when a card is inserted or removed. ATR_analysis is a Perl script used to parse the smart card ATR. The smartcard_list.txt contains ATR of some cards. It is used by ATR_analysis to find a card model corresponding to the ATR. The perl script scriptortis used to send commands to a smart card using a batch file or stdin.
Diffstat (limited to 'security/pcsc-tools')
-rw-r--r--security/pcsc-tools/DESCR9
-rw-r--r--security/pcsc-tools/Makefile32
-rw-r--r--security/pcsc-tools/PLIST13
-rw-r--r--security/pcsc-tools/distinfo6
-rw-r--r--security/pcsc-tools/patches/patch-aa13
5 files changed, 73 insertions, 0 deletions
diff --git a/security/pcsc-tools/DESCR b/security/pcsc-tools/DESCR
new file mode 100644
index 00000000000..3020931fdd8
--- /dev/null
+++ b/security/pcsc-tools/DESCR
@@ -0,0 +1,9 @@
+Provides several tools that are useful when working
+with smart cards: csc_scan regularly scans every
+PC/SC reader connected to the host and reports when
+a card is inserted or removed. ATR_analysis is a Perl
+script used to parse the smart card ATR. The
+smartcard_list.txt contains ATR of some cards. It is
+used by ATR_analysis to find a card model corresponding
+to the ATR. The perl script scriptortis used to send
+commands to a smart card using a batch file or stdin.
diff --git a/security/pcsc-tools/Makefile b/security/pcsc-tools/Makefile
new file mode 100644
index 00000000000..74e976d35e0
--- /dev/null
+++ b/security/pcsc-tools/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/03/04 11:32:15 shannonjr Exp $
+#
+
+DISTNAME= pcsc-tools-1.4.12
+CATEGORIES= security
+MASTER_SITES= http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
+
+MAINTAINER= shannonjr@NetBSD.org
+HOMEPAGE= http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
+COMMENT= Some tools usefull for a PC/SC user.
+
+DEPENDS+= p5-pcsc-perl>=1.4.6:../../local/p5-pcsc
+
+USE_TOOLS+= pkg-config
+USE_TOOLS+= gmake
+USE_TOOLS+= perl:run
+
+INSTALL_ENV+= DESTDIR=${PREFIX:Q}
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= post-patch
+SUBST_FILES.prefix= ATR_analysis ./ATR_analysis.1p
+SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},'
+
+SUBST_CLASSES+= perl
+SUBST_STAGE.perl= post-patch
+SUBST_FILES.perl= scriptor gscriptor gscriptor.gtk1.2 ATR_analysis
+SUBST_SED.perl= -e 's,perl,${PERL5},'
+
+.include "../../security/pcsc-lite/buildlink3.mk"
+.include "../../security/ccid/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/pcsc-tools/PLIST b/security/pcsc-tools/PLIST
new file mode 100644
index 00000000000..71845c099a3
--- /dev/null
+++ b/security/pcsc-tools/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/03/04 11:32:15 shannonjr Exp $
+bin/ATR_analysis
+bin/gscriptor
+bin/pcsc_scan
+bin/scriptor
+share/man/man1/ATR_analysis.1p.gz
+share/man/man1/gscriptor.1p.gz
+share/man/man1/pcsc_scan.1.gz
+share/man/man1/scriptor.1p.gz
+share/pcsc/smartcard_list.txt
+@dirrm share/pcsc
+@dirrm share/man/man1
+@dirrm share/man
diff --git a/security/pcsc-tools/distinfo b/security/pcsc-tools/distinfo
new file mode 100644
index 00000000000..59fc5215938
--- /dev/null
+++ b/security/pcsc-tools/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/03/04 11:32:15 shannonjr Exp $
+
+SHA1 (pcsc-tools-1.4.12.tar.gz) = 193fe6e7b04eb5afff685a9bc1ea4bc5c5926302
+RMD160 (pcsc-tools-1.4.12.tar.gz) = a584b4c37fbbc53b6153857fe7eaee0fb49e524b
+Size (pcsc-tools-1.4.12.tar.gz) = 57657 bytes
+SHA1 (patch-aa) = ce9441fe2479558012da2aea4d36c204fc627dbb
diff --git a/security/pcsc-tools/patches/patch-aa b/security/pcsc-tools/patches/patch-aa
new file mode 100644
index 00000000000..b5425c96cae
--- /dev/null
+++ b/security/pcsc-tools/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/03/04 11:32:15 shannonjr Exp $
+
+--- ATR_analysis.orig 2007-10-05 10:39:44.000000000 -0600
++++ ATR_analysis
+@@ -47,7 +47,7 @@ use Getopt::Std;
+ use Chipcard::PCSC::Card;
+
+ # file containing the smart card models
+-my @SMARTCARD_LIST = ( "$ENV{HOME}/.smartcard_list.txt", "/usr/local/pcsc/smartcard_list.txt", "/usr/share/pcsc/smartcard_list.txt", "/usr/local/share/pcsc/smartcard_list.txt");
++my @SMARTCARD_LIST = ( "$ENV{HOME}/.smartcard_list.txt", "/usr/local/share/pcsc/smartcard_list.txt");
+
+ our ($opt_v, $opt_h);
+ my ($atr, %TS, @Fi, @Di, @XI, @UI, $T, $value, $counter, $line, $TCK);