diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2009-10-26 13:34:22 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2009-10-26 13:34:22 +0000 |
commit | ad51cd08a93a846337d4b5eacb8ba6aacda64bb8 (patch) | |
tree | f29c087ceed55d120d4df4b21fa33d1418213e9f /net-misc | |
parent | Keywording for ppc. (diff) | |
download | gentoo-2-ad51cd08a93a846337d4b5eacb8ba6aacda64bb8.tar.gz gentoo-2-ad51cd08a93a846337d4b5eacb8ba6aacda64bb8.tar.bz2 gentoo-2-ad51cd08a93a846337d4b5eacb8ba6aacda64bb8.zip |
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)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild (renamed from net-misc/asterisk/asterisk-1.6.1.6.ebuild) | 80 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.1/asterisk-1.6.1.6-bt-line-test.patch | 35 |
3 files changed, 72 insertions, 54 deletions
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; <chainsaw@gentoo.org> -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.ebuild b/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild index 2f1712eb3dc9..f1d2a9bdedd4 100644 --- a/net-misc/asterisk/asterisk-1.6.1.6.ebuild +++ b/net-misc/asterisk/asterisk-1.6.1.6-r2.ebuild @@ -1,6 +1,6 @@ # 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 $ +# $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 @@ -14,7 +14,7 @@ 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" +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 @@ -25,10 +25,7 @@ RDEPEND="sys-libs/ncurses 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 ) @@ -115,24 +112,6 @@ pkg_setup() { einfo "Running some pre-flight checks..." echo - # imap requires ssl if imap-c-client was built with ssl, - # conversely if ssl and imap are both on then imap-c-client needs ssl - if use imap; then - if use ssl && ! built_with_use virtual/imap-c-client ssl; then - eerror - eerror "IMAP with SSL requested, but your IMAP C-Client libraries" - eerror "are built without SSL!" - eerror - die "Please recompile the IMAP C-Client libraries with SSL support enabled" - elif ! use ssl && built_with_use virtual/imap-c-client ssl; then - eerror - eerror "IMAP without SSL requested, but your IMAP C-Client" - eerror "libraries are built with SSL!" - eerror - die "Please recompile the IMAP C-Client libraries without SSL support enabled" - fi - fi - if [[ -n "${ASTERISK_MODULES}" ]] ; then ewarn "You are overriding ASTERISK_MODULES. We will assume you know what you are doing. There is no support for this option, try without if you see breakage." fi @@ -143,15 +122,6 @@ src_unpack() { cd "${S}" # - # comment about h323 issues - # - if use h323 ; then - ewarn "h323 useflag: It is known that the h323 module doesn't compile - the \"normal\" way: For a workaround, asterisk will be built two times - without cleaning the build dir." - fi - - # # put pid file(s) into /var/run/asterisk # epatch "${FILESDIR}"/1.6.1/${PN}-1.6.1-var_rundir.patch || die "patch failed" @@ -168,14 +138,28 @@ src_unpack() { epatch "${FILESDIR}"/1.6.1/${PN}-1.6.1-uclibc.patch || die "patch failed" # - # link UW-IMAP with Kerberos5 if necessary + # compensate for non-standard LUA header paths in Gentoo # - epatch "${FILESDIR}"/1.6.1/asterisk-1.6.1-imap-kerberos.patch || die "patch failed" + epatch "${FILESDIR}"/1.6.1/${P}-lua-includes.patch || die "patch failed" # - # compensate for non-standard LUA header paths in Gentoo + # make sure FXO ports are usable immediately, without requiring an inbound call first + # https://issues.asterisk.org/view.php?id=14577 + # + epatch "${FILESDIR}"/1.6.1/${P}-fxsks-hookstate.patch || die "patch failed" + + # + # avoid segmentation fault when transferring a queue call + # https://issues.asterisk.org/view.php?id=15848 # - epatch "${FILESDIR}"/1.6.1/asterisk-1.6.1.6-lua-includes.patch || die "patch failed" + epatch "${FILESDIR}"/1.6.1/${P}-transfer-segfault.patch || die "patch failed" + + # + # do not ignore alarm-cleared event while V23 caller ID detection is in progress + # otherwise automated British Telecom line test causes permanent red alarm + # https://issues.asterisk.org/view.php?id=14163 + # + epatch "${FILESDIR}"/1.6.1/${P}-bt-line-test.patch || die "patch failed" AT_M4DIR=autoconf eautoreconf @@ -224,10 +208,7 @@ src_compile() { $(use_with dahdi tonezone) \ $(use_with dahdi) \ $(use_with freetds tds) \ - $(use_with h323 h323 "/usr/share/openh323") \ - $(use_with h323 pwlib "/usr/share/pwlib") \ $(use_with iconv) \ - $(use_with imap) \ $(use_with jabber iksemel) \ $(use_with misdn isdnnet) \ $(use_with misdn suppserv) \ @@ -299,14 +280,6 @@ src_compile() { done fi - # - # fasten your seatbelts (and start praying) - # - if use h323 ; then - # emake one time to get h323 to make.... yea not "clean" but works - emake - fi - emake || die "emake failed" } @@ -340,10 +313,16 @@ src_install() { doins "${D}"etc/asterisk/*.conf* # keep directories + diropts -m 0770 -o asterisk -g asterisk + keepdir /etc/asterisk + keepdir /var/lib/asterisk + keepdir /var/run/asterisk + keepdir /var/spool/asterisk keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} + diropts -m 0750 -o asterisk -g asterisk keepdir /var/log/asterisk/{cdr-csv,cdr-custom} - newinitd "${FILESDIR}"/1.6.1/asterisk.rc6 asterisk + newinitd "${FILESDIR}"/1.6.1/asterisk.initd asterisk newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk # some people like to keep the sources around for custom patching @@ -385,11 +364,6 @@ pkg_postinst() { 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 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 */ + |