Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 16:49:54 +0100 (BST)
From:      Bruce M Simpson <bms@spc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42701: New port: devel/p5-PCSC-Card: Perl binding for PC/SC Lite
Message-ID:  <20020912154954.6166C9713@triage.dollah.com>

next in thread | raw e-mail | index | archive | help

>Number:         42701
>Category:       ports
>Synopsis:       New port: devel/p5-PCSC-Card: Perl binding for PC/SC Lite
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 09:20:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bruce M Simpson
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD triage.dollah.com 4.6-STABLE FreeBSD 4.6-STABLE #4: Sat Sep 7 13:55:56 BST 2002 root@:/usr/src/sys/compile/TRIAGE i386


	
>Description:
	This is a Perl language binding for the MUSCLE PC/SC Lite Smartcard API.
>How-To-Repeat:
	
>Fix:

	

--- p5-PCSC-Card.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-PCSC-Card/
#	p5-PCSC-Card/files
#	p5-PCSC-Card/files/patch-Makefile.PL
#	p5-PCSC-Card/files/patch-PCSCperl.h
#	p5-PCSC-Card/pkg-descr
#	p5-PCSC-Card/pkg-plist
#	p5-PCSC-Card/Makefile
#	p5-PCSC-Card/pkg-comment
#	p5-PCSC-Card/distinfo
#
echo c - p5-PCSC-Card/
mkdir -p p5-PCSC-Card/ > /dev/null 2>&1
echo c - p5-PCSC-Card/files
mkdir -p p5-PCSC-Card/files > /dev/null 2>&1
echo x - p5-PCSC-Card/files/patch-Makefile.PL
sed 's/^X//' >p5-PCSC-Card/files/patch-Makefile.PL << 'END-of-p5-PCSC-Card/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Wed Mar  6 08:02:01 2002
X+++ Makefile.PL	Thu Sep 12 16:33:43 2002
X@@ -7,7 +7,5 @@
X     'VERSION_FROM' => 'PCSC.pm', # finds $VERSION
X     'LIBS'      => [''],   # e.g., '-lm'
X     'DEFINE'    => '-O2 -Wall',     # e.g., '-DHAVE_SOMETHING'
X-    'INC'       => '-I/usr/local/pcsc/include',     # e.g., '-I/usr/include/other'
X+    'INC'       => '-I$(LOCALBASE)/include',     # e.g., '-I/usr/include/other'
X );
X-
X-
END-of-p5-PCSC-Card/files/patch-Makefile.PL
echo x - p5-PCSC-Card/files/patch-PCSCperl.h
sed 's/^X//' >p5-PCSC-Card/files/patch-PCSCperl.h << 'END-of-p5-PCSC-Card/files/patch-PCSCperl.h'
X--- PCSCperl.h.orig	Wed Aug 28 07:14:50 2002
X+++ PCSCperl.h	Thu Sep 12 16:34:28 2002
X@@ -143,6 +143,16 @@
X 
X #endif /* __APPLE__ */
X 
X+#ifdef __FreeBSD__
X+#include <dlfcn.h>
X+#include <wintypes.h>
X+#include <pcsclite.h>
X+#include <stdio.h>
X+typedef void *DLL_HANDLE;
X+#define LOAD_LIB()	dlopen("libpcsclite.so.0", RTLD_LAZY)
X+#define CLOSE_LIB(x)	dlclose(x)
X+#define GET_FCT		dlsym
X+#endif
X 
X /* Definitine fuctions imported from the PCSC library and used by the stub */
X typedef LONG (WINAPI *TSCardEstablishContext) ( DWORD, LPCVOID, LPCVOID, LPSCARDCONTEXT );
END-of-p5-PCSC-Card/files/patch-PCSCperl.h
echo x - p5-PCSC-Card/pkg-descr
sed 's/^X//' >p5-PCSC-Card/pkg-descr << 'END-of-p5-PCSC-Card/pkg-descr'
XFrom the website:-
X
XThis library allows to intercate with a smart card and pcsc-lite using the
XPerl language. The archive contains the Perl wrapper and sample code.
X
XWWW: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/pcsc-perl.html
X
XBruce
Xbms@spc.org
END-of-p5-PCSC-Card/pkg-descr
echo x - p5-PCSC-Card/pkg-plist
sed 's/^X//' >p5-PCSC-Card/pkg-plist << 'END-of-p5-PCSC-Card/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/PCSC/.packlist
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/PCSC/PCSC.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/PCSC/PCSC.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Makefile_OSX.pl
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/PCSC/Card.pod
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/PCSC/Card.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/PCSC.pod
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/PCSC.pm
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/PCSC 2>/dev/null || true
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/PCSC 2>/dev/null || true
END-of-p5-PCSC-Card/pkg-plist
echo x - p5-PCSC-Card/Makefile
sed 's/^X//' >p5-PCSC-Card/Makefile << 'END-of-p5-PCSC-Card/Makefile'
X# New ports collection makefile for:	p5-PCSC-Card
X# Date created:		12 September 2002
X# Whom:			Bruce M Simpson
X#
X# $FreeBSD$
X#
X
XPORTNAME=	PCSC-Card
XPORTVERSION=	1.1.2
XCATEGORIES=	devel security
XMASTER_SITES=	http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
XPKGNAMEPREFIX=	p5-
XDISTNAME=	pcsc-perl-${PORTVERSION}
X
XMAINTAINER=	bms@spc.org
X
XLIB_DEPENDS=	pcsclite.0:${PORTSDIR}/devel/pcsc-lite
X
XPERL_CONFIGURE=	yes
XCONFIGURE_ARGS=	INSTALLDIRS=site
XMAKE_ENV=	"LOCALBASE=$(LOCALBASE)"
X
XMAN3=		PCSC::Card.3 PCSC.3
XMAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
X
X.include <bsd.port.mk>
END-of-p5-PCSC-Card/Makefile
echo x - p5-PCSC-Card/pkg-comment
sed 's/^X//' >p5-PCSC-Card/pkg-comment << 'END-of-p5-PCSC-Card/pkg-comment'
XPerl bindings for the PC/SC Lite (MUSCLE) Smartcard Framework
END-of-p5-PCSC-Card/pkg-comment
echo x - p5-PCSC-Card/distinfo
sed 's/^X//' >p5-PCSC-Card/distinfo << 'END-of-p5-PCSC-Card/distinfo'
XMD5 (pcsc-perl-1.1.2.tar.gz) = 8fd4c156d96e4787fec182dd1e12af22
END-of-p5-PCSC-Card/distinfo
exit
--- p5-PCSC-Card.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020912154954.6166C9713>