diff options
author | rodent <rodent@pkgsrc.org> | 2015-04-18 03:36:23 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2015-04-18 03:36:23 +0000 |
commit | 9c5a24ce19a47dc545e1e3a9522d74f96bad50bb (patch) | |
tree | 4e5644aec988412b61a504be18940a35f2b8d251 | |
parent | ca29fb046cf1ba6186843b456d60917aba6b3504 (diff) | |
download | pkgsrc-9c5a24ce19a47dc545e1e3a9522d74f96bad50bb.tar.gz |
Add sqlite3 PKG_OPTION. USE_CMAKE instead of autotools. Update openssl
dependency. Bump BUILDLINK_A{B,P}I* in buildlink3.mk due to API changes.
From NEWS:
== GNU ZRTP 4.4.0 ==
Changes the handling of HMAC and Hash contexts to avoild tool
many malloc/free calls and thus memory pointer problems.
Enhance the handling an check the nonce when using multi-stream
mode. This required a modification to the class file and some
modifications on the API. The old functions are now deprecated
but still usable. Nevertheless you should change your application
to use the new fuctions which support the new nonce handling and
checks.
Some bug fixing as well.
== GNU ZRTP 4.3.1 ==
This is a bugfix release. It fixes several compiler issues in
iOS8 Clang, Mircosoft C++ compiler (VS 2012) etc.
This release also adds a fix to address a possible problem when
using 'memset(...)' on a memory area immediately followed by a
'free(...)' call to free this memory area. Some compilers may
otpimize the code and do not call 'memset(...)'. That's bad for
software that deals with secure keys :-) . The fix removes this
possible vulnerability.
== GNU ZRTP 4.3.0 ==
This version adds some new API that provide to set retry timer
values and to get some retry counters.
Application may now set some values of the retry counters during
the discovery (Hello) and the negotiation phase. Applications may
increase the number of retries or modify the capping to support
slow or bad networks.
To get some idea about the actual number of retries during ZRTP
negotiation an application may now use the new API to get an array
of counters. The ZRTP state engine records how many retries occured
during the different protocol states.
Note: only the ZRTP initiator performs packet retries after the
discovery (Hello) phase. The responder would always return zero
alues for the other retry counters.
Because we have a new set of functions the API changed, thus it's
necessary to recompile applications that use the new library version.
== GNU ZRTP 4.2.4 ==
Only small changes to enable Android X86 (see clients/tivi/android)
as an example.
Rename functions aes_init() to aes_init_zrtp() to avoid names clashes
with other libreries that may include own AES modules.
== GNU ZRTP 4.2.3 ==
The optional SAS relay feature (refer to RFC6189, chapter 7.3) is
not longer compiled by default. If your project needs this support
then modify the CMakeLists.txt file and uncomment a 'add_definition'
statments. See comment in the CMakelists.txt file.
The reasons to disable this optional feature in the default build:
it's rarely used and some concerns about misusing this feature.
== GNU ZRTP 4.2.2 ==
A small enhancement in SRTP handling to provide a longer bit-shift
register with 128 bits. The replay now check accepts packets which
are up to 127 sequence number behing the current packet. The upper
layer (codecs) gets more packets on slower/bad networks that we may
see on mobile 3G/4G connections.
If the codecs do not remove silence then this may lead to some longer
audio replay, similar to sattelite communication.
== GNU ZRTP 4.2.1 ==
Bug fixes in the SRTP part that checks for replay and updates the ROC.
The wrong computations lead to false replay indications and to wrong
HMAC, thus they dropped to much packets, in particular under bad network
conditions.
Changed the handling the the zrtp_getSasType function the the ZrtpCWrapper.
Please check the inline documentation and the compiler warning how to
use the return value of the function.
-rw-r--r-- | net/libzrtpcpp/Makefile | 18 | ||||
-rw-r--r-- | net/libzrtpcpp/PLIST | 4 | ||||
-rw-r--r-- | net/libzrtpcpp/buildlink3.mk | 13 | ||||
-rw-r--r-- | net/libzrtpcpp/distinfo | 10 | ||||
-rw-r--r-- | net/libzrtpcpp/options.mk | 15 | ||||
-rw-r--r-- | net/libzrtpcpp/patches/patch-CMakeLists.txt | 10 |
6 files changed, 48 insertions, 22 deletions
diff --git a/net/libzrtpcpp/Makefile b/net/libzrtpcpp/Makefile index 63b645414ca..c9fde6a7351 100644 --- a/net/libzrtpcpp/Makefile +++ b/net/libzrtpcpp/Makefile @@ -1,17 +1,19 @@ -# $NetBSD: Makefile,v 1.8 2014/04/07 04:11:22 rodent Exp $ +# $NetBSD: Makefile,v 1.9 2015/04/18 03:36:23 rodent Exp $ -DISTNAME= V4.2.0 +GITHUB_TAG= V4.4.0 +DISTNAME= ${GITHUB_TAG} PKGNAME= libzrtpcpp${DISTNAME:S/V/-/1} CATEGORIES= net -MASTER_SITES= https://github.com/wernerd/ZRTPCPP/archive/ +MASTER_SITES= ${MASTER_SITE_GITHUB:=wernerd/} +GITHUB_PROJECT= ZRTPCPP DIST_SUBDIR= ${PKGBASE} MAINTAINER= rodent@NetBSD.org -HOMEPAGE= http://wiki.gnutelephony.org/ +HOMEPAGE= http://www.gnutelephony.org/index.php/GNU_ZRTP COMMENT= ZRTP extension for GNU ccRTP LICENSE= gnu-gpl-v3 -WRKSRC= ${WRKDIR}/ZRTPCPP-${PKGVERSION_NOREV} +WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV} USE_PKGLOCALEDIR= yes GCC_REQD+= 4.7 @@ -22,8 +24,10 @@ USE_CMAKE= yes PKG_DESTDIR_SUPPORT= destdir CMAKE_ARGS+= -DLIBDIRNAME=lib -BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7i -BUILDLINK_DEPMETHOD.openssl= build +.include "options.mk" + +BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.8 +#BUILDLINK_DEPMETHOD.openssl= build .include "../../mk/pthread.buildlink3.mk" .include "../../security/libgcrypt/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" diff --git a/net/libzrtpcpp/PLIST b/net/libzrtpcpp/PLIST index 3ea40cd52b7..b6eafb2db3c 100644 --- a/net/libzrtpcpp/PLIST +++ b/net/libzrtpcpp/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2014/04/07 04:11:22 rodent Exp $ +@comment $NetBSD: PLIST,v 1.4 2015/04/18 03:36:23 rodent Exp $ include/libzrtpcpp/CcrtpTimeoutProvider.h include/libzrtpcpp/ZrtpCWrapper.h include/libzrtpcpp/ZrtpCallback.h @@ -10,5 +10,5 @@ include/libzrtpcpp/common/osSpecifics.h include/libzrtpcpp/zrtpccrtp.h lib/libzrtpcpp.so lib/libzrtpcpp.so.4 -lib/libzrtpcpp.so.4.2.0 +lib/libzrtpcpp.so.4.4.0 lib/pkgconfig/libzrtpcpp.pc diff --git a/net/libzrtpcpp/buildlink3.mk b/net/libzrtpcpp/buildlink3.mk index 70f5b9d40f8..e078dfd0f4a 100644 --- a/net/libzrtpcpp/buildlink3.mk +++ b/net/libzrtpcpp/buildlink3.mk @@ -1,14 +1,21 @@ -# $NetBSD: buildlink3.mk,v 1.5 2014/04/07 05:34:23 rodent Exp $ +# $NetBSD: buildlink3.mk,v 1.6 2015/04/18 03:36:23 rodent Exp $ BUILDLINK_TREE+= libzrtpcpp .if !defined(LIBZRTPCPP_BUILDLINK3_MK) LIBZRTPCPP_BUILDLINK3_MK:= -BUILDLINK_API_DEPENDS.libzrtpcpp+= libzrtpcpp>=0.9.0 -BUILDLINK_ABI_DEPENDS.libzrtpcpp?= libzrtpcpp>=4.2.0 +BUILDLINK_API_DEPENDS.libzrtpcpp+= libzrtpcpp>=4.4.0 +BUILDLINK_ABI_DEPENDS.libzrtpcpp?= libzrtpcpp>=4.4.0 BUILDLINK_PKGSRCDIR.libzrtpcpp?= ../../net/libzrtpcpp +pkgbase := libzrtpcpp +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.libzrtpcpp:Msqlite3) +.include "../../databases/sqlite3/buildlink3.mk" +.endif + .include "../../mk/pthread.buildlink3.mk" .include "../../security/libgcrypt/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" diff --git a/net/libzrtpcpp/distinfo b/net/libzrtpcpp/distinfo index 0da2d7f11bc..649d369f4e5 100644 --- a/net/libzrtpcpp/distinfo +++ b/net/libzrtpcpp/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2014/04/07 04:11:22 rodent Exp $ +$NetBSD: distinfo,v 1.5 2015/04/18 03:36:23 rodent Exp $ -SHA1 (libzrtpcpp/V4.2.0.tar.gz) = fdba0ac3a849279ece82fe7e78172f3709bde6a8 -RMD160 (libzrtpcpp/V4.2.0.tar.gz) = a48238527518078a08e5d733dddac619ce46d1c0 -Size (libzrtpcpp/V4.2.0.tar.gz) = 1922243 bytes -SHA1 (patch-CMakeLists.txt) = 4635e03e618872e75c2081e8247b77cff1d0d339 +SHA1 (libzrtpcpp/V4.4.0.tar.gz) = edbd5484f476439dff3692aed85680173bb78d65 +RMD160 (libzrtpcpp/V4.4.0.tar.gz) = 7018a4507aaa67debb52d54a428750e9f9e01eef +Size (libzrtpcpp/V4.4.0.tar.gz) = 1933037 bytes +SHA1 (patch-CMakeLists.txt) = 1c56d64b67a381cda790bbdab3892f3be408231f diff --git a/net/libzrtpcpp/options.mk b/net/libzrtpcpp/options.mk new file mode 100644 index 00000000000..182e1b7c335 --- /dev/null +++ b/net/libzrtpcpp/options.mk @@ -0,0 +1,15 @@ +# $NetBSD: options.mk,v 1.1 2015/04/18 03:36:23 rodent Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.libzrtpcpp +PKG_SUPPORTED_OPTIONS= sqlite3 +PKG_SUGGESTED_OPTIONS+= # blank + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msqlite3) +BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.7 +.include "../../databases/sqlite3/buildlink3.mk" +CMAKE_ARGS+= -DSQLITE=ON +.else +CMAKE_ARGS+= -DSQLITE=OFF +.endif diff --git a/net/libzrtpcpp/patches/patch-CMakeLists.txt b/net/libzrtpcpp/patches/patch-CMakeLists.txt index 37f9de70397..67f591aab34 100644 --- a/net/libzrtpcpp/patches/patch-CMakeLists.txt +++ b/net/libzrtpcpp/patches/patch-CMakeLists.txt @@ -1,10 +1,10 @@ -$NetBSD: patch-CMakeLists.txt,v 1.2 2014/01/10 02:58:52 rodent Exp $ +$NetBSD: patch-CMakeLists.txt,v 1.3 2015/04/18 03:36:23 rodent Exp $ Don't set LIB_SUFFIX for pkgsrc. LIBDIRNAME is set via CMAKE_ARGS. ---- CMakeLists.txt.orig 2013-11-23 12:30:36.000000000 +0000 +--- CMakeLists.txt.orig 2015-03-29 10:38:44.000000000 +0000 +++ CMakeLists.txt -@@ -80,18 +80,6 @@ include(CheckLibraryExists) +@@ -85,18 +85,6 @@ include(CheckLibraryExists) include(CheckIncludeFiles) include(CheckFunctionExists) @@ -20,6 +20,6 @@ Don't set LIB_SUFFIX for pkgsrc. LIBDIRNAME is set via CMAKE_ARGS. - set(LIBDIRNAME "lib${LIB_SUFFIX}") -endif() - - check_include_files(stdlib.h HAVE_STDLIB_H) - check_include_files(string.h HAVE_STRING_H) + MESSAGE(STATUS "Configuring GNU ${PROJECT_NAME} ${VERSION} for ${PACKAGE}, commit: ${GIT_COMMIT} ...") + |