SOURCES: iaxmodem.as-needed.patch (NEW), iaxmodem.init (NEW), iaxm...
marcus
marcus at pld-linux.org
Thu Sep 27 10:45:50 CEST 2007
Author: marcus Date: Thu Sep 27 08:45:50 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- from ALT Linux
---- Files affected:
SOURCES:
iaxmodem.as-needed.patch (NONE -> 1.1) (NEW), iaxmodem.init (NONE -> 1.1) (NEW), iaxmodem-sysconfig (NONE -> 1.1) (NEW), iaxmodem.ttyIAX (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/iaxmodem.as-needed.patch
diff -u /dev/null SOURCES/iaxmodem.as-needed.patch:1.1
--- /dev/null Thu Sep 27 10:45:50 2007
+++ SOURCES/iaxmodem.as-needed.patch Thu Sep 27 10:45:45 2007
@@ -0,0 +1,11 @@
+--- ./build.orig 2006-07-31 23:29:49 +0400
++++ ./build 2006-10-24 13:56:43 +0400
+@@ -23,7 +23,7 @@
+ cd ../.. && \
+ gcc -Wall -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 -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a -lm -lutil -ltiff
+ else
+ gcc -Wall -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" \
+ -lm -liax -lutil -lspandsp -ltiff -o iaxmodem iaxmodem.c
================================================================
Index: SOURCES/iaxmodem.init
diff -u /dev/null SOURCES/iaxmodem.init:1.1
--- /dev/null Thu Sep 27 10:45:50 2007
+++ SOURCES/iaxmodem.init Thu Sep 27 10:45:45 2007
@@ -0,0 +1,111 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: iaxmodem
+# Required-Start: $local_fs $network $remote_fs
+# Should-Start: asterisk
+# Required-Stop: $local_fs $network $remote_fs
+# Should-Stop: asterisk
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: IAXmodem
+# Description: IAXmodem
+### END INIT INFO
+
+WITHOUT_RC_COMPAT=1
+
+. /etc/init.d/functions
+
+LOCKFILE=/var/lock/iaxmodem/iaxmodem
+PIDFILE=/var/run/iaxmodem/iaxmodem.pid
+
+DAEMON=/usr/sbin/iaxmodem
+NAME=iaxmodem
+DESC=iaxmodem
+
+test -x $DAEMON || exit 0
+
+
+set -e
+
+# Source iaxmodem configuration.
+SourceIfNotEmpty /etc/sysconfig/iaxmodem
+
+RETVAL=0
+
+mkdir -p /var/run/iaxmodem 2>/dev/null
+chown uucp /var/run/iaxmodem
+
+
+
+start()
+{
+ start_daemon --lockfile "$LOCKFILE" --expect-user root $DAEMON
+ RETVAL=$?
+ return $RETVAL
+}
+
+stop()
+{
+ stop_daemon --lockfile "$LOCKFILE" --expect-user root $DAEMON
+ RETVAL=$?
+ return $RETVAL
+}
+
+restart()
+{
+ stop
+ sleep 1
+ start
+}
+
+reload()
+{
+ echo -n "Reloading $DESC: "
+ if [ -e /var/run/$NAME/$NAME.pid ]; then
+ kill -HUP $(cat /var/run/$NAME/$NAME.pid)
+ echo "$NAME."
+ else
+ echo "$NAME not running!"
+ exit 1
+ fi
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ reload)
+ reload
+ ;;
+ condstop)
+ if [ -e "$LOCKFILE" ]; then
+ stop
+ fi
+ ;;
+condrestart)
+ if [ -e "$LOCKFILE" ]; then
+ restart
+ fi
+ ;;
+condreload)
+ if [ -e "$LOCKFILE" ]; then
+ reload
+ fi
+ ;;
+status)
+ status --lockfile "$LOCKFILE" --expect-user root -- $NAME
+ RETVAL=$?
+ ;;
+restart|force-reload)
+ stop
+ start
+ ;;
+*)
+ msg_usage "${0##*/} {start|stop|restart|reload|force-reload}"
+ RETVAL=1
+esac
+
+exit $RETVAL
================================================================
Index: SOURCES/iaxmodem-sysconfig
diff -u /dev/null SOURCES/iaxmodem-sysconfig:1.1
--- /dev/null Thu Sep 27 10:45:50 2007
+++ SOURCES/iaxmodem-sysconfig Thu Sep 27 10:45:45 2007
@@ -0,0 +1,4 @@
+#
+# Options to iaxmodem
+#
+TTY="ttyIAX"
================================================================
Index: SOURCES/iaxmodem.ttyIAX
diff -u /dev/null SOURCES/iaxmodem.ttyIAX:1.1
--- /dev/null Thu Sep 27 10:45:50 2007
+++ SOURCES/iaxmodem.ttyIAX Thu Sep 27 10:45:45 2007
@@ -0,0 +1,11 @@
+device /dev/ttyIAX
+owner uucp:uucp
+mode 660
+port 4570
+refresh 300
+server 127.0.0.1
+peername iaxmodem
+secret password
+cidname John Doe
+cidnumber 8005551212
+codec slinear
================================================================
More information about the pld-cvs-commit
mailing list