6a52cb9044
CVE-2014-0092 - Certificate verification issue CVE-2014-1959 - Certificate verification issue All users are recommended to upgrade ASAP. Security: f645aa90-a3e8-11e3-a422-3c970e169bc2
100 lines
2.4 KiB
Makefile
100 lines
2.4 KiB
Makefile
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gnutls
|
|
PORTVERSION= 2.12.23
|
|
PORTREVISION= 4
|
|
CATEGORIES= security net
|
|
MASTER_SITES= \
|
|
ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ \
|
|
http://www.ring.gr.jp/pub/net/gnupg/gnutls/v${PORTVERSION:C/.[0-9]+$//}/
|
|
|
|
MAINTAINER= novel@FreeBSD.org
|
|
COMMENT= GNU Transport Layer Security library
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \
|
|
gpg-error:${PORTSDIR}/security/libgpg-error \
|
|
p11-kit:${PORTSDIR}/security/p11-kit
|
|
|
|
CONFLICTS= gnutls-devel-[0-9]*
|
|
|
|
USES= pathfix pkgconfig iconv gmake perl5 shebangfix
|
|
USE_PERL5= build
|
|
USE_BZIP2= yes
|
|
USE_GNOME= ltverhack
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
USE_AUTOTOOLS= libtool
|
|
LIBTOOLFILES= configure lib/configure libextra/configure
|
|
SHEBANG_FILES= doc/scripts/gdoc doc/scripts/sort2.pl
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CPPFLAGS+= -fPIC
|
|
CONFIGURE_ARGS+= --disable-guile
|
|
CONFIGURE_ARGS_PREFIX= ${STAGEDIR}${PREFIX}
|
|
|
|
INFO= gnutls
|
|
|
|
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS
|
|
|
|
LIBTASN1_DESC= Use system libtasn1 instead of local one
|
|
CXX_DESC= Install C++ library
|
|
LZO_DESC= LZO compression
|
|
|
|
OPTIONS_DEFAULT= LIBTASN1 CXX
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLIBTASN1}
|
|
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1
|
|
.else
|
|
CONFIGURE_ARGS+= --with-included-libtasn1
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLZO}
|
|
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
|
|
CONFIGURE_ARGS+= --with-lzo
|
|
.else
|
|
CONFIGURE_ARGS+= --with-lzo=no
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCXX}
|
|
PLIST_SUB+= CXX=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-cxx
|
|
PLIST_SUB+= CXX="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
PORTDOCS= AUTHORS NEWS README THANKS
|
|
PORTEXAMPLES= *.c
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" -type f |\
|
|
${XARGS} ${REINPLACE_CMD} -e 's|[$$][(]LTLIBPTHREAD[)]||g'
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
|
|
${WRKSRC}/doc/doxygen/Doxyfile.in
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \
|
|
${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|