opensc: make it build againdiff -r1.31 -r1.32 pkgsrc/security/opensc/Makefile
(adam)
@@ -1,62 +1,48 @@ | @@ -1,62 +1,48 @@ | |||
1 | # $NetBSD: Makefile,v 1.31 2020/06/02 08:24:41 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.32 2020/06/20 19:08:19 adam Exp $ | |
2 | 2 | |||
3 | OPENSC_PKG_VERSION= 0.20.0 | 3 | DISTNAME= opensc-0.20.0 | |
4 | DISTNAME= opensc-${OPENSC_PKG_VERSION} | 4 | PKGREVISION= 2 | |
5 | #PKGREVISION= 1 | 5 | CATEGORIES= security | |
6 | PKGREVISION= 1 | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenSC/} | |
7 | CATEGORIES= security | 7 | ||
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=opensc/} | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | 9 | HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki | ||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | COMMENT= Smart Card drivers and middleware | |
11 | HOMEPAGE= https://github.com/OpenSC/OpenSC/wiki | 11 | LICENSE= gnu-lgpl-v2.1 | |
12 | COMMENT= Smart Card drivers and middleware | |||
13 | LICENSE= gnu-lgpl-v2.1 | |||
14 | 12 | |||
15 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | 13 | WRKSRC= ${WRKDIR}/OpenSC-${PKGVERSION_NOREV} | |
16 | ||||
17 | GNU_CONFIGURE= YES | |||
18 | USE_LIBTOOL= YES | |||
19 | USE_TOOLS+= gmake pkg-config | |||
20 | WRKSRC= ${WRKDIR}/OpenSC-${OPENSC_PKG_VERSION} | |||
21 | ||||
22 | USE_TOOLS+= autoreconf autoconf automake | |||
23 | AUTOCONF_REQD= 2.60 | |||
24 | AUTOMAKE_REQD= 1.15 | |||
25 | pre-configure: | |||
26 | cd ${WRKSRC:Q} && \ | |||
27 | ./bootstrap \ | |||
28 | -s ${OPENSC_VERSION_SUFFIX:Q} \ | |||
29 | -r ${OPENSC_VERSION_REVISION:Q} | |||
30 | 14 | |||
31 | .include "options.mk" | 15 | BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | |
32 | ||||
33 | # Previous versions needed these, but 0.12.2 configure does not | |||
34 | # recognize them. | |||
35 | #CONFIGURE_ARGS+= --with-openssl=${SSLBASE:Q} | |||
36 | #CONFIGURE_ARGS+= --disable-sensitive-logging | |||
37 | ||||
38 | # Is this necessary (and non-default)? | |||
39 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | |||
40 | 16 | |||
17 | USE_LIBTOOL= yes | |||
18 | USE_TOOLS+= autoreconf autoconf automake gmake pkg-config | |||
19 | GNU_CONFIGURE= yes | |||
20 | CONFIGURE_ARGS+= --disable-autostart-items | |||
21 | CONFIGURE_ARGS+= --disable-strict # avoid -Werror | |||
22 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | |||
23 | # The stylesheets are not found without this. | |||
24 | CONFIGURE_ARGS+= --with-xsl-stylesheetsdir=${PREFIX}/share/xsl/docbook | |||
41 | # This is perhaps an upstream bug. | 25 | # This is perhaps an upstream bug. | |
42 | CONFIGURE_ENV+= PCSC_CFLAGS=-I${PREFIX}/include/PCSC | 26 | CONFIGURE_ENV+= PCSC_CFLAGS=-I${PREFIX}/include/PCSC | |
43 | 27 | |||
44 | # The stylesheets are not found without this. | 28 | .include "options.mk" | |
45 | CONFIGURE_ARGS+= --with-xsl-stylesheetsdir=${PREFIX}/share/xsl/docbook | |||
46 | 29 | |||
47 | EGDIR= ${PREFIX}/share/examples/opensc | 30 | EGDIR= ${PREFIX}/share/examples/opensc | |
48 | CONF_FILES+= ${EGDIR}/opensc.conf ${PKG_SYSCONFDIR}/opensc.conf | 31 | CONF_FILES+= ${EGDIR}/opensc.conf ${PKG_SYSCONFDIR}/opensc.conf | |
49 | 32 | |||
33 | pre-configure: | |||
34 | cd ${WRKSRC} && autoreconf -fi | |||
35 | ||||
50 | INSTALLATION_DIRS= ${EGDIR} | 36 | INSTALLATION_DIRS= ${EGDIR} | |
51 | post-install: | 37 | post-install: | |
52 | ${INSTALL_DATA} ${WRKSRC}/etc/opensc.conf.example ${DESTDIR}${EGDIR}/opensc.conf | 38 | ${INSTALL_DATA} ${WRKSRC}/etc/opensc.conf.example ${DESTDIR}${EGDIR}/opensc.conf | |
53 | 39 | |||
54 | # build tools for doc; should be TOOLS | 40 | # build tools for doc; should be TOOLS | |
55 | .include "../../textproc/libxslt/buildlink3.mk" | 41 | .include "../../textproc/libxslt/buildlink3.mk" | |
56 | 42 | |||
57 | # We avoid pthreads intentionally; tell dlopen not drag it in. | 43 | # We avoid pthreads intentionally; tell dlopen not drag it in. | |
58 | DLOPEN_REQUIRE_PTHREADS= no | 44 | DLOPEN_REQUIRE_PTHREADS= no | |
59 | .include "../../mk/dlopen.buildlink3.mk" | 45 | .include "../../mk/dlopen.buildlink3.mk" | |
60 | .include "../../mk/readline.buildlink3.mk" | 46 | .include "../../mk/readline.buildlink3.mk" | |
61 | .include "../../devel/zlib/buildlink3.mk" | 47 | .include "../../devel/zlib/buildlink3.mk" | |
62 | .include "../../security/openssl/buildlink3.mk" | 48 | .include "../../security/openssl/buildlink3.mk" |
@@ -1,38 +1,37 @@ | @@ -1,38 +1,37 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.12 2020/04/30 15:29:33 manu Exp $ | 1 | @comment $NetBSD: PLIST,v 1.13 2020/06/20 19:08:19 adam Exp $ | |
2 | bin/cardos-tool | 2 | bin/cardos-tool | |
3 | bin/cryptoflex-tool | 3 | bin/cryptoflex-tool | |
4 | bin/dnie-tool | 4 | bin/dnie-tool | |
5 | bin/egk-tool | 5 | bin/egk-tool | |
6 | bin/eidenv | 6 | bin/eidenv | |
7 | bin/gids-tool | 7 | bin/gids-tool | |
8 | bin/goid-tool | 8 | bin/goid-tool | |
9 | bin/iasecc-tool | 9 | bin/iasecc-tool | |
10 | bin/netkey-tool | 10 | bin/netkey-tool | |
11 | bin/npa-tool | 11 | bin/npa-tool | |
12 | bin/openpgp-tool | 12 | bin/openpgp-tool | |
13 | bin/opensc-asn1 | 13 | bin/opensc-asn1 | |
14 | bin/opensc-explorer | 14 | bin/opensc-explorer | |
15 | bin/opensc-notify | 15 | bin/opensc-notify | |
16 | bin/opensc-tool | 16 | bin/opensc-tool | |
17 | bin/piv-tool | 17 | bin/piv-tool | |
18 | bin/pkcs11-register | 18 | bin/pkcs11-register | |
19 | bin/pkcs11-tool | 19 | bin/pkcs11-tool | |
20 | bin/pkcs15-crypt | 20 | bin/pkcs15-crypt | |
21 | bin/pkcs15-init | 21 | bin/pkcs15-init | |
22 | bin/pkcs15-tool | 22 | bin/pkcs15-tool | |
23 | bin/sc-hsm-tool | 23 | bin/sc-hsm-tool | |
24 | bin/westcos-tool | 24 | bin/westcos-tool | |
25 | etc/xdg/autostart/pkcs11-register.desktop | |||
26 | lib/libopensc.la | 25 | lib/libopensc.la | |
27 | lib/libsmm-local.la | 26 | lib/libsmm-local.la | |
28 | lib/onepin-opensc-pkcs11.la | 27 | lib/onepin-opensc-pkcs11.la | |
29 | lib/opensc-pkcs11.la | 28 | lib/opensc-pkcs11.la | |
30 | lib/pkcs11-spy.la | 29 | lib/pkcs11-spy.la | |
31 | lib/pkcs11/onepin-opensc-pkcs11.so | 30 | lib/pkcs11/onepin-opensc-pkcs11.so | |
32 | lib/pkcs11/opensc-pkcs11.so | 31 | lib/pkcs11/opensc-pkcs11.so | |
33 | lib/pkcs11/pkcs11-spy.so | 32 | lib/pkcs11/pkcs11-spy.so | |
34 | lib/pkgconfig/opensc-pkcs11.pc | 33 | lib/pkgconfig/opensc-pkcs11.pc | |
35 | man/man1/cardos-tool.1 | 34 | man/man1/cardos-tool.1 | |
36 | man/man1/cryptoflex-tool.1 | 35 | man/man1/cryptoflex-tool.1 | |
37 | man/man1/dnie-tool.1 | 36 | man/man1/dnie-tool.1 | |
38 | man/man1/egk-tool.1 | 37 | man/man1/egk-tool.1 |
@@ -1,13 +1,11 @@ | @@ -1,13 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.17 2020/04/30 15:29:33 manu Exp $ | 1 | $NetBSD: distinfo,v 1.18 2020/06/20 19:08:19 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (opensc-0.20.0.tar.gz) = a03dab062dd033c5662f11ee39e53b84106c2c0d | 3 | SHA1 (opensc-0.20.0.tar.gz) = a03dab062dd033c5662f11ee39e53b84106c2c0d | |
4 | RMD160 (opensc-0.20.0.tar.gz) = 71003565bee88d9fb20723ad6b5ad68c627eff3b | 4 | RMD160 (opensc-0.20.0.tar.gz) = 71003565bee88d9fb20723ad6b5ad68c627eff3b | |
5 | SHA512 (opensc-0.20.0.tar.gz) = 1360ee35f579cbeecf368777bb60d6c23ec2a80a2983328ea2c193530cc9b101a807ff1e2982ad34bfcc2bae2c867feecf300b6229d15057e796bd31ecffb02d | 5 | SHA512 (opensc-0.20.0.tar.gz) = 1360ee35f579cbeecf368777bb60d6c23ec2a80a2983328ea2c193530cc9b101a807ff1e2982ad34bfcc2bae2c867feecf300b6229d15057e796bd31ecffb02d | |
6 | Size (opensc-0.20.0.tar.gz) = 1653931 bytes | 6 | Size (opensc-0.20.0.tar.gz) = 1653931 bytes | |
7 | SHA1 (patch-aa) = 5ca9245c763a9f8a8aa273e7e76c75168c52d0cd | 7 | SHA1 (patch-aa) = 5ca9245c763a9f8a8aa273e7e76c75168c52d0cd | |
8 | SHA1 (patch-ab) = 5ea2a3e623df6bc2c814c37ce89fed491149f8b4 | 8 | SHA1 (patch-ab) = 5ea2a3e623df6bc2c814c37ce89fed491149f8b4 | |
9 | SHA1 (patch-configure.ac) = 9031a51162d883b3e3118820d400e07ef99dbad9 | 9 | SHA1 (patch-configure.ac) = 9031a51162d883b3e3118820d400e07ef99dbad9 | |
10 | SHA1 (patch-doc_tools_Makefile.am) = 4535988c6fbe4b9f45838362f2f9604c91fecd53 | 10 | SHA1 (patch-doc_tools_Makefile.am) = 4535988c6fbe4b9f45838362f2f9604c91fecd53 | |
11 | SHA1 (patch-src_common_compat__getopt.h) = a9c4fad2d1fd73f5b2c245a364cfd37d838f51eb | |||
12 | SHA1 (patch-src_common_compat__getopt__main.c) = 96d51499ea6d48bd53a17e3849c44ae4e0c9b669 | |||
13 | SHA1 (patch-src_libopensc_log.c) = 00acff447b1890b05cd3bea10ece8d42e7b6cf26 | 11 | SHA1 (patch-src_libopensc_log.c) = 00acff447b1890b05cd3bea10ece8d42e7b6cf26 |