head	1.6;
access;
symbols
	pkgsrc-2016Q4:1.5.0.34
	pkgsrc-2016Q4-base:1.5
	pkgsrc-2016Q3:1.5.0.32
	pkgsrc-2016Q3-base:1.5
	pkgsrc-2016Q2:1.5.0.30
	pkgsrc-2016Q2-base:1.5
	pkgsrc-2016Q1:1.5.0.28
	pkgsrc-2016Q1-base:1.5
	pkgsrc-2015Q4:1.5.0.26
	pkgsrc-2015Q4-base:1.5
	pkgsrc-2015Q3:1.5.0.24
	pkgsrc-2015Q3-base:1.5
	pkgsrc-2015Q2:1.5.0.22
	pkgsrc-2015Q2-base:1.5
	pkgsrc-2015Q1:1.5.0.20
	pkgsrc-2015Q1-base:1.5
	pkgsrc-2014Q4:1.5.0.18
	pkgsrc-2014Q4-base:1.5
	pkgsrc-2014Q3:1.5.0.16
	pkgsrc-2014Q3-base:1.5
	pkgsrc-2014Q2:1.5.0.14
	pkgsrc-2014Q2-base:1.5
	pkgsrc-2014Q1:1.5.0.12
	pkgsrc-2014Q1-base:1.5
	pkgsrc-2013Q4:1.5.0.10
	pkgsrc-2013Q4-base:1.5
	pkgsrc-2013Q3:1.5.0.8
	pkgsrc-2013Q3-base:1.5
	pkgsrc-2013Q2:1.5.0.6
	pkgsrc-2013Q2-base:1.5
	pkgsrc-2013Q1:1.5.0.4
	pkgsrc-2013Q1-base:1.5
	pkgsrc-2012Q4:1.5.0.2
	pkgsrc-2012Q4-base:1.5
	pkgsrc-2012Q3:1.4.0.12
	pkgsrc-2012Q3-base:1.4
	pkgsrc-2012Q2:1.4.0.10
	pkgsrc-2012Q2-base:1.4
	pkgsrc-2012Q1:1.4.0.8
	pkgsrc-2012Q1-base:1.4
	pkgsrc-2011Q4:1.4.0.6
	pkgsrc-2011Q4-base:1.4
	pkgsrc-2011Q3:1.4.0.4
	pkgsrc-2011Q3-base:1.4
	pkgsrc-2011Q2:1.4.0.2
	pkgsrc-2011Q2-base:1.4
	pkgsrc-2011Q1:1.3.0.4
	pkgsrc-2011Q1-base:1.3
	pkgsrc-2010Q4:1.3.0.2
	pkgsrc-2010Q4-base:1.3
	pkgsrc-2009Q4:1.2.0.2
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2008Q4:1.1.1.1.0.12
	pkgsrc-2008Q4-base:1.1.1.1
	pkgsrc-2008Q3:1.1.1.1.0.10
	pkgsrc-2008Q3-base:1.1.1.1
	cube-native-xorg:1.1.1.1.0.8
	cube-native-xorg-base:1.1.1.1
	pkgsrc-2008Q2:1.1.1.1.0.6
	pkgsrc-2008Q2-base:1.1.1.1
	cwrapper:1.1.1.1.0.4
	pkgsrc-2008Q1:1.1.1.1.0.2
	pkgsrc-2008Q1-base:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2017.02.16.14.47.57;	author gdt;	state dead;
branches;
next	1.5;
commitid	a4X1T8aH9GaECbGz;

1.5
date	2012.12.15.00.53.26;	author pettai;	state Exp;
branches;
next	1.4;

1.4
date	2011.05.26.13.32.26;	author obache;	state Exp;
branches;
next	1.3;

1.3
date	2010.11.28.10.47.40;	author shattered;	state Exp;
branches;
next	1.2;

1.2
date	2009.03.16.19.14.08;	author hasso;	state dead;
branches;
next	1.1;

1.1
date	2008.03.04.11.32.15;	author shannonjr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2008.03.04.11.32.15;	author shannonjr;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Update to 1.4.27

Summary of upstream changelog:

    bug fixes
    many new ATRs

    ATR_analysis: propose to submit the ATR if not known
      We propose to submit the ATR at http://smartcard-atr.appspot.com/ when
      the ATR is not found in the list.
      The message is always displayed for an unknown ATR, not just after the
      list has been updated.

    ATR_analysis: correctly use wget to store the ATR list
@
text
@$NetBSD: patch-aa,v 1.5 2012/12/15 00:53:26 pettai Exp $

