1 |
|
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 2.12.23 |
5 |
< |
PORTREVISION= 2 |
4 |
> |
PORTVERSION= 3.2.21 |
5 |
> |
PORTREVISION= 0 |
6 |
|
CATEGORIES= security net |
7 |
< |
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ |
7 |
> |
MASTER_SITES= GNUPG/gnutls/v3.2 |
8 |
|
|
9 |
< |
MAINTAINER= ports@MidnightBSD.org |
9 |
> |
MAINTAINER= novel@FreeBSD.org |
10 |
|
COMMENT= GNU Transport Layer Security library |
11 |
– |
LICENSE= gpl3 |
11 |
|
|
12 |
< |
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \ |
13 |
< |
gpg-error:${PORTSDIR}/security/libgpg-error \ |
14 |
< |
p11-kit:${PORTSDIR}/security/p11-kit |
12 |
> |
LICENSE= gpl3 lgpl2.1 |
13 |
> |
LICENSE_COMB= multi |
14 |
> |
LICENSE_FILE_gpl3= ${WRKSRC}/COPYING |
15 |
> |
LICENSE_FILE_lgpl2.1= ${WRKSRC}/COPYING.LESSER |
16 |
|
|
17 |
< |
CONFLICTS= gnutls-devel-[0-9]* |
17 |
> |
LIB_DEPENDS= libnettle.so:${PORTSDIR}/security/nettle \ |
18 |
> |
libtasn1.so:${PORTSDIR}/security/libtasn1 |
19 |
|
|
20 |
< |
USE_PATHFIX= yes |
20 |
< |
USE_BZIP2= yes |
21 |
< |
USE_ICONV= yes |
22 |
< |
USE_PKGCONFIG= build |
23 |
< |
USE_GNOME= ltverhack gnomehack |
24 |
< |
GNU_CONFIGURE= yes |
25 |
< |
MAKE_JOBS_SAFE= yes |
20 |
> |
USES= gmake iconv libtool makeinfo pathfix pkgconfig tar:xz |
21 |
|
USE_LDCONFIG= yes |
22 |
< |
USE_AUTOTOOLS= libtool |
23 |
< |
LIBTOOLFILES= configure lib/configure libextra/configure |
22 |
> |
GNU_CONFIGURE= yes |
23 |
> |
CONFIGURE_ARGS= --disable-guile \ |
24 |
> |
--disable-silent-rules \ |
25 |
> |
--enable-local-libopts |
26 |
|
CPPFLAGS+= -I${LOCALBASE}/include |
27 |
|
LDFLAGS+= -L${LOCALBASE}/lib |
28 |
< |
CPPFLAGS+= -fPIC |
32 |
< |
CONFIGURE_ARGS+= --disable-guile |
33 |
< |
MANCOMPRESSED= no |
28 |
> |
MAKE_ENV= MAKEINFOFLAGS=--no-split |
29 |
|
|
30 |
< |
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS |
30 |
> |
OPTIONS_DEFINE= CRYWRAP EXAMPLES LIBDANE NLS P11KIT TPM ZLIB |
31 |
> |
OPTIONS_DEFAULT= CRYWRAP P11KIT TPM ZLIB |
32 |
> |
OPTIONS_SUB= yes |
33 |
|
|
34 |
< |
LIBTASN1_DESC= Use system libtasn1 instead of local one |
35 |
< |
CXX_DESC= Install C++ library |
36 |
< |
LZO_DESC= LZO compression |
34 |
> |
CRYWRAP_DESC= Enable Crywrap TLS proxy service |
35 |
> |
CRYWRAP_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn |
36 |
> |
CRYWRAP_CONFIGURE_ENABLE= crywrap |
37 |
|
|
38 |
< |
OPTIONS_DEFAULT= LIBTASN1 CXX |
38 |
> |
LIBDANE_DESC= DNSSEC support for DANE (danetool --check) |
39 |
> |
LIBDANE_LIB_DEPENDS= libunbound.so:${PORTSDIR}/dns/unbound |
40 |
> |
LIBDANE_CONFIGURE_ENABLE= libdane |
41 |
|
|
42 |
< |
.include <bsd.mport.options.mk> |
42 |
> |
NLS_CONFIGURE_ENABLE= nls |
43 |
> |
NLS_USES= gettext |
44 |
|
|
45 |
< |
.if ${PORT_OPTIONS:MLIBTASN1} |
46 |
< |
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1 |
47 |
< |
.else |
48 |
< |
CONFIGURE_ARGS+= --with-included-libtasn1 |
49 |
< |
.endif |
45 |
> |
P11KIT_DESC= PKCS\#11 and p11-kit support |
46 |
> |
P11KIT_CONFIGURE_WITH= p11-kit |
47 |
> |
P11KIT_LIB_DEPENDS= libp11-kit.so:${PORTSDIR}/security/p11-kit |
48 |
|
|
49 |
< |
.if ${PORT_OPTIONS:MLZO} |
50 |
< |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
51 |
< |
CONFIGURE_ARGS+= --with-lzo |
54 |
< |
.endif |
49 |
> |
TPM_DESC= TPM (trousers) support |
50 |
> |
TPM_CONFIGURE_WITH= tpm |
51 |
> |
TPM_LIB_DEPENDS= libtspi.so:${PORTSDIR}/security/trousers |
52 |
|
|
53 |
< |
.if ${PORT_OPTIONS:MCXX} |
57 |
< |
CONFIGURE_ARGS+= --disable-cxx |
58 |
< |
PLIST_SUB+= CXX="@comment " |
59 |
< |
.else |
60 |
< |
PLIST_SUB+= CXX="" |
61 |
< |
.endif |
53 |
> |
ZLIB_CONFIGURE_WITH= zlib |
54 |
|
|
55 |
< |
.if ${PORT_OPTIONS:MNLS} |
64 |
< |
CONFIGURE_ARGS+= --disable-nls |
65 |
< |
PLIST_SUB+= NLS="@comment " |
66 |
< |
.else |
67 |
< |
USES+= gettext |
68 |
< |
PLIST_SUB+= NLS="" |
69 |
< |
.endif |
55 |
> |
INFO= gnutls gnutls-guile |
56 |
|
|
71 |
– |
PORTDOCS= AUTHORS NEWS README THANKS |
72 |
– |
PORTEXAMPLES= *.c |
73 |
– |
|
57 |
|
post-patch: |
58 |
< |
@${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} \ |
59 |
< |
-e 's|[$$][(]LTLIBPTHREAD[)]||g' |
58 |
> |
@${RM} ${WRKSRC}/doc/*.info* |
59 |
> |
${SED} -i '' -e 's|^+_NORETURN_H|_NORETURN_H|' \ |
60 |
> |
${WRKSRC}/src/libopts/Makefile.in |
61 |
|
|
62 |
|
post-install: |
63 |
< |
.if !defined (NOPORTEXAMPLES) |
64 |
< |
@${MKDIR} ${EXAMPLESDIR} |
65 |
< |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \ |
82 |
< |
${EXAMPLESDIR} |
83 |
< |
.endif |
84 |
< |
.if !defined(NOPORTDOCS) |
85 |
< |
@${MKDIR} ${DOCSDIR} |
86 |
< |
.for i in ${PORTDOCS} |
87 |
< |
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
88 |
< |
.endfor |
89 |
< |
.endif |
63 |
> |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
64 |
> |
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR} |
65 |
> |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnutls*.so.* |
66 |
|
|
91 |
– |
.include "Makefile.man" |
67 |
|
.include <bsd.port.mk> |