diff options
author | pav <pav@FreeBSD.org> | 2006-06-23 20:56:40 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-06-23 20:56:40 +0800 |
commit | e4ff9a7c5dae25e0d58dbe0f2e48d84303839b1a (patch) | |
tree | 83f4058b10e8646fa3646c1e711803d7e164ebd3 /net/iaxmodem/files | |
parent | fc2f45a33ede7622dafd22561cccfd46dfb09072 (diff) | |
download | freebsd-ports-gnome-e4ff9a7c5dae25e0d58dbe0f2e48d84303839b1a.tar.gz freebsd-ports-gnome-e4ff9a7c5dae25e0d58dbe0f2e48d84303839b1a.tar.zst freebsd-ports-gnome-e4ff9a7c5dae25e0d58dbe0f2e48d84303839b1a.zip |
IAXmodem is a software modem written in C that uses
an IAX channel (commonly provided by an Asterisk PBX
system) instead of a traditional phone line and uses
a DSP library instead of DSP hardware chipsets.
WWW: http://sourceforge.net/projects/iaxmodem
PR: ports/99238
Submitted by: Filippo Natali <filippo.natali@gmail.com>
Diffstat (limited to 'net/iaxmodem/files')
-rw-r--r-- | net/iaxmodem/files/iaxmodem.sh.in | 25 | ||||
-rw-r--r-- | net/iaxmodem/files/patch-aa | 72 | ||||
-rw-r--r-- | net/iaxmodem/files/pkg-message.in | 15 |
3 files changed, 112 insertions, 0 deletions
diff --git a/net/iaxmodem/files/iaxmodem.sh.in b/net/iaxmodem/files/iaxmodem.sh.in new file mode 100644 index 000000000000..c9ceba75397f --- /dev/null +++ b/net/iaxmodem/files/iaxmodem.sh.in @@ -0,0 +1,25 @@ +#!/bin/sh + +# PROVIDE: iaxmodem +# REQUIRE: DAEMON +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable iaxmodem: +# +# iaxmodem_enable="YES" +# + +. %%RC_SUBR%% + +name=iaxmodem +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/iaxmodem + +pidfile=${iaxmodem_pidfile:-"/var/run/iaxmodem.pid"} + +iaxmodem_enable=${iaxmodem_enable:-"NO"} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/iaxmodem/files/patch-aa b/net/iaxmodem/files/patch-aa new file mode 100644 index 000000000000..87bc13a48fd1 --- /dev/null +++ b/net/iaxmodem/files/patch-aa @@ -0,0 +1,72 @@ +--- build.orig Mon Jun 12 17:03:49 2006 ++++ build Thu Jun 15 14:24:34 2006 +@@ -16,14 +17,14 @@ + ./configure && \ + make && \ + cd ../spandsp && \ +- ./configure && \ ++ ./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" && \ + make && \ + cd ../.. && \ +- gcc -Wall -O2 -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" -DSTATICLIBS -D_GNU_SOURCE \ ++ gcc $CFLAGS $LDFLAGS -Wall -O2 -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" -DSTATICLIBS -D_GNU_SOURCE \ + -std=c99 -Ilib/libiax2/src -Ilib/spandsp/src -c -o iaxmodem.o iaxmodem.c && \ +- gcc -lm -lutil -ltiff -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a ++ gcc $CFLAGS $LDFLAGS -lm -lutil -ltiff -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a + else +- gcc -Wall -O2 -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" \ ++ gcc $CFLAGS $LDFLAGS -Wall -O2 -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" \ + -lm -liax -lutil -lspandsp -ltiff -o iaxmodem iaxmodem.c + fi + if [ -n "`ls /etc/iaxmodem-cfg.* 2>/dev/null`" ]; then +--- iaxmodem.c.orig Mon Jun 12 15:54:33 2006 ++++ iaxmodem.c Thu Jun 15 14:26:12 2006 +@@ -17,11 +17,13 @@ + */ + #include <stdio.h> + #include <string.h> +-#ifndef __OpenBSD__ ++#if !defined(__OpenBSD__) && !defined(__FreeBSD__) + #include <pty.h> + #else + #include <termios.h> ++#if !defined(__FreeBSD__) + #include <util.h> ++#endif + #endif + #include <stdlib.h> + #include <unistd.h> +--- lib/libiax2/src/iax.c.orig Mon Jun 12 15:54:46 2006 ++++ lib/libiax2/src/iax.c Thu Jun 15 14:22:17 2006 +@@ -64,9 +64,9 @@ + #include <arpa/inet.h> + #include <time.h> + +-#if !defined(MACOSX) && !defined(__OpenBSD__) ++#if !defined(MACOSX) && !defined(__OpenBSD__) && !defined(__FreeBSD__) + #include <malloc.h> +-#if !defined(SOLARIS) ++#if !defined(SOLARIS) && !defined(__FreeBSD__) + #include <error.h> + #endif + #endif +@@ -97,7 +97,7 @@ + #ifdef MACOSX + #define IAX_SOCKOPTS MSG_DONTWAIT + #else +-#if defined(SOLARIS) || defined(__OpenBSD__) ++#if defined(SOLARIS) || defined(__OpenBSD__) || defined(__FreeBSD__) + #define IAX_SOCKOPTS MSG_DONTWAIT + #else /* Linux and others */ + #define IAX_SOCKOPTS MSG_DONTWAIT | MSG_NOSIGNAL +--- lib/spandsp/src/spandsp/t4.h.orig Mon Jun 12 15:54:34 2006 ++++ lib/spandsp/src/spandsp/t4.h Thu Jun 15 14:17:20 2006 +@@ -28,6 +28,8 @@ + + /*! \file */ + ++#include <time.h> ++ + #if !defined(_T4_H_) + #define _T4_H_ + diff --git a/net/iaxmodem/files/pkg-message.in b/net/iaxmodem/files/pkg-message.in new file mode 100644 index 000000000000..a1bdfb2802d9 --- /dev/null +++ b/net/iaxmodem/files/pkg-message.in @@ -0,0 +1,15 @@ +To use iaxmodem with Hylafax: + +- Install and configure Hylafax + +- Take a look to %%EXAMPLESDIR%%/config.ttyIAX to configure the "virtual" modem + +- For accepting incoming FAX/data calls, modify /etc/ttys as below + and send SIGHUP to init process: + +>ttyIAX "%%PREFIX%%/sbin/faxgetty" dialup on secure + +Additional Documentation: +%%DOCSDIR%% +%%EXAMPLESDIR%% +http://www.voip-info.org/wiki/view/Asterisk+IAXmodem |