summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2008-10-14 23:53:39 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2008-10-14 23:53:39 +0000
commit57ffd4d214f586ff6b8630a0e37cd49ce9c3a3c3 (patch)
tree9ed2cb7dc9e975767d708e27d8ea5c3994f5645a /net-misc
parentVersion bump and removed old (diff)
downloadhistorical-57ffd4d214f586ff6b8630a0e37cd49ce9c3a3c3.tar.gz
historical-57ffd4d214f586ff6b8630a0e37cd49ce9c3a3c3.tar.bz2
historical-57ffd4d214f586ff6b8630a0e37cd49ce9c3a3c3.zip
initial commit, solving bug# 169151.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/iaxmodem/ChangeLog11
-rw-r--r--net-misc/iaxmodem/Manifest8
-rw-r--r--net-misc/iaxmodem/files/iaxmodem.cfg88
-rw-r--r--net-misc/iaxmodem/files/iaxmodem.confd6
-rw-r--r--net-misc/iaxmodem/files/iaxmodem.initd43
-rw-r--r--net-misc/iaxmodem/files/iaxmodem.logrotated9
-rw-r--r--net-misc/iaxmodem/iaxmodem-1.1.1.ebuild101
-rw-r--r--net-misc/iaxmodem/metadata.xml19
8 files changed, 285 insertions, 0 deletions
diff --git a/net-misc/iaxmodem/ChangeLog b/net-misc/iaxmodem/ChangeLog
new file mode 100644
index 000000000000..746ad5f3c0a7
--- /dev/null
+++ b/net-misc/iaxmodem/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/iaxmodem
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iaxmodem/ChangeLog,v 1.1 2008/10/14 23:53:38 sbriesen Exp $
+
+*iaxmodem-1.1.1 (14 Oct 2008)
+
+ 14 Oct 2008; Stefan Briesenick <sbriesen@gentoo.org> +files/iaxmodem.cfg,
+ +files/iaxmodem.confd, +files/iaxmodem.initd, +files/iaxmodem.logrotated,
+ +metadata.xml, +iaxmodem-1.1.1.ebuild:
+ initial commit, solving bug# 169151.
+
diff --git a/net-misc/iaxmodem/Manifest b/net-misc/iaxmodem/Manifest
new file mode 100644
index 000000000000..889a27689d27
--- /dev/null
+++ b/net-misc/iaxmodem/Manifest
@@ -0,0 +1,8 @@
+AUX iaxmodem.cfg 2684 RMD160 60fad3bcb08b73b5e9f68d4f94408b13a59ddaef SHA1 b8c8c683e9e634ab370e2aff63fcdd1d5d9c6836 SHA256 cb3cab672319a8cd63e9d87f032bcb7493e26be25c87caeef7ce863cb80021fc
+AUX iaxmodem.confd 140 RMD160 54d7a61f11f9735071415a4173c1211f016076fe SHA1 13a46ce3b052693be0b0003bc8c13b910543657e SHA256 15fb51ad1dbca1731b90070eb78c024a4fa8a20060cc363ee4a55ac01fe32297
+AUX iaxmodem.initd 1276 RMD160 861eec59a4ad924ad1f2c7aae2b1e8053fdaa0c3 SHA1 fb931c8f97c39448d63cb506dfa6e6f694988e44 SHA256 011445f1ce9a8c77d00d7d0a3424874e68e9b98d2349adb7bda876132f63ef6a
+AUX iaxmodem.logrotated 164 RMD160 06b09cdba4d5991e4b66d9d1f487ec802d2e1ab9 SHA1 0cbe4236778290add05d414927f5a106cd579731 SHA256 515f89aeaf50c30633c04329b084e56d8ee33454de318beb77f52f66d08a7273
+DIST iaxmodem-1.1.1.tar.gz 2321262 RMD160 f126b4e67d06a4def476c1efa18b6c4caa59b4ca SHA1 8deb5523f3008cf3fae8f14822292ffbe433574e SHA256 145883e9616134f839c316b2a633a6d57d29d634d29b047d13a8dd1a724be9b6
+EBUILD iaxmodem-1.1.1.ebuild 2854 RMD160 da30b9487b93172b55ad1bd0a050635f9bd772b2 SHA1 feca581743a7d8e9519b84db2fd7f1b48b9b830c SHA256 ed5503deb2d8d717b4ecb009f2ffd16e7d1f328974b6d2f7335ebd6370db7cc9
+MISC ChangeLog 473 RMD160 b34c7ddaee7b79c735675b6052d3ee30c464086a SHA1 2d9af203e39db352539ab9fa2328e3440c990151 SHA256 6cfd424236aa7deee3f517a3ba18e0e2a7bdc5bbd017914fe8f508e6ca36fd8d
+MISC metadata.xml 624 RMD160 44689da1f2120a1b7ed28fc89d44d40875f0c103 SHA1 2eec7cd6c7a25235708c02d77ed43a7e04873de8 SHA256 256be32995890314c0efdabbe84b77f1bd4627b125859666125270f7eb09d044
diff --git a/net-misc/iaxmodem/files/iaxmodem.cfg b/net-misc/iaxmodem/files/iaxmodem.cfg
new file mode 100644
index 000000000000..8a30e912e58b
--- /dev/null
+++ b/net-misc/iaxmodem/files/iaxmodem.cfg
@@ -0,0 +1,88 @@
+; Sample Configuration for IAXmodem
+;
+; Comments can be placed into the IAXmodem configuration files by beginning
+; them with a semicolon (";").
+;
+; Copy this file to the /etc/iaxmodem directory with a unique file name.
+; The name of the file will serve as the identifier, if you choose to
+; launch iaxmodem in non-daemon mode.
+
+
+; The "nodaemon" entry exempts the modem from inclusion with daemon use.
+; Comment out this line, if you want to use this config in daemon mode!
+
+nodaemon
+
+; The "device" entry is the full name of the device that you will be using
+; in your modem application. If running multiple instances of iaxmodem then
+; you will need a different device for each instance.
+
+device /dev/ttyIAX
+
+; The "owner" entry (formatted "user:group") is the system user and group
+; that IAXmodem should use for the created device.
+
+owner uucp:uucp
+
+; The "mode" entry is the permissions mode for the created device.
+
+mode 660
+
+; The "port" entry refers to the preferred port number on which to listen
+; for communications from the Asterisk server (so if you're using more than
+; one IAXmodem on a single IP address you will need to have each IAXmodem
+; configuration use a different port). You should not use "4569" if Asterisk
+; is already listening on port 4569.
+
+port 4570
+
+; The "refresh" entry indicates the preference on how frequently to refresh
+; the registration with the Asterisk server. (However, the actual refresh
+; value that is used will be negotiated between IAXmodem and the Asterisk
+; server.) By setting this to a value of "0" (zero), IAXmodem will not
+; register with the server, and thus the server should be configured to
+; communicate with IAXmodem on a static address.
+
+refresh 300
+
+; The "server", "peername", and "secret" entries refer to the server name
+; (or address), the registered peer name for the IAXmodem client, and the
+; registered secret (password) for the IAXmodem client.
+
+server 127.0.0.1
+peername iaxmodem
+secret password
+
+; The entries "cidname" and "cidnumber" refer to the Caller*ID presentation
+; that will be made by IAXmodem to the Asterisk server.
+
+cidname John Doe
+cidnumber 8005551212
+
+; The "codec" entry refers to the preferred audio codec. This can be
+; "slinear", "alaw", or "ulaw".
+
+codec slinear
+;codec alaw
+;codec ulaw
+
+; The "record" entry causes audio files to be recorded.
+
+;record
+
+; The "replay" entry causes the audio files to be replayed back.
+
+;replay
+
+; The "nojitterbuffer" entry disables the very simple iaxmodem jitterbuffer
+
+;nojitterbuffer
+
+; The "iax2debug" entry enables debugging output for IAX2.
+
+;iax2debug
+
+; The "dspdebug" entry enables debugging output for the DSPs.
+
+;dspdebug
+
diff --git a/net-misc/iaxmodem/files/iaxmodem.confd b/net-misc/iaxmodem/files/iaxmodem.confd
new file mode 100644
index 000000000000..5998d8a36e96
--- /dev/null
+++ b/net-misc/iaxmodem/files/iaxmodem.confd
@@ -0,0 +1,6 @@
+# Configfile for /etc/init.d/iaxmodem
+
+# Set the priority of the iaxmodem process
+# Value: (highest) -20..19 (lowest)
+#
+#IAXMODEM_NICE="-5"
diff --git a/net-misc/iaxmodem/files/iaxmodem.initd b/net-misc/iaxmodem/files/iaxmodem.initd
new file mode 100644
index 000000000000..6d254205a0c4
--- /dev/null
+++ b/net-misc/iaxmodem/files/iaxmodem.initd
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.initd,v 1.1 2008/10/14 23:53:39 sbriesen Exp $
+
+description="IAXmodem"
+description_reload="Reread configuration file and make the appropriate changes"
+extra_started_commands="reload"
+command="/usr/sbin/iaxmodem"
+pidfile="/var/run/iaxmodem.pid"
+name="iaxmodem"
+
+depend() {
+ use asterisk
+ need net
+}
+
+start() {
+ ebegin "Starting ${description}"
+ start-stop-daemon --start --quiet --pidfile "${pidfile}" \
+ --env TMPDIR="/tmp" --nice ${IAXMODEM_NICE:-0} --exec "${command}"
+ eend ${?}
+}
+
+stop() {
+ local childs=""
+ ebegin "Stopping ${description}"
+ # start-stop-daemon doesn't kill childs reliable, so we
+ # use a combination of pgrep + start-stop-daemon + kill
+ [ -s "${pidfile}" ] && childs=$(pgrep -P $(cat "${pidfile}"))
+ start-stop-daemon --stop --quiet --pidfile "${pidfile}" --retry TERM/10/KILL/5
+ if eend ${?}; then
+ # if there're still childs running, kill them!
+ [ -n "${childs}" ] && kill -KILL ${childs} 2>/dev/null
+ return 0
+ fi
+}
+
+reload() {
+ ebegin "Reloading ${description} configuration"
+ start-stop-daemon --stop --signal HUP --pidfile "${pidfile}"
+ eend ${?}
+}
diff --git a/net-misc/iaxmodem/files/iaxmodem.logrotated b/net-misc/iaxmodem/files/iaxmodem.logrotated
new file mode 100644
index 000000000000..037aa94ef9dd
--- /dev/null
+++ b/net-misc/iaxmodem/files/iaxmodem.logrotated
@@ -0,0 +1,9 @@
+/var/log/iaxmodem/* {
+ notifempty
+ missingok
+ size 1000k
+ sharedscripts
+ postrotate
+ /etc/init.d/iaxmodem --ifstarted --quiet reload
+ endscript
+}
diff --git a/net-misc/iaxmodem/iaxmodem-1.1.1.ebuild b/net-misc/iaxmodem/iaxmodem-1.1.1.ebuild
new file mode 100644
index 000000000000..146097fd80d2
--- /dev/null
+++ b/net-misc/iaxmodem/iaxmodem-1.1.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iaxmodem/iaxmodem-1.1.1.ebuild,v 1.1 2008/10/14 23:53:38 sbriesen Exp $
+
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="Software modem that uses an IAX channel instead of a traditional phone line"
+HOMEPAGE="http://sourceforge.net/projects/iaxmodem/"
+SRC_URI="mirror://sourceforge/iaxmodem/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="logrotate"
+
+RDEPEND="media-libs/tiff
+ sys-process/procps
+ logrotate? ( app-admin/logrotate )"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fix header file position
+ sed -i -e 's:iax/iax-client\.h:iax-client.h:g' iaxmodem.c
+
+ # fix broken line terminators
+ sed -i -e 's:\r::g' -e 's:--s$:--:g' -e 's:$:\r:g' iaxmodem.inf
+
+ # fix installation of libiax2 headers (though we don't need them)
+ sed -i -e 's: \(\$(includedir)/\): $(DESTDIR)\1:g' lib/libiax2/src/Makefile.in
+
+ # patch configure (we compile libs for ourself)
+ sed -i -e 's:^\(cd\|./configure\):# \1:g' configure
+ sed -i -e 's:build-libiax build-libspandsp ::g' Makefile.in
+}
+
+src_compile() {
+ cd "${S}/lib/libiax2"
+ econf \
+ --libdir=/usr/$(get_libdir)/iaxmodem \
+ --datadir=/usr/share/iaxmodem/libiax2 || die "econf libiax2 failed"
+ emake || die "emake libiax2 failed"
+
+ cd "${S}/lib/spandsp"
+ econf \
+ --libdir=/usr/$(get_libdir)/iaxmodem \
+ --datadir=/usr/share/iaxmodem || die "econf spandsp failed"
+ emake || die "emake spandsp failed"
+
+ cd "${S}"
+ ./configure || die "configure iaxmodem failed"
+ emake OBJS="iaxmodem.o" CC=$(tc-getCC) \
+ LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/$(get_libdir)/iaxmodem \
+ -Llib/spandsp/src/.libs -Llib/libiax2/src/.libs -lm -lutil -ltiff -lspandsp -liax" \
+ || die "emake iaxmodem failed"
+}
+
+src_install() {
+ cd "${S}/lib/libiax2"
+ make DESTDIR="${D}" install || die "install libiax2 failed"
+
+ cd "${S}/lib/spandsp"
+ make DESTDIR="${D}" install || die "install spandsp failed"
+
+ cd "${S}"
+ dosbin iaxmodem || die "install failed"
+
+ # remove libiax and spandsp headers, we don't need them
+ rm -rf "${D}usr/include" "${D}usr/bin/iax-config"
+
+ # install init-script + conf
+ newinitd "${FILESDIR}/iaxmodem.initd" iaxmodem
+ newconfd "${FILESDIR}/iaxmodem.confd" iaxmodem
+
+ # install docs
+ doman iaxmodem.1
+ dodoc FAQ README TODO
+ newdoc CHANGES ChangeLog
+ newdoc lib/libiax2/ChangeLog ChangeLog.libiax2
+ newdoc lib/spandsp/ChangeLog ChangeLog.spandsp
+
+ # install sample configs
+ insinto /etc/iaxmodem
+ newins "${FILESDIR}/iaxmodem.cfg" default
+ insinto /usr/share/iaxmodem
+ doins config.ttyIAX iaxmodem-cfg.ttyIAX iaxmodem.inf
+
+ # install logrotate rule
+ if use logrotate; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/iaxmodem.logrotated" iaxmodem
+ fi
+
+ # create log dir
+ keepdir /var/log/iaxmodem
+}
diff --git a/net-misc/iaxmodem/metadata.xml b/net-misc/iaxmodem/metadata.xml
new file mode 100644
index 000000000000..ba8a2782ca62
--- /dev/null
+++ b/net-misc/iaxmodem/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-dialup</herd>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+ <longdescription lang="en">
+ 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.
+ </longdescription>
+ <use>
+ <flag name='logrotate'>
+ Install support files for app-admin/logrotate
+ </flag>
+ </use>
+</pkgmetadata>