aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-11-28 15:00:17 +0800
committerale <ale@FreeBSD.org>2006-11-28 15:00:17 +0800
commit6146efc317b49f191a0657c52d3a1870da275487 (patch)
treecd1b1d25cc735db9515c0597ded9ccd21195e1ff /security
parent6eef2e2a19d245b9e26a67ffd8504ec35e7f6a4a (diff)
downloadfreebsd-ports-graphics-6146efc317b49f191a0657c52d3a1870da275487.tar.gz
freebsd-ports-graphics-6146efc317b49f191a0657c52d3a1870da275487.tar.zst
freebsd-ports-graphics-6146efc317b49f191a0657c52d3a1870da275487.zip
Update to 0.11.2-pre3 release:
- add optional signer plugin - fix build when libassuan is installed
Diffstat (limited to 'security')
-rw-r--r--security/opensc/Makefile28
-rw-r--r--security/opensc/distinfo6
-rw-r--r--security/opensc/pkg-plist5
3 files changed, 31 insertions, 8 deletions
diff --git a/security/opensc/Makefile b/security/opensc/Makefile
index 254e9e8f395..9fd914caeeb 100644
--- a/security/opensc/Makefile
+++ b/security/opensc/Makefile
@@ -6,15 +6,17 @@
#
PORTNAME= opensc
-PORTVERSION= 0.11.1
+DISTVERSION= 0.11.2-pre3
CATEGORIES= security devel
-MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/
+MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/ \
+ http://www.opensc-project.org/files/${PORTNAME}/testing/
MAINTAINER= ale@FreeBSD.org
COMMENT= Libraries and utilities to access smart cards
OPTIONS= OPENCT "Install openct for direct OpenCT backend support" on \
- PCSC "Install pcsc-lite for PC/SC backend support" off
+ PCSC "Install pcsc-lite for PC/SC backend support" off \
+ SIGNER "Install signer browser plugin" off
USE_AUTOTOOLS= libltdl:15
USE_OPENSSL= yes
@@ -23,14 +25,16 @@ GNU_CONFIGURE= yes
USE_GNOME= gnomehack pkgconfig
INSTALLS_SHLIB= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -I${X11BASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl"
+CONFIGURE_ARGS= --mandir=${PREFIX}/man
+
DOC_FILES= README *.sh *.xsl *.css *.html api html tools
PORTDOCS= *
@@ -71,6 +75,20 @@ LIB_DEPENDS+= openct.1:${PORTSDIR}/security/openct
LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
.endif
+.if defined(WITH_SIGNER) || exists(${LOCALBASE}/lib/libassuan.a)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libassuan.a:${PORTSDIR}/security/libassuan
+PINENTRY?= ${LOCALBASE}/bin/pinentry
+PINENTRY_PORT?= security/pinentry
+RUN_DEPENDS+= pinentry:${PORTSDIR}/${PINENTRY_PORT}
+USE_XLIB= yes
+CONFIGURE_ARGS+=--with-libassuan-prefix=${LOCALBASE} \
+ --with-plugin-dir=${LOCALBASE}/lib/browser_plugins \
+ --with-pin-entry=${PINENTRY}
+PLIST_SUB+= SIGNER=""
+.else
+PLIST_SUB+= SIGNER="@comment "
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/opensc.conf ${PREFIX}/etc/opensc.conf-sample
.ifndef(NOPORTDOCS)
diff --git a/security/opensc/distinfo b/security/opensc/distinfo
index 6c1c72d8e7f..426250c6d1e 100644
--- a/security/opensc/distinfo
+++ b/security/opensc/distinfo
@@ -1,3 +1,3 @@
-MD5 (opensc-0.11.1.tar.gz) = 94ce00a6bda38fac10ab06f5d5d1a8c3
-SHA256 (opensc-0.11.1.tar.gz) = 6c2285b6a838903e2da9d72e997d4f3f5a59c7a31d47c98f864b350b116d365c
-SIZE (opensc-0.11.1.tar.gz) = 1263611
+MD5 (opensc-0.11.2-pre3.tar.gz) = 46a5ea72b3cc447f970de0a103e479e4
+SHA256 (opensc-0.11.2-pre3.tar.gz) = e2f9c0427e60e5487cdcb4847d080fbee06dc9c2a67edc4b791c7bfd63b484fc
+SIZE (opensc-0.11.2-pre3.tar.gz) = 1302861
diff --git a/security/opensc/pkg-plist b/security/opensc/pkg-plist
index e117833d083..a5980ad9b72 100644
--- a/security/opensc/pkg-plist
+++ b/security/opensc/pkg-plist
@@ -31,6 +31,10 @@ include/opensc/ui.h
libdata/pkgconfig/libopensc.pc
libdata/pkgconfig/libpkcs15init.pc
libdata/pkgconfig/libscconf.pc
+%%SIGNER%%lib/browser_plugins/opensc-signer.so
+%%SIGNER%%lib/opensc-signer.a
+%%SIGNER%%lib/opensc-signer.la
+%%SIGNER%%lib/opensc-signer.so
lib/libopensc.a
lib/libopensc.la
lib/libopensc.so
@@ -56,6 +60,7 @@ lib/pkcs11-spy.so
%%DATADIR%%/incrypto34.profile
%%DATADIR%%/jcop.profile
%%DATADIR%%/miocos.profile
+%%DATADIR%%/muscle.profile
%%DATADIR%%/oberthur.profile
%%DATADIR%%/pkcs15.profile
%%DATADIR%%/setcos.profile