summaryrefslogtreecommitdiff
path: root/security/p5-pcsc
diff options
context:
space:
mode:
authorshannonjr <shannonjr@pkgsrc.org>2008-03-04 11:31:04 +0000
committershannonjr <shannonjr@pkgsrc.org>2008-03-04 11:31:04 +0000
commit030533564255125a6700f9d009f3ccb5393adb38 (patch)
tree2cf94b73f0f4df4b39886910ccec5fac8ec61ebd /security/p5-pcsc
parent30a5bfae3e9d069f4bce14dbf4ff6a954097c47e (diff)
downloadpkgsrc-030533564255125a6700f9d009f3ccb5393adb38.tar.gz
This package contains a Perl wrapper to the PC/SC smartcard library
(pcsc-lite) from MUSCLE together with some small examples.
Diffstat (limited to 'security/p5-pcsc')
-rw-r--r--security/p5-pcsc/DESCR2
-rw-r--r--security/p5-pcsc/Makefile26
-rw-r--r--security/p5-pcsc/distinfo6
-rw-r--r--security/p5-pcsc/patches/patch-aa13
4 files changed, 47 insertions, 0 deletions
diff --git a/security/p5-pcsc/DESCR b/security/p5-pcsc/DESCR
new file mode 100644
index 00000000000..6c55baa7e37
--- /dev/null
+++ b/security/p5-pcsc/DESCR
@@ -0,0 +1,2 @@
+This package contains a Perl wrapper to the PC/SC smartcard library
+(pcsc-lite) from MUSCLE together with some small examples.
diff --git a/security/p5-pcsc/Makefile b/security/p5-pcsc/Makefile
new file mode 100644
index 00000000000..a14d46b81ec
--- /dev/null
+++ b/security/p5-pcsc/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/03/04 11:31:04 shannonjr Exp $
+#
+
+DISTNAME= pcsc-perl-1.4.6
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= security
+MASTER_SITES= http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
+
+MAINTAINER= shannonjr@NetBSD.org
+HOMEPAGE= http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
+COMMENT= Allows communication with a smart card from a Perl script
+
+PERL5_MODULE_TYPE= MakeMaker
+
+SUBST_CLASSES+= perl
+SUBST_STAGE.perl= post-patch
+SUBST_FILES.perl= Card/t/test.t examples/test_iso_error.pl examples/gsm_directory.pl t/test.t test/multiple_readers.pl test/single_reader.pl
+SUBST_SED.perl= -e 's,/usr/bin/perl,${PERL5},'
+
+PERL5_USE_PACKLIST= yes
+MAKE_PARAMS+= INSTALLDIRS=vendor
+PERL5_PACKLIST= auto/Chipcard/PCSC/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../security/pcsc-lite/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/p5-pcsc/distinfo b/security/p5-pcsc/distinfo
new file mode 100644
index 00000000000..7f4355e41d8
--- /dev/null
+++ b/security/p5-pcsc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/03/04 11:31:04 shannonjr Exp $
+
+SHA1 (pcsc-perl-1.4.6.tar.gz) = 4f6cb030aa5f20d071ab9ab56ad81ee10a74e493
+RMD160 (pcsc-perl-1.4.6.tar.gz) = bfdc0149bcb82ec2ac1e24e107692d68d9de8f0d
+Size (pcsc-perl-1.4.6.tar.gz) = 41828 bytes
+SHA1 (patch-aa) = 2b8ec38a837888784ad8e12c26238e9e1170e924
diff --git a/security/p5-pcsc/patches/patch-aa b/security/p5-pcsc/patches/patch-aa
new file mode 100644
index 00000000000..e81b3cd5e99
--- /dev/null
+++ b/security/p5-pcsc/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/03/04 11:31:04 shannonjr Exp $
+
+--- PCSCperl.h.orig 2008-02-13 10:50:31.000000000 -0700
++++ PCSCperl.h
+@@ -59,7 +59,7 @@
+ #endif
+
+
+-#if (defined __linux__) || (defined __FreeBSD_kernel__)
++#if (defined __linux__) || (defined __FreeBSD_kernel__) || (defined __NetBSD__)
+ # include <dlfcn.h>
+ # include <pcsclite.h>
+ # define LOAD_LIB() dlopen("libpcsclite.so.1", RTLD_LAZY)