svn commit: r376611 - in head/net/libsrtp: . files
Tijl Coosemans
tijl at FreeBSD.org
Fri Jan 9 15:06:17 UTC 2015
Author: tijl
Date: Fri Jan 9 15:06:15 2015
New Revision: 376611
URL: https://svnweb.freebsd.org/changeset/ports/376611
QAT: https://qat.redports.org/buildarchive/r376611/
Log:
Update net/libsrtp to 1.5.0.
PR: 196248
Approved by: maintainer timeout (16 days)
Added:
head/net/libsrtp/files/
head/net/libsrtp/files/patch-libsrtp.pc.in (contents, props changed)
Modified:
head/net/libsrtp/Makefile
head/net/libsrtp/distinfo
head/net/libsrtp/pkg-descr
head/net/libsrtp/pkg-plist
Modified: head/net/libsrtp/Makefile
==============================================================================
--- head/net/libsrtp/Makefile Fri Jan 9 14:37:52 2015 (r376610)
+++ head/net/libsrtp/Makefile Fri Jan 9 15:06:15 2015 (r376611)
@@ -2,21 +2,46 @@
# $FreeBSD$
PORTNAME= libsrtp
-PORTVERSION= 1.4.4
-PORTREVISION= 1
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.5.0
CATEGORIES= net
-MASTER_SITES= SF/${ORIGNAME}/${ORIGNAME}/${PORTVERSION}
-DISTNAME= ${ORIGNAME}-${PORTVERSION}
+MASTER_SITES= GHR
MAINTAINER= alexander at brovikov.ru
-COMMENT= Library implementing Secure RTP
+COMMENT= Secure RTP (SRTP) Reference Implementation
-WRKSRC= ${WRKDIR}/${ORIGNAME}
-ORIGNAME= srtp
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= cisco
+WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
GNU_CONFIGURE= yes
-USES= gmake tar:tgz
-USE_CSTD= gnu89
-CFLAGS+= -fPIC
+CONFIGURE_ARGS= --enable-openssl
+CFLAGS+= -fPIC # Taken from configure script
+USES= gmake pathfix pkgconfig
+USE_LDCONFIG= yes
+USE_OPENSSL= yes
+WITH_OPENSSL_PORT= yes
+
+.if ! defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--disable-debug
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e 's/@LDFLAGS@ -L\./-L. @LDFLAGS@/' \
+ -e 's/libsrtp.so/&.0/g' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} '/pkg-config/s/openssl/libcrypto/' \
+ ${WRKSRC}/configure
+
+post-build:
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} libsrtp.so.0)
+
+post-install:
+ ${LN} -s libsrtp.so.0 ${STAGEDIR}${PREFIX}/lib/libsrtp.so
.include <bsd.port.mk>
Modified: head/net/libsrtp/distinfo
==============================================================================
--- head/net/libsrtp/distinfo Fri Jan 9 14:37:52 2015 (r376610)
+++ head/net/libsrtp/distinfo Fri Jan 9 15:06:15 2015 (r376611)
@@ -1,2 +1,2 @@
-SHA256 (srtp-1.4.4.tgz) = d9c2cbb1c95172ed2dc963eff0d6ce1072326dc81cb1dd38414e9f0e430af314
-SIZE (srtp-1.4.4.tgz) = 502890
+SHA256 (libsrtp-v1.5.0.tar.gz) = ecf5e9be5a6ec3c73841977dc2e059c69209849f2e500269fa133d4c654f1b47
+SIZE (libsrtp-v1.5.0.tar.gz) = 1687709
Added: head/net/libsrtp/files/patch-libsrtp.pc.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/libsrtp/files/patch-libsrtp.pc.in Fri Jan 9 15:06:15 2015 (r376611)
@@ -0,0 +1,10 @@
+--- libsrtp.pc.in.orig 2014-12-30 16:27:06 UTC
++++ libsrtp.pc.in
+@@ -7,5 +7,6 @@ Name: @PACKAGE_NAME@
+ Version: @PACKAGE_VERSION@
+ Description: Library for SRTP (Secure Realtime Transport Protocol)
+
+-Libs: -L${libdir} -lsrtp @LIBS@
++Libs: -L${libdir} -lsrtp
++Requires.private: libcrypto
+ Cflags: -I${includedir}
Modified: head/net/libsrtp/pkg-descr
==============================================================================
--- head/net/libsrtp/pkg-descr Fri Jan 9 14:37:52 2015 (r376610)
+++ head/net/libsrtp/pkg-descr Fri Jan 9 15:06:15 2015 (r376611)
@@ -1,4 +1,5 @@
-libsrtp is a library implementing Secure RTP.
-RTP is used for Voice over IP (VoIP) as well as audio and video streaming;
+This package provides an implementation of the Secure Real-time
+Transport Protocol (SRTP), the Universal Security Transform (UST),
+and a supporting cryptographic kernel.
-WWW: http://sourceforge.net/projects/srtp/
+WWW: https://github.com/cisco/libsrtp
Modified: head/net/libsrtp/pkg-plist
==============================================================================
--- head/net/libsrtp/pkg-plist Fri Jan 9 14:37:52 2015 (r376610)
+++ head/net/libsrtp/pkg-plist Fri Jan 9 15:06:15 2015 (r376611)
@@ -1,7 +1,8 @@
-lib/libsrtp.a
include/srtp/aes.h
include/srtp/aes_cbc.h
+include/srtp/aes_gcm_ossl.h
include/srtp/aes_icm.h
+include/srtp/aes_icm_ossl.h
include/srtp/alloc.h
include/srtp/auth.h
include/srtp/cipher.h
@@ -12,6 +13,7 @@ include/srtp/crypto_math.h
include/srtp/crypto_types.h
include/srtp/cryptoalg.h
include/srtp/datatypes.h
+include/srtp/ekt.h
include/srtp/err.h
include/srtp/getopt_s.h
include/srtp/gf2_8.h
@@ -33,3 +35,7 @@ include/srtp/srtp_priv.h
include/srtp/stat.h
include/srtp/ut_sim.h
include/srtp/xfm.h
+lib/libsrtp.a
+lib/libsrtp.so
+lib/libsrtp.so.0
+libdata/pkgconfig/libsrtp.pc
More information about the svn-ports-all
mailing list