Date: Thu, 7 Feb 2019 09:43:16 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492354 - in head/net: . mod_amd mod_amd/files Message-ID: <201902070943.x179hGCt008463@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Thu Feb 7 09:43:16 2019 New Revision: 492354 URL: https://svnweb.freebsd.org/changeset/ports/492354 Log: New port: net/mod_amd Asterisk app_amd for FreeSWITCH This is an implementation of Asterisk's answering machine detection (voice activity detection) for FreeSWITCH. WWW: https://github.com/seanbright/mod_amd PR: 211773 Submitted by: Šimun Mikecin <numisemis@yahoo.com> Reviewed by: koobs Added: head/net/mod_amd/ head/net/mod_amd/Makefile (contents, props changed) head/net/mod_amd/distinfo (contents, props changed) head/net/mod_amd/files/ head/net/mod_amd/files/amd.conf.xml (contents, props changed) head/net/mod_amd/files/patch-Makefile (contents, props changed) head/net/mod_amd/pkg-descr (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Thu Feb 7 09:30:40 2019 (r492353) +++ head/net/Makefile Thu Feb 7 09:43:16 2019 (r492354) @@ -470,6 +470,7 @@ SUBDIR += miruo SUBDIR += mlvpn SUBDIR += mobile-broadband-provider-info + SUBDIR += mod_amd SUBDIR += mono-zeroconf SUBDIR += mopd SUBDIR += morebalance Added: head/net/mod_amd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mod_amd/Makefile Thu Feb 7 09:43:16 2019 (r492354) @@ -0,0 +1,32 @@ +# Created by: Simun Mikecin <numisemis@yahoo.com> +# $FreeBSD$ + +PORTNAME= mod_amd +PORTVERSION= g20150926 +CATEGORIES= net + +MAINTAINER= numisemis@yahoo.com +COMMENT= Asterisk app_amd for FreeSWITCH + +LICENSE= CC0-1.0 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libfreeswitch.so:net/freeswitch + +USES= pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= seanbright +GH_TAGNAME= 60daa7e + +MAKE_ARGS= prefix=${STAGEDIR}${PREFIX} + +PLIST_FILES= etc/freeswitch/autoload_configs/amd.conf.xml \ + lib/freeswitch/mod/mod_amd.so + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/freeswitch/autoload_configs + ${INSTALL_DATA} ${FILESDIR}/amd.conf.xml \ + ${STAGEDIR}${PREFIX}/etc/freeswitch/autoload_configs + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freeswitch/mod/mod_amd.so + +.include <bsd.port.mk> Added: head/net/mod_amd/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mod_amd/distinfo Thu Feb 7 09:43:16 2019 (r492354) @@ -0,0 +1,3 @@ +TIMESTAMP = 1471001403 +SHA256 (seanbright-mod_amd-g20150926-60daa7e_GH0.tar.gz) = 10cce0b849c7165f48cc37d4a0d8e4b030b4905c1cd78c1f31dd8acff86ec5bb +SIZE (seanbright-mod_amd-g20150926-60daa7e_GH0.tar.gz) = 6245 Added: head/net/mod_amd/files/amd.conf.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mod_amd/files/amd.conf.xml Thu Feb 7 09:43:16 2019 (r492354) @@ -0,0 +1,13 @@ +<configuration name="amd.conf" description="mod_amd Configuration"> + <settings> + <param name="silence_threshold" value="256"/> + <param name="maximum_word_length" value="5000"/> + <param name="maximum_number_of_words" value="3"/> + <param name="between_words_silence" value="50"/> + <param name="min_word_length" value="100"/> + <param name="total_analysis_time" value="5000"/> + <param name="after_greeting_silence" value="800"/> + <param name="greeting" value="1500"/> + <param name="initial_silence" value="2500"/> + </settings> +</configuration> Added: head/net/mod_amd/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mod_amd/files/patch-Makefile Thu Feb 7 09:43:16 2019 (r492354) @@ -0,0 +1,35 @@ +--- Makefile.orig 2015-10-26 15:12:15 UTC ++++ Makefile +@@ -1,20 +1,19 @@ + MODNAME = mod_amd.so + MODOBJ = mod_amd.o +-MODCFLAGS = -Wall -Werror ++MODCFLAGS = -Wall + # MODLDFLAGS = -lssl + +-CC = gcc +-CFLAGS = -fPIC -g -ggdb `pkg-config --cflags freeswitch` $(MODCFLAGS) ++CFLAGS += -fPIC `pkg-config --cflags freeswitch` $(MODCFLAGS) + LDFLAGS = `pkg-config --libs freeswitch` $(MODLDFLAGS) + + .PHONY: all + all: $(MODNAME) + + $(MODNAME): $(MODOBJ) +- @$(CC) -shared -o $@ $(MODOBJ) $(LDFLAGS) ++ $(CC) -shared -o $@ $(MODOBJ) $(LDFLAGS) + + .c.o: $< +- @$(CC) $(CFLAGS) -o $@ -c $< ++ $(CC) $(CFLAGS) -o $@ -c $< + + .PHONY: clean + clean: +@@ -22,5 +21,5 @@ clean: + + .PHONY: install + install: $(MODNAME) +- install -d $(DESTDIR)/usr/lib/freeswitch/mod +- install $(MODNAME) $(DESTDIR)/usr/lib/freeswitch/mod ++ install -d $(prefix)/lib/freeswitch/mod ++ install $(MODNAME) $(prefix)/lib/freeswitch/mod Added: head/net/mod_amd/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/mod_amd/pkg-descr Thu Feb 7 09:43:16 2019 (r492354) @@ -0,0 +1,6 @@ +Asterisk app_amd for FreeSWITCH + +This is an implementation of Asterisk's answering machine detection +(voice activity detection) for FreeSWITCH. + +WWW: https://github.com/seanbright/mod_amd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902070943.x179hGCt008463>