From 4b6585ffb797b342859629f4b46b4222c337637d Mon Sep 17 00:00:00 2001 From: shannonjr Date: Tue, 4 Mar 2008 11:31:04 +0000 Subject: This package contains a Perl wrapper to the PC/SC smartcard library (pcsc-lite) from MUSCLE together with some small examples. --- security/p5-pcsc/DESCR | 2 ++ security/p5-pcsc/Makefile | 26 ++++++++++++++++++++++++++ security/p5-pcsc/distinfo | 6 ++++++ security/p5-pcsc/patches/patch-aa | 13 +++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 security/p5-pcsc/DESCR create mode 100644 security/p5-pcsc/Makefile create mode 100644 security/p5-pcsc/distinfo create mode 100644 security/p5-pcsc/patches/patch-aa (limited to 'security/p5-pcsc') 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 + # include + # define LOAD_LIB() dlopen("libpcsclite.so.1", RTLD_LAZY) -- cgit v1.2.3