Import of pkgsrc-2015Q3

This commit is contained in:
2016-01-21 23:42:40 +01:00
committed by sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228313 additions and 80017 deletions
+5 -5
View File
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.20 2014/03/17 18:21:42 gdt Exp $
# $NetBSD: Makefile,v 1.23 2015/09/07 19:59:42 gdt Exp $
OPENSC_PKG_VERSION= 0.13.0
OPENSC_PKG_VERSION= 0.15.0
DISTNAME= opensc-${OPENSC_PKG_VERSION}
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opensc/OpenSC/opensc-0.13.0/}
@@ -11,6 +10,8 @@ HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki
COMMENT= Smart Card drivers and middleware
LICENSE= gnu-lgpl-v2.1
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_OLD_DES_API= YES
@@ -39,7 +40,7 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= PCSC_CFLAGS=-I${PREFIX}/include/PCSC
# The stylesheets are not found without this.
CONFIGURE_ARGS+= --with-xsl-stylesheetsdir=${BUILDLINK_PREFIX.docbook-xsl}/share/xsl/docbook
CONFIGURE_ARGS+= --with-xsl-stylesheetsdir=${PREFIX}/share/xsl/docbook
EGDIR= ${PREFIX}/share/examples/opensc
CONF_FILES+= ${EGDIR}/opensc.conf ${PKG_SYSCONFDIR}/opensc.conf
@@ -50,7 +51,6 @@ post-install:
# build tools for doc; should be TOOLS
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/docbook-xsl/buildlink3.mk"
# We avoid pthreads intentionally; tell dlopen not drag it in.
DLOPEN_REQUIRE_PTHREADS= no
+7 -1
View File
@@ -1,6 +1,7 @@
@comment $NetBSD: PLIST,v 1.7 2014/03/14 20:49:56 gdt Exp $
@comment $NetBSD: PLIST,v 1.8 2015/09/07 19:59:42 gdt Exp $
bin/cardos-tool
bin/cryptoflex-tool
bin/dnie-tool
bin/eidenv
bin/iasecc-tool
bin/netkey-tool
@@ -15,12 +16,16 @@ bin/pkcs15-tool
bin/sc-hsm-tool
bin/westcos-tool
lib/libopensc.la
lib/libsmm-local.la
lib/onepin-opensc-pkcs11.la
lib/opensc-pkcs11.la
lib/pkcs11-spy.la
lib/pkcs11/onepin-opensc-pkcs11.so
lib/pkcs11/opensc-pkcs11.so
lib/pkcs11/pkcs11-spy.so
man/man1/cardos-tool.1
man/man1/cryptoflex-tool.1
man/man1/dnie-tool.1
man/man1/eidenv.1
man/man1/iasecc-tool.1
man/man1/netkey-tool.1
@@ -53,6 +58,7 @@ share/opensc/iasecc_admin_eid.profile
share/opensc/iasecc_generic_oberthur.profile
share/opensc/iasecc_generic_pki.profile
share/opensc/incrypto34.profile
share/opensc/isoApplet.profile
share/opensc/jcop.profile
share/opensc/miocos.profile
share/opensc/muscle.profile
+12 -13
View File
@@ -1,14 +1,13 @@
$NetBSD: distinfo,v 1.11 2014/03/14 20:49:56 gdt Exp $
$NetBSD: distinfo,v 1.12 2015/09/07 19:59:42 gdt Exp $
SHA1 (opensc-0.13.0.tar.gz) = 9285ccbed7b49f63e488c8fb1b3e102994a28218
RMD160 (opensc-0.13.0.tar.gz) = 394e46a8a538155e33d9dcf830edc5db746086b7
Size (opensc-0.13.0.tar.gz) = 1946899 bytes
SHA1 (patch-aa) = 4c5110104252d2ec184cfc0ae7c194b12a91e176
SHA1 (patch-ab) = 49f3ada86b4f7485ee56162b31bd75f740c4d5cc
SHA1 (patch-bootstrap) = 76daef144be7020591d2b2d10ee7ba48ff4fdd6d
SHA1 (patch-configure.ac) = ac79998c543ed51a2aa411486fa23edc51b7973f
SHA1 (patch-src_common_compat__getopt.c) = cf65417e3ee047c5891d0b23f9afc46a5c256224
SHA1 (patch-src_common_compat__getopt.h) = e34a67b7f5cf524e16301a4b3719c3f36cf82260
SHA1 (patch-src_common_compat__getopt__main.c) = cf077d5a0db4c738738dfe54494b3292c166adfb
SHA1 (patch-src_libopensc_log.c) = e7fd7477907284000cda18465624df21b2545266
SHA1 (patch-src_pkcs11_pkcs11-global.c) = 991a9b3f5389d8b7033db3be32895216315d4ef0
SHA1 (opensc-0.15.0.tar.gz) = 5bacb5814337af32ee85d49f420acc69ac961106
RMD160 (opensc-0.15.0.tar.gz) = 90ff185bc82ab0d2b6487ca0fc00310609a674a5
Size (opensc-0.15.0.tar.gz) = 2153075 bytes
SHA1 (patch-aa) = 6863c837654b4fde76fbc7a95fe7fdae33590a50
SHA1 (patch-ab) = c8a8a21ed7fe387aa93e6454e30d284d77ffd67c
SHA1 (patch-configure.ac) = 7cf3afaf292c89ec990935e5a5d64bd015a9b1ce
SHA1 (patch-doc_tools_Makefile.am) = bbfb4ae09bfeef5f4d2ca36da3efda6d1a699a0d
SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb
SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669
SHA1 (patch-src_libopensc_log.c) = eabe66dd52cedf81b3dffa01e5855a6b4a70416a
SHA1 (patch-src_pkcs11_pkcs11-global.c) = 3390c14a61f4b50d7903faa1c300b3677a4831ac
+7 -5
View File
@@ -1,15 +1,14 @@
$NetBSD: patch-aa,v 1.4 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-aa,v 1.5 2015/09/07 19:59:42 gdt Exp $
Disable installation of config file, because pkgsrc installs config
files as examples.
--- etc/Makefile.am.orig 2012-12-04 14:43:40.000000000 +0000
--- etc/Makefile.am.orig 2015-05-16 20:30:24.000000000 +0000
+++ etc/Makefile.am
@@ -22,11 +22,3 @@ opensc.conf: opensc.conf.in force
-e 's|@DEFAULT_SM_MODULE[@]|$(DEFAULT_SM_MODULE)|g' \
@@ -23,13 +23,5 @@ opensc.conf: opensc.conf.in force
-e 's|@DEBUG_FILE[@]|$(DEBUG_FILE)|g' \
< $< > $@
-
-install-exec-hook: opensc.conf
- $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
- if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
@@ -17,3 +16,6 @@ files as examples.
- else \
- $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \
- fi
-
uninstall-hook: opensc.conf
rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf"
+3 -3
View File
@@ -1,11 +1,11 @@
$NetBSD: patch-ab,v 1.4 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-ab,v 1.5 2015/09/07 19:59:42 gdt Exp $
This patch was added 2009-09-10 by hasso@, with comment:
More userfriendly default configuration.
--- etc/opensc.conf.in.orig 2012-12-04 14:43:40.000000000 +0000
--- etc/opensc.conf.in.orig 2015-05-16 20:30:24.000000000 +0000
+++ etc/opensc.conf.in
@@ -453,6 +453,7 @@ app default {
@@ -451,6 +451,7 @@ app default {
#
# Default: no
# try_emulation_first = yes;
-18
View File
@@ -1,18 +0,0 @@
$NetBSD: patch-bootstrap,v 1.1 2014/03/14 20:49:56 gdt Exp $
* fix sed regular expressions to be POSIX BREs (change '\s' to
'[[:space:]]', '+' to '\{1,\}') (not yet reported upstream)
* quote $SUFFIX and $REVISION variable expansions (not yet reported
upstream)
--- bootstrap.orig 2012-12-04 14:43:40.000000000 +0000
+++ bootstrap
@@ -9,7 +9,7 @@ rm -rf *~ *.cache *.m4 config.guess conf
if test ! -z "$1"; then
cp configure.ac configure.ac.orig
- sed 's/^define(\[PACKAGE_SUFFIX\],\s*\[\([-~]*[0-9a-zA-Z]*\)\])$/define(\[PACKAGE_SUFFIX\], \['$1'\])/g' configure.ac.orig > configure.ac
+ sed 's/^define(\[PACKAGE_SUFFIX\],[[:space:]]*\[\([-~]*[0-9a-zA-Z]*\)\])$/define(\[PACKAGE_SUFFIX\], \['"$SUFFIX"'\])/g' configure.ac.orig > configure.ac
fi
autoreconf --verbose --install --force
+8 -27
View File
@@ -1,33 +1,14 @@
$NetBSD: patch-configure.ac,v 1.1 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-configure.ac,v 1.2 2015/09/07 19:59:42 gdt Exp $
Patch taken from upstream post 0.13.0:
https://github.com/OpenSC/OpenSC/commit/11ff81367af9bc9dce2cbcb550cc463552a3b69e
This hunk has been in pkgsrc for a long time; it needs a comment!
--- configure.ac.orig 2012-12-04 14:43:40.000000000 +0000
--- configure.ac.orig 2015-05-16 20:30:24.000000000 +0000
+++ configure.ac
@@ -286,23 +286,19 @@ AC_CHECK_LIB(
if test "${WIN32}" = "no"; then
dnl dl support
- AC_CHECK_LIB(
- [dl],
- [dlopen],
- ,
- [AC_MSG_ERROR([libdl required])]
- )
+ dnl https://github.com/OpenSC/OpenSC/commit/11ff81367af9bc9dce2cbcb550cc463552a3b69e
+ AC_SEARCH_LIBS([dlopen], [dl dld], [], [
+ AC_MSG_ERROR([unable to find the dlopen() function])
+ ])
+
+case "${host_cpu}-${host_os}" in
+ *netbsd*)
+ acx_pthread_ok=yes
+ PTHREAD_CFLAGS=""
+ PTHREAD_LIBS=""
+ ;;
+esac
@@ -344,17 +344,6 @@ if test "${WIN32}" = "no"; then
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
AC_MSG_ERROR([unable to find the dlopen() function])
])
-
- dnl Special check for pthread support.
- AX_PTHREAD(
- [AC_DEFINE(
@@ -0,0 +1,17 @@
$NetBSD: patch-doc_tools_Makefile.am,v 1.1 2015/09/07 20:00:09 gdt Exp $
These files are interpreted as config files by the pkgsrc framework,
and there's no agreed-upon place to put them. For now, just skip
installing them. Not reported upstream.
--- doc/tools/Makefile.am.orig 2015-05-16 20:30:24.000000000 +0000
+++ doc/tools/Makefile.am
@@ -10,7 +10,7 @@ man1_MANS = $(patsubst $(srcdir)/%.xml,
man5_MANS = $(patsubst $(srcdir)/%.xml, %, $(wildcard $(srcdir)/*.5.xml))
endif
-completion_DATA = $(patsubst $(srcdir)/%.1.xml, %, $(wildcard $(srcdir)/*.1.xml))
+#completion_DATA = $(patsubst $(srcdir)/%.1.xml, %, $(wildcard $(srcdir)/*.1.xml))
completiondir = $(sysconfdir)/bash_completion.d
tools.html: $(srcdir)/tools.xml $(wildcard $(srcdir)/*.1.xml) $(wildcard $(srcdir)/*.5.xml)
@@ -1,15 +0,0 @@
$NetBSD: patch-src_common_compat__getopt.c,v 1.2 2014/03/14 20:49:56 gdt Exp $
See comment in patch-src_common_compat__getopt.h.
--- src/common/compat_getopt.c.orig 2012-12-04 14:43:40.000000000 +0000
+++ src/common/compat_getopt.c
@@ -25,7 +25,7 @@
#include "config.h"
-#if ! ( defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_LONG_ONLY) )
+#if ! ( defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) )
#include <sys/types.h>
#include <stdlib.h>
@@ -1,4 +1,4 @@
$NetBSD: patch-src_common_compat__getopt.h,v 1.2 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-src_common_compat__getopt.h,v 1.3 2015/09/07 19:59:42 gdt Exp $
NetBSD has getopt_long but not getopt_long_only. Replacing
getopt_long causes a type conflict with the built-in implementation.
@@ -12,7 +12,7 @@ The following is the original mail archive URL, but it currently
yields a '404 not found' error:
https://www.opensc-project.org/pipermail/opensc-devel/2012-November/018668.html
--- src/common/compat_getopt.h.orig 2012-12-04 14:43:40.000000000 +0000
--- src/common/compat_getopt.h.orig 2015-05-16 20:30:24.000000000 +0000
+++ src/common/compat_getopt.h
@@ -30,7 +30,7 @@
#include "config.h"
@@ -1,10 +1,10 @@
$NetBSD: patch-src_common_compat__getopt__main.c,v 1.2 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-src_common_compat__getopt__main.c,v 1.3 2015/09/07 19:59:42 gdt Exp $
See comment in patch-src_common_compat__getopt.h. In addition, a
kludge is added here to get the test file to build, pending a new
release from upstream with the issue properly addressed.
--- src/common/compat_getopt_main.c.orig 2012-12-04 14:43:40.000000000 +0000
--- src/common/compat_getopt_main.c.orig 2015-05-16 20:30:24.000000000 +0000
+++ src/common/compat_getopt_main.c
@@ -173,6 +173,8 @@ main(int argc, char * argv[])
progname);
@@ -1,6 +1,6 @@
$NetBSD: patch-src_libopensc_log.c,v 1.1 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-src_libopensc_log.c,v 1.2 2015/09/07 19:59:42 gdt Exp $
--- src/libopensc/log.c.orig 2012-12-04 14:43:40.000000000 +0000
--- src/libopensc/log.c.orig 2015-05-16 20:30:24.000000000 +0000
+++ src/libopensc/log.c
@@ -91,7 +91,13 @@ static void sc_do_log_va(sc_context_t *c
gettimeofday (&tv, NULL);
@@ -1,17 +1,17 @@
$NetBSD: patch-src_pkcs11_pkcs11-global.c,v 1.3 2014/03/14 20:49:56 gdt Exp $
$NetBSD: patch-src_pkcs11_pkcs11-global.c,v 1.4 2015/09/07 19:59:42 gdt Exp $
Use correct size for malloc.
Not yet reported upstream.
--- src/pkcs11/pkcs11-global.c.orig 2012-12-04 14:43:40.000000000 +0000
--- src/pkcs11/pkcs11-global.c.orig 2015-05-16 20:30:24.000000000 +0000
+++ src/pkcs11/pkcs11-global.c
@@ -42,7 +42,7 @@ extern CK_FUNCTION_LIST pkcs11_function_
@@ -46,7 +46,7 @@ extern CK_FUNCTION_LIST pkcs11_function_
#include <pthread.h>
CK_RV mutex_create(void **mutex)
{
- pthread_mutex_t *m = malloc(sizeof(*mutex));
+ pthread_mutex_t *m = malloc(sizeof(*m));
- pthread_mutex_t *m = calloc(1, sizeof(*mutex));
+ pthread_mutex_t *m = calloc(1, sizeof(*m));
if (m == NULL)
return CKR_GENERAL_ERROR;;
pthread_mutex_init(m, NULL);