From ad51cd08a93a846337d4b5eacb8ba6aacda64bb8 Mon Sep 17 00:00:00 2001 From: Tony Vroon Date: Mon, 26 Oct 2009 13:34:22 +0000 Subject: Cope with automated British Telecom line tests as they currently cause the DAHDI channel to wedge with "exiting simple switch" messages. An upstream bug exists since July but has not been actioned yet. Delete old ebuild. (Portage version: 2.1.7.1/cvs/Linux x86_64) --- net-misc/asterisk/ChangeLog | 11 +- net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild | 424 +++++++++++++++++++ net-misc/asterisk/asterisk-1.6.1.6.ebuild | 450 --------------------- .../1.6.1/asterisk-1.6.1.6-bt-line-test.patch | 35 ++ 4 files changed, 469 insertions(+), 451 deletions(-) create mode 100644 net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild delete mode 100644 net-misc/asterisk/asterisk-1.6.1.6.ebuild create mode 100644 net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch (limited to 'net-misc') diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index 5a14d09f47fd..3d25ee4e2428 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-misc/asterisk # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.217 2009/10/22 14:47:54 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.218 2009/10/26 13:34:21 chainsaw Exp $ + +*asterisk-1.6.1.6-r2 (26 Oct 2009) + + 26 Oct 2009; -asterisk-1.6.1.6.ebuild, + +asterisk-1.6.1.6-r2.ebuild, + +files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch: + Cope with automated British Telecom line tests as they currently cause the + DAHDI channel to wedge with "exiting simple switch" messages. An upstream + bug exists since July but has not been actioned yet. Delete old ebuild. *asterisk-1.6.1.6-r1 (22 Oct 2009) diff --git a/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild b/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild new file mode 100644 index 000000000000..f1d2a9bdedd4 --- /dev/null +++ b/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild @@ -0,0 +1,424 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild,v 1.1 2009/10/26 13:34:21 chainsaw Exp $ + +EAPI=1 +inherit eutils autotools + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="Asterisk: A Modular Open Source PBX System" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="http://downloads.digium.com/pub/asterisk/releases/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="alsa +caps curl dahdi debug freetds iconv jabber ldap keepsrc misdn newt nosamples odbc oss postgres radius snmp span speex ssl sqlite static vorbis" + +RDEPEND="sys-libs/ncurses + dev-libs/popt + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + caps? ( sys-libs/libcap ) + curl? ( net-misc/curl ) + dahdi? ( >=net-libs/libpri-1.4.7 + net-misc/dahdi-tools ) + freetds? ( dev-db/freetds ) + iconv? ( virtual/libiconv ) + jabber? ( dev-libs/iksemel ) + ldap? ( net-nds/openldap ) + misdn? ( net-dialup/misdnuser ) + newt? ( dev-libs/newt ) + odbc? ( dev-db/unixODBC ) + postgres? ( virtual/postgresql-base ) + radius? ( net-dialup/radiusclient-ng ) + snmp? ( net-analyzer/net-snmp ) + span? ( media-libs/spandsp ) + speex? ( media-libs/speex ) + sqlite? ( dev-db/sqlite ) + ssl? ( dev-libs/openssl ) + vorbis? ( media-libs/libvorbis )" + +DEPEND="${RDEPEND} + !/dev/null || die "make clean failed" + eend $? + + einfo "Source files have been saved to "${ROOT}"usr/src/${PF}" + fi + + # install the upgrade documentation + # + dodoc README UPGRADE* BUGS CREDITS + + # install snmp mib files + # + if use snmp + then + insinto /usr/share/snmp/mibs/ + doins doc/digium-mib.txt doc/asterisk-mib.txt + fi +} + +pkg_preinst() { + enewgroup asterisk + enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" +} + +pkg_postinst() { + ebegin "Fixing up permissions" + chown -R asterisk:asterisk "${ROOT}"var/log/asterisk + chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk + + chown asterisk:asterisk "${ROOT}"etc/asterisk/ + chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi + chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael + chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ + chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi + chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael + eend $? + + # + # Announcements, warnings, reminders... + # + einfo "Asterisk has been installed" + echo + elog "If you want to know more about asterisk, visit these sites:" + elog "http://www.asteriskdocs.org/" + elog "http://www.voip-info.org/wiki-Asterisk" + echo + elog "http://www.automated.it/guidetoasterisk.htm" + echo + elog "Gentoo VoIP IRC Channel:" + elog "#gentoo-voip @ irc.freenode.net" + echo + echo + + # + # Warning about 1.x -> 1.6 changes... + # + if is_ast10update || is_ast12update || is_ast14update; then + ewarn "" + ewarn "- Please read "${ROOT}"usr/share/doc/${PF}/UPGRADE.txt.bz2 before continuing" + ewarn "" + fi +} + +pkg_config() { + einfo "Do you want to reset file permissions and ownerships (y/N)?" + + read tmp + tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" + + if [[ "$tmp" = "y" ]] ||\ + [[ "$tmp" = "yes" ]] + then + einfo "Resetting permissions to defaults..." + + for x in spool run lib log; do + chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk + chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk + done + + chown -R root:asterisk "${ROOT}"etc/asterisk + chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk + + einfo "done" + else + einfo "skipping" + fi +} diff --git a/net-misc/asterisk/asterisk-1.6.1.6.ebuild b/net-misc/asterisk/asterisk-1.6.1.6.ebuild deleted file mode 100644 index 2f1712eb3dc9..000000000000 --- a/net-misc/asterisk/asterisk-1.6.1.6.ebuild +++ /dev/null @@ -1,450 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.1.6.ebuild,v 1.2 2009/09/23 19:33:31 patrick Exp $ - -EAPI=1 -inherit eutils autotools - -MY_P="${PN}-${PV/_/-}" - -DESCRIPTION="Asterisk: A Modular Open Source PBX System" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://downloads.digium.com/pub/asterisk/releases/${MY_P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="alsa +caps curl dahdi debug freetds h323 iconv imap jabber ldap keepsrc misdn newt nosamples odbc oss postgres radius snmp span speex ssl sqlite static vorbis" - -RDEPEND="sys-libs/ncurses - dev-libs/popt - sys-libs/zlib - alsa? ( media-libs/alsa-lib ) - caps? ( sys-libs/libcap ) - curl? ( net-misc/curl ) - dahdi? ( >=net-libs/libpri-1.4.7 - net-misc/dahdi-tools ) - freetds? ( dev-db/freetds ) - h323? ( dev-libs/pwlib - net-libs/openh323 ) - iconv? ( virtual/libiconv ) - imap? ( virtual/imap-c-client ) - jabber? ( dev-libs/iksemel ) - ldap? ( net-nds/openldap ) - misdn? ( net-dialup/misdnuser ) - newt? ( dev-libs/newt ) - odbc? ( dev-db/unixODBC ) - postgres? ( virtual/postgresql-base ) - radius? ( net-dialup/radiusclient-ng ) - snmp? ( net-analyzer/net-snmp ) - span? ( media-libs/spandsp ) - speex? ( media-libs/speex ) - sqlite? ( dev-db/sqlite ) - ssl? ( dev-libs/openssl ) - vorbis? ( media-libs/libvorbis )" - -DEPEND="${RDEPEND} - !/dev/null || die "make clean failed" - eend $? - - einfo "Source files have been saved to "${ROOT}"usr/src/${PF}" - fi - - # install the upgrade documentation - # - dodoc README UPGRADE* BUGS CREDITS - - # install snmp mib files - # - if use snmp - then - insinto /usr/share/snmp/mibs/ - doins doc/digium-mib.txt doc/asterisk-mib.txt - fi -} - -pkg_preinst() { - enewgroup asterisk - enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" -} - -pkg_postinst() { - ebegin "Fixing up permissions" - chown -R asterisk:asterisk "${ROOT}"var/log/asterisk - chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk - - for x in lib run spool; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown asterisk:asterisk "${ROOT}"etc/asterisk/ - chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi - chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi - chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael - eend $? - - # - # Announcements, warnings, reminders... - # - einfo "Asterisk has been installed" - echo - elog "If you want to know more about asterisk, visit these sites:" - elog "http://www.asteriskdocs.org/" - elog "http://www.voip-info.org/wiki-Asterisk" - echo - elog "http://www.automated.it/guidetoasterisk.htm" - echo - elog "Gentoo VoIP IRC Channel:" - elog "#gentoo-voip @ irc.freenode.net" - echo - echo - - # - # Warning about 1.x -> 1.6 changes... - # - if is_ast10update || is_ast12update || is_ast14update; then - ewarn "" - ewarn "- Please read "${ROOT}"usr/share/doc/${PF}/UPGRADE.txt.bz2 before continuing" - ewarn "" - fi -} - -pkg_config() { - einfo "Do you want to reset file permissions and ownerships (y/N)?" - - read tmp - tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" - - if [[ "$tmp" = "y" ]] ||\ - [[ "$tmp" = "yes" ]] - then - einfo "Resetting permissions to defaults..." - - for x in spool run lib log; do - chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk - done - - chown -R root:asterisk "${ROOT}"etc/asterisk - chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk - - einfo "done" - else - einfo "skipping" - fi -} diff --git a/net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch b/net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch new file mode 100644 index 000000000000..dc62aff6d657 --- /dev/null +++ b/net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch @@ -0,0 +1,35 @@ +diff -uNr asterisk-1.6.1.6.ORIG/channels/chan_dahdi.c asterisk-1.6.1.6/channels/chan_dahdi.c +--- asterisk-1.6.1.6.ORIG/channels/chan_dahdi.c 2009-10-26 12:57:27.000000000 +0000 ++++ asterisk-1.6.1.6/channels/chan_dahdi.c 2009-10-26 12:59:26.000000000 +0000 +@@ -7287,6 +7287,7 @@ + } + if (i & DAHDI_IOMUX_SIGEVENT) { + res = dahdi_get_event(p->subs[idx].dfd); ++ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; + ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); + + if (p->cid_signalling == CID_SIG_V23_JP) { +@@ -7389,6 +7390,7 @@ + if (i & DAHDI_IOMUX_SIGEVENT) { + res = dahdi_get_event(p->subs[idx].dfd); + ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); ++ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; + res = 0; + /* Let us detect distinctive ring */ + +@@ -7540,6 +7542,7 @@ + if (i & DAHDI_IOMUX_SIGEVENT) { + res = dahdi_get_event(p->subs[idx].dfd); + ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); ++ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; + /* If we get a PR event, they hung up while processing calerid */ + if ( res == DAHDI_EVENT_POLARITY && p->hanguponpolarityswitch && p->polarity == POLARITY_REV) { + ast_log(LOG_DEBUG, "Hanging up due to polarity reversal on channel %d while detecting callerid\n", p->channel); +@@ -7609,6 +7612,7 @@ + if (i & DAHDI_IOMUX_SIGEVENT) { + res = dahdi_get_event(p->subs[idx].dfd); + ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res)); ++ if (res == DAHDI_EVENT_NOALARM) p->inalarm = 0; + res = 0; + /* Let us detect callerid when the telco uses distinctive ring */ + -- cgit v1.2.3-65-gdbad