[Midnightbsd-cvs] mports [18907] trunk/net: add libsrtp (secure rtp reference implementation )
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat May 9 18:43:27 EDT 2015
Revision: 18907
http://svnweb.midnightbsd.org/mports/?rev=18907
Author: laffer1
Date: 2015-05-09 18:43:26 -0400 (Sat, 09 May 2015)
Log Message:
-----------
add libsrtp (secure rtp reference implementation)
Modified Paths:
--------------
trunk/net/Makefile
Added Paths:
-----------
trunk/net/libsrtp/
trunk/net/libsrtp/Makefile
trunk/net/libsrtp/distinfo
trunk/net/libsrtp/files/
trunk/net/libsrtp/files/patch-crypto-include-sha1.h
trunk/net/libsrtp/files/patch-libsrtp.pc.in
trunk/net/libsrtp/pkg-descr
trunk/net/libsrtp/pkg-plist
Modified: trunk/net/Makefile
===================================================================
--- trunk/net/Makefile 2015-05-09 22:41:06 UTC (rev 18906)
+++ trunk/net/Makefile 2015-05-09 22:43:26 UTC (rev 18907)
@@ -42,6 +42,7 @@
SUBDIR += libpcap
SUBDIR += libpcapnav
SUBDIR += libproxy
+SUBDIR += libsrtp
SUBDIR += libvncserver
SUBDIR += liferea
SUBDIR += linc
Added: trunk/net/libsrtp/Makefile
===================================================================
--- trunk/net/libsrtp/Makefile (rev 0)
+++ trunk/net/libsrtp/Makefile 2015-05-09 22:43:26 UTC (rev 18907)
@@ -0,0 +1,47 @@
+# $MidnightBSD$
+
+PORTNAME= libsrtp
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.5.0
+PORTREVISION= 1
+CATEGORIES= net
+MASTER_SITES= GHR
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Secure RTP (SRTP) Reference Implementation
+
+LICENSE= bsd3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= cisco
+WRKSRC= ${WRKDIR}/${GH_PROJECT}-${DISTVERSION}
+
+GNU_CONFIGURE= yes
+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>
Property changes on: trunk/net/libsrtp/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/libsrtp/distinfo
===================================================================
--- trunk/net/libsrtp/distinfo (rev 0)
+++ trunk/net/libsrtp/distinfo 2015-05-09 22:43:26 UTC (rev 18907)
@@ -0,0 +1,2 @@
+SHA256 (libsrtp-v1.5.0.tar.gz) = ecf5e9be5a6ec3c73841977dc2e059c69209849f2e500269fa133d4c654f1b47
+SIZE (libsrtp-v1.5.0.tar.gz) = 1687709
Property changes on: trunk/net/libsrtp/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/libsrtp/files/patch-crypto-include-sha1.h
===================================================================
--- trunk/net/libsrtp/files/patch-crypto-include-sha1.h (rev 0)
+++ trunk/net/libsrtp/files/patch-crypto-include-sha1.h 2015-05-09 22:43:26 UTC (rev 18907)
@@ -0,0 +1,23 @@
+--- crypto/include/sha1.h.orig 2014-10-13 14:35:33 UTC
++++ crypto/include/sha1.h
+@@ -68,17 +68,20 @@ typedef EVP_MD_CTX sha1_ctx_t;
+ *
+ */
+
++static
+ void inline sha1_init (sha1_ctx_t *ctx)
+ {
+ EVP_MD_CTX_init(ctx);
+ EVP_DigestInit(ctx, EVP_sha1());
+ }
+
++static
+ void inline sha1_update (sha1_ctx_t *ctx, const uint8_t *M, int octets_in_msg)
+ {
+ EVP_DigestUpdate(ctx, M, octets_in_msg);
+ }
+
++static
+ void inline sha1_final (sha1_ctx_t *ctx, uint32_t *output)
+ {
+ unsigned int len = 0;
Property changes on: trunk/net/libsrtp/files/patch-crypto-include-sha1.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/libsrtp/files/patch-libsrtp.pc.in
===================================================================
--- trunk/net/libsrtp/files/patch-libsrtp.pc.in (rev 0)
+++ trunk/net/libsrtp/files/patch-libsrtp.pc.in 2015-05-09 22:43:26 UTC (rev 18907)
@@ -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}
Property changes on: trunk/net/libsrtp/files/patch-libsrtp.pc.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/libsrtp/pkg-descr
===================================================================
--- trunk/net/libsrtp/pkg-descr (rev 0)
+++ trunk/net/libsrtp/pkg-descr 2015-05-09 22:43:26 UTC (rev 18907)
@@ -0,0 +1,5 @@
+This package provides an implementation of the Secure Real-time
+Transport Protocol (SRTP), the Universal Security Transform (UST),
+and a supporting cryptographic kernel.
+
+WWW: https://github.com/cisco/libsrtp
Property changes on: trunk/net/libsrtp/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/libsrtp/pkg-plist
===================================================================
--- trunk/net/libsrtp/pkg-plist (rev 0)
+++ trunk/net/libsrtp/pkg-plist 2015-05-09 22:43:26 UTC (rev 18907)
@@ -0,0 +1,41 @@
+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
+include/srtp/config.h
+include/srtp/crypto.h
+include/srtp/crypto_kernel.h
+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
+include/srtp/hmac.h
+include/srtp/integers.h
+include/srtp/kernel_compat.h
+include/srtp/key.h
+include/srtp/null_auth.h
+include/srtp/null_cipher.h
+include/srtp/prng.h
+include/srtp/rand_source.h
+include/srtp/rdb.h
+include/srtp/rdbx.h
+include/srtp/rtp.h
+include/srtp/rtp_priv.h
+include/srtp/sha1.h
+include/srtp/srtp.h
+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
Property changes on: trunk/net/libsrtp/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list