honor PKGMANDIR

--- Makefile.orig	2012-06-16 10:33:32.000000000 +0000
+++ Makefile
@@@@ -18,7 +18,7 @@@@ LDLIBS := $(PCSC_LDLIBS)
 
 BIN = pcsc_scan
 BIN_SCRIPT = ATR_analysis gscriptor scriptor
-MAN = pcsc_scan.1.gz gscriptor.1p.gz scriptor.1p.gz ATR_analysis.1p.gz
+MAN = pcsc_scan.1 gscriptor.1p scriptor.1p ATR_analysis.1p
 
 all: $(BIN) $(MAN)
 
@@@@ -33,17 +33,17 @@@@ install: all
 	install -d $(DESTDIR)/share/pcsc
 	install -m 644 smartcard_list.txt $(DESTDIR)/share/pcsc
 
-	install -d $(DESTDIR)/share/man/man1/
-	install -m 644 $(MAN) $(DESTDIR)/share/man/man1/
+	install -d $(DESTDIR)/$(PKGMANDIR)/man1/
+	install -m 644 $(MAN) $(DESTDIR)/$(PKGMANDIR)/man1/
 
 clean:
 	rm -f pcsc_scan.o $(BIN) $(MAN)
 
-%.1.gz: %.1
-	gzip --best $^ --to-stdout > $@@
-
-%.1p.gz: %.1p
-	gzip --best $^ --to-stdout > $@@
+#%.1.gz: %.1
+#	gzip --best $^ --to-stdout > $@@
+#
+#%.1p.gz: %.1p
+#	gzip --best $^ --to-stdout > $@@
 
 .PHONY: clean all install
 
@


1.5
log
@1.4.21
    - Do not log the time every second on "old" PC/SC without support of
      \\?PnP?\Notification like on Mac OS X.
    - 79 new ATRS
    - minor fixes

1.4.20 - 16 June 2012, Ludovic ROUSSEAU
    - Makefile: Add arguments to CFLAGS instead of overwritting them
    - 3 new ATRs

1.4.19
    - ATR_analysis: use XDG_CACHE_HOME env variable
      The smartcard_list.txt file is now searched in ~/.cache/ by default
    - 115 new ATRs

1.4.18
    - gscriptor: Display hex dumps in lines of 16 bytes instead of 17
    - gscriptor: Display bytes of value 0x20 as ' ' instead of '.'
    - scriptor: Display lines of 16 bytes instead of 24
    - 223 new ATRs
    - pcsc_scan: Correctly detect reader Plug and Play support

1.4.17
    - 153 new ATRs
    - Allow to build with pcsc-lite >= 1.6.2

1.4.16
    - 153 new ATR
    - pcsc_scan.c: check for PnP support at run time instead of using a
      #define
    - ATR_analysis: use curl instead of wget on Darwin
    - gscriptor: ReaderConfig(): escape metacharacters []() in
      the reader name when using reader name as a pattern matching
@
text
@d1 1
a1 1
$NetBSD$
@


1.4
log
@* LICENSE=gnu-gpl-v2 # or later
* honor PKGMANDIR
* add user-destdir installation support
* use ${PERL5} as shebang, not /usr/bin/env.

Bump PKGREVISION.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.3 2010/11/28 10:47:40 shattered Exp $
d3 1
a3 1
* honor PKGMANDIR
d5 1
a5 1
--- Makefile.orig	2008-09-07 11:51:40.000000000 +0000
d7 10
a16 1
@@@@ -33,8 +33,8 @@@@ install: all
d27 14
@


1.3
log
@Install manpages in man/, not share/man/
@
text
@d1 3
a3 1
$NetBSD$
d13 2
a14 2
+	install -d $(DESTDIR)/man/man1/
+	install -m 644 $(MAN) $(DESTDIR)/man/man1/
@


1.2
log
@Update to version 1.4.15. Many small fixes and new ATRs in the list. See
Changelog in the source tarball for full commit log.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.1 2008/03/04 11:32:15 shannonjr Exp $
d3 5
a7 4
--- ATR_analysis.orig	2007-10-05 10:39:44.000000000 -0600
+++ ATR_analysis
@@@@ -47,7 +47,7 @@@@ use Getopt::Std;
 use Chipcard::PCSC::Card;
d9 4
a12 3
 # 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");
d14 2
a15 2
 our ($opt_v, $opt_h);
 my ($atr, %TS, @@Fi, @@Di, @@XI, @@UI, $T, $value, $counter, $line, $TCK);
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
$NetBSD$
@


1.1.1.1
log
@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.
@
text
@@
