diff options
author | ale <ale@FreeBSD.org> | 2016-04-20 17:08:03 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2016-04-20 17:08:03 +0800 |
commit | dcd7f4aed5a538e6e62e6f90cf1d20fc28b8b3f2 (patch) | |
tree | 76f5fa372aa0ad9a8a9aefaa62f2b7180fa08353 /security/libp11 | |
parent | 92f053673be54355991d022ed46fffc86b046b07 (diff) | |
download | freebsd-ports-gnome-dcd7f4aed5a538e6e62e6f90cf1d20fc28b8b3f2.tar.gz freebsd-ports-gnome-dcd7f4aed5a538e6e62e6f90cf1d20fc28b8b3f2.tar.zst freebsd-ports-gnome-dcd7f4aed5a538e6e62e6f90cf1d20fc28b8b3f2.zip |
Update libp11 to 0.4.0 release.
engine_pkcs11 has been merged into libp11.
Diffstat (limited to 'security/libp11')
-rw-r--r-- | security/libp11/Makefile | 28 | ||||
-rw-r--r-- | security/libp11/distinfo | 4 | ||||
-rw-r--r-- | security/libp11/files/patch-configure.ac | 11 | ||||
-rw-r--r-- | security/libp11/files/patch-src_Makefile.am | 10 | ||||
-rw-r--r-- | security/libp11/pkg-plist | 7 |
5 files changed, 44 insertions, 16 deletions
diff --git a/security/libp11/Makefile b/security/libp11/Makefile index eb76971fcbfb..abb85d8df1f6 100644 --- a/security/libp11/Makefile +++ b/security/libp11/Makefile @@ -2,10 +2,8 @@ # $FreeBSD$ PORTNAME= libp11 -PORTVERSION= 0.2.8 -PORTREVISION= 2 +PORTVERSION= 0.4.0 CATEGORIES= security devel -MASTER_SITES= SF/opensc/${PORTNAME} MAINTAINER= ale@FreeBSD.org COMMENT= Small layer on top of PKCS\#11 API @@ -16,28 +14,32 @@ LIB_DEPENDS= libltdl.so:devel/libltdl OPTIONS_DEFINE= DOCS EXAMPLES +USE_GITHUB= yes +GH_ACCOUNT= OpenSC +GH_TAGNAME= ${PORTNAME}-${PORTVERSION} + USE_OPENSSL= yes GNU_CONFIGURE= yes -USES= libtool pkgconfig +USES= autoreconf libtool pkgconfig USE_LDCONFIG= yes +MAKE_JOBS_UNSAFE= yes + CONFIGURE_ENV= LTLIB_CFLAGS="-I${LOCALBASE}/include" \ LTLIB_LIBS="-L${LOCALBASE}/lib -lltdl" \ OPENSSL_CFLAGS="-I${OPENSSLINC}" \ - OPENSSL_LIBS="-L${OPENSSLLIB} -lssl" + OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" -PORTDOCS= * +CONFIGURE_ARGS= --with-enginesdir=${PREFIX}/lib/engines -DOCS_CONFIGURE_ON= --enable-doc +INSTALL_TARGET= install-strip -post-patch: - @${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \ - ${WRKSRC}/configure - @${REINPLACE_CMD} 's|install-data-am: install-apidocDATA install-dist_docDATA|install-data-am: install-dist_docDATA|' \ - ${WRKSRC}/doc/Makefile.in +PORTDOCS= * post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/Makefile ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/security/libp11/distinfo b/security/libp11/distinfo index 9d2d9ec90e0b..6fb1db2e8a40 100644 --- a/security/libp11/distinfo +++ b/security/libp11/distinfo @@ -1,2 +1,2 @@ -SHA256 (libp11-0.2.8.tar.gz) = a4121015503ade98074b5e2a2517fc8a139f8b28aed10021db2bb77283f40691 -SIZE (libp11-0.2.8.tar.gz) = 377508 +SHA256 (OpenSC-libp11-0.4.0-libp11-0.4.0_GH0.tar.gz) = a825db152add1a80f1d538ae91fee55178e2f597520d958ca128aa5bca5f1300 +SIZE (OpenSC-libp11-0.4.0-libp11-0.4.0_GH0.tar.gz) = 101829 diff --git a/security/libp11/files/patch-configure.ac b/security/libp11/files/patch-configure.ac new file mode 100644 index 000000000000..f30e1cf171c2 --- /dev/null +++ b/security/libp11/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2016-03-28 16:04:04 UTC ++++ configure.ac +@@ -191,7 +191,7 @@ if test -n "${pkcs11_module}"; then + [Default PKCS#11 module.]) + fi + +-pkgconfigdir="\$(libdir)/pkgconfig" ++pkgconfigdir="\$(prefix)/libdata/pkgconfig" + + AC_SUBST([pkgconfigdir]) + AC_SUBST([apidocdir]) diff --git a/security/libp11/files/patch-src_Makefile.am b/security/libp11/files/patch-src_Makefile.am new file mode 100644 index 000000000000..82d47056e750 --- /dev/null +++ b/security/libp11/files/patch-src_Makefile.am @@ -0,0 +1,10 @@ +--- src/Makefile.am.orig 2016-03-28 16:04:04 UTC ++++ src/Makefile.am +@@ -40,6 +40,7 @@ pkcs11_la_LDFLAGS = $(AM_LDFLAGS) -modul + all-local: + cd .libs && $(LN_S) -f pkcs11$(SHARED_EXT) libpkcs11$(SHARED_EXT) + install-exec-hook: ++ $(MKDIR_P) '$(DESTDIR)$(enginesdir)' + cd '$(DESTDIR)$(enginesdir)' && $(LN_S) -f pkcs11$(SHARED_EXT) libpkcs11$(SHARED_EXT) + + if WIN32 diff --git a/security/libp11/pkg-plist b/security/libp11/pkg-plist index 70ba9339652e..4e547837690f 100644 --- a/security/libp11/pkg-plist +++ b/security/libp11/pkg-plist @@ -1,11 +1,16 @@ include/libp11.h +lib/engines/libpkcs11.so +lib/engines/pkcs11.so +lib/engines/pkcs11.so.0 +lib/engines/pkcs11.so.0.0.0 lib/libp11.a lib/libp11.so lib/libp11.so.2 -lib/libp11.so.2.2.0 +lib/libp11.so.2.4.0 libdata/pkgconfig/libp11.pc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile %%PORTEXAMPLES%%%%EXAMPLESDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/auth.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/decrypt.c %%PORTEXAMPLES%%%%EXAMPLESDIR%%/getrandom.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/listkeys.c |