Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2011 07:57:10 GMT
From:      Alexander Brovikov <alexander@brovikov.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156808: [patch] net/asterisk: add option for build with libsrtp
Message-ID:  <201105040757.p447vAFr076322@red.freebsd.org>
Resent-Message-ID: <201105040800.p4480KQF048789@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156808
>Category:       ports
>Synopsis:       [patch] net/asterisk: add option for build with libsrtp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 04 08:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Brovikov
>Release:        8.1-RELEASE
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/net/asterisk.orig/Makefile  2011-04-20 17:54:33.000000000 +0600
+++ /usr/ports/net/asterisk/Makefile    2011-05-04 13:48:27.000000000 +0600
@@ -60,7 +60,8 @@
        ILBC            "Enable iLBC codec" off \
        SPANDSP         "Enable Spandsp faxing support" off \
        EXCHANGE        "Enable Exchange calendar support" off \
-       NEWG711         "Enable new G711 Codec" off
+       NEWG711         "Enable new G711 Codec" off \
+       SRTP            "Enable SecureRTP support" off

 ASTERISK_USER?=                asterisk
 ASTERISK_GROUP?=       asterisk
@@ -256,6 +257,15 @@
 EXTRA_PATCHES+=        ${PATCHDIR}/extra-patch-menuselect-tree-g711-new-codec.diff
 .endif

+.if !defined(WITH_SRTP)
+PLIST_SUB+=    WITH_SRTP="@comment "
+CONFIGURE_ARGS+=       --without-srtp
+.else
+PLIST_SUB+=    WITH_SRTP=""
+BUILD_DEPENDS+=        libsrtp>=1.4.4:${PORTSDIR}/net/libsrtp
+CONFIGURE_ARGS+=       --with-srtp
+.endif
+
 .if defined(WITH_MISC_PATCHES)
 EXTRA_PATCHES+=        ${PATCHDIR}/dtmf_debug.diff
 EXTRA_PATCHES+=        ${PATCHDIR}/feature_disconnect.diff
diff -ur /usr/ports/net/asterisk.orig/pkg-plist /usr/ports/net/asterisk/pkg-plist
--- /usr/ports/net/asterisk.orig/pkg-plist 2011-05-03 01:35:41.000000000 +0600
+++ /usr/ports/net/asterisk/pkg-plist   2011-05-03 13:38:09.000000000 +0600
@@ -470,6 +470,7 @@
 lib/asterisk/modules/res_limit.so
 lib/asterisk/modules/res_phoneprov.so
 lib/asterisk/modules/res_realtime.so
+%%WITH_SRTP%%lib/asterisk/modules/res_srtp.so
 %%WITH_DAHDI%%lib/asterisk/modules/res_timing_dahdi.so
 lib/asterisk/modules/res_timing_pthread.so
 lib/asterisk/modules/app_adsiprog.so


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105040757.p447vAFr076322>