diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2009-04-03 15:23:44 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2009-04-03 15:23:44 +0000 |
commit | d5c100745b30d6b13f9188d0ce01b5b717f5925b (patch) | |
tree | 00c70b412b222bd6e3a8dae90c110ff9a4f73df2 /net-misc/asterisk | |
parent | whitespace (diff) | |
download | historical-d5c100745b30d6b13f9188d0ce01b5b717f5925b.tar.gz historical-d5c100745b30d6b13f9188d0ce01b5b717f5925b.tar.bz2 historical-d5c100745b30d6b13f9188d0ce01b5b717f5925b.zip |
Remove vulnerable 1.6 branch ebuild and now obsolete patches.
Package-Manager: portage-2.1.6.11/cvs/Linux x86_64
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/asterisk/Manifest | 14 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.6.0.6.ebuild | 489 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-dahdiras.patch | 19 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch | 14 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-socket-details.patch | 69 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch | 188 |
7 files changed, 13 insertions, 790 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index 3b7b7c35cdcf..3ee5a3eaaec9 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-misc/asterisk # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.195 2009/04/03 15:16:44 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.196 2009/04/03 15:23:44 chainsaw Exp $ + + 03 Apr 2009; <chainsaw@gentoo.org> + -files/1.6.0/asterisk-1.6.0.6-dahdiras.patch, + -files/1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch, + -files/1.6.0/asterisk-1.6.0.6-socket-details.patch, + -files/1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch, + -asterisk-1.6.0.6.ebuild: + Remove vulnerable 1.6 branch ebuild and now obsolete patches. *asterisk-1.6.0.8 (03 Apr 2009) diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index f903732e1767..5f128e5343cb 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -16,31 +16,25 @@ AUX 1.6.0/asterisk-1.6.0-gsm-pic.patch 1990 RMD160 6e17a76a70938f8d371b7e6efe44d AUX 1.6.0/asterisk-1.6.0-uclibc.patch 373 RMD160 08f18dd2af3736497995ebcbea84939ae4c4cc98 SHA1 b10884d4b9123800f62b4aabac5a93b1a110e3da SHA256 b6fe54def0ab3f90058c2ed7bd288dd21c96aaf88b9028f12d223fb31d7e41c5 AUX 1.6.0/asterisk-1.6.0-var_rundir.patch 441 RMD160 55869a82a01be38e80da9a31faac6d2d03f0fc58 SHA1 5bf2a8ed9778623f611330fcc4ea75c50f642680 SHA256 f75156feb6a6e421fc83e2d518b4b9204e4ae11e802440576a54de226ffd8064 AUX 1.6.0/asterisk-1.6.0.6-autoconf-263.patch 2705 RMD160 24ccb54c07b427ffe565b148de4b15b6f3dfcb48 SHA1 f1a948cb69df672ca86784359000627d7e66075e SHA256 3a597e842d566442f00ad70ee3b8871ac623e3b15760ad89cb5810202d856c83 -AUX 1.6.0/asterisk-1.6.0.6-dahdiras.patch 547 RMD160 16c7d69dbdf3d77f586d95644f720eb2ad151999 SHA1 8bcb90785d6e3d06ee45e462e5743bbb5d23f93b SHA256 5df7e262d9b000a1095819b4dce3c7ebda5b8ace70d716b0e383aa8b204ae9f6 AUX 1.6.0/asterisk-1.6.0.6-imap-kerberos.patch 747 RMD160 eacde011d0037b2214819954e620d4904f851bdc SHA1 694058c71a566d0cf8c2ecfc2c28b6991c4697f0 SHA256 d61f31a8a0460a4c102c7c4dd14fcee5cae87dc7cdd68b6e50f42d05f927f580 AUX 1.6.0/asterisk-1.6.0.6-parallelmake.patch 4952 RMD160 d57a16f8c9c783acf83c1ce2e436e73d4dd23166 SHA1 60f09e30f837ddaa9bafde69863fb707b33474d8 SHA256 1d80039098c5f9746ac35ca31f3bf7697cc7e5505428e1457fbe922fd6a1a75f -AUX 1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch 391 RMD160 191be72373a53ac32932d09bb78486d8634d0a9c SHA1 b483a88251f464464e9f54382cfda759b6c6c760 SHA256 cb1d7a923ce6d719e44cc75c9ba91f6975f872da731fc701bd000c628d604f65 -AUX 1.6.0/asterisk-1.6.0.6-socket-details.patch 2636 RMD160 73414fda459b0dba8e01bc22e03887db8edc8d70 SHA1 ab9c6bed2782da9d8b3a29f56483749b990ecdb4 SHA256 30f70998221b452a1a2d05b17641d9d3632de451b37019fa68783509015232cd -AUX 1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch 6026 RMD160 77106003f17d737045f64656eb07b7d1afd47b75 SHA1 f429e5a8aee5fc0eeb84bb560392fd326ddbf0f4 SHA256 461379cecbedab34ecfdefabb973d48f23b3d93b51b47ed69ec506ed32ee0f80 AUX 1.6.0/asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch 726 RMD160 c1886f3462e175ef66ebcfaba626fc110a228301 SHA1 3f9443575c459bd2808472e7cb053c34cdc32f26 SHA256 ddced0af87ea654e5576ea1b95994ccd4ea8d535f7e55db1a1f0c5c495029923 AUX 1.6.0/asterisk.confd 2204 RMD160 31bceebfa535e97cb2634e313678cc42186d4750 SHA1 748c623cea238cd9b322672d5ebcfe214a4f0463 SHA256 daec84c58e0ef6cbd71a6fc62cb83129b1bcffdfdd619ebbd62a642f0cd1eee7 AUX 1.6.0/asterisk.rc6 5891 RMD160 55a2cd4c5d2e069c4cabb5e8864870467608197c SHA1 d8d2e39ed2aa658a008103dc9655255a78e5796c SHA256 d8dbe6d0d0cc8a17c641a02e248c77107d298684fe3bdbfd87324bbe26e35979 DIST asterisk-1.2.27-patches-1.0.tar.bz2 6653 RMD160 18f1d7fc4497466050ed4f517ff5732eb448ff2e SHA1 2aecd3e91cde38dbb0fd591e8a49db221f44b94e SHA256 a4da0570fca2df3c508f072be62722879956fe8c454027fbb8dafb7a6095384c DIST asterisk-1.2.31.1.tar.gz 10632376 RMD160 b38d7204bd24fcc70e02659f16c6506f9ec5a3df SHA1 aea8f0a8a3ffb2c150b4c719a3671c4049cb03ab SHA256 7962e10aeed737db040a5dbfaf6cab6db2cd7f0cb0a4e985fdb7321431f2cee4 DIST asterisk-1.2.32.tar.gz 10636564 RMD160 2d83e006e5f4e8f03862d188525df665396d1074 SHA1 6e35e57939f0e895dd320a9637dd8c9050889b5d SHA256 0019c23bb888a7c8d5a034174f1700a1608883770ec48d6cb69dfae9aee12652 -DIST asterisk-1.6.0.6.tar.gz 13415949 RMD160 1e1ad871b442f6f053c2fae6e2981de8f46e9ecb SHA1 8869dc4301de67bdabe529d84a1f98219a0500d2 SHA256 d2c940515d3c1ff2dcfcaa002767d99403796573abdd4baeac5d405a0ccbfd5b DIST asterisk-1.6.0.8.tar.gz 13214910 RMD160 09b528180385921ca95458dfa44baecc42b09b63 SHA1 980a3897aed5924d7459641df526dcdb4163e732 SHA256 68ed043a3981bab6a7afe02a709ec657eb72fb6ce3b960d297ef8a5c7e2c8dc9 DIST bristuff-0.3.0-PRE-1y-w.tar.gz 300178 RMD160 9edbfa43547f29da345deea9b7787d46b2d6dc20 SHA1 1b875154712adae915289531e6ee54a4159243d7 SHA256 ad13304dd3fc30e06e2d6b4643d58434aaa37eda926d8c1bf20b86e10c96cf59 EBUILD asterisk-1.2.31.1.ebuild 11809 RMD160 e07642f266dd340afd216be517ab53c05d21d18e SHA1 079aecf9aa5ed0488810684f6ecb6fac14f25a9d SHA256 b0fdfc45867fe79763cd98913d246eb18f85f5ba772d2a9240fe06f415913acc EBUILD asterisk-1.2.32.ebuild 10962 RMD160 cdb756c7a14b4c6fcc0d0aeb52a0b7f6b466816e SHA1 81a9034b0fcd52ab50e9925e71b341630d0d5158 SHA256 813bd08fc0a4da15ec5b9176344e7058989739404c302bb615f3f83ee22612ef -EBUILD asterisk-1.6.0.6.ebuild 13097 RMD160 82e354456d9aea40e4b8eec6e00bba2a35d3020b SHA1 329ad7461a0853e363bdf4be270a4fe18cabb942 SHA256 5ddbb41695f622b4ceb346575513003ea5fe28f0ab5548685b037e372c3ac2ad EBUILD asterisk-1.6.0.8.ebuild 12064 RMD160 6c03e210d56525988e5ecd758377a2ad177904eb SHA1 a84ad70dc7c6cc64c439f2dc2522387e000c3ca4 SHA256 6f9370100087188b4d4ccf0a9c487bdb851d424d8cc2703f761474e625fb863d -MISC ChangeLog 40586 RMD160 09b88c3cd502997ac3a2bbe60771855e4f65c75a SHA1 fc63f53ba3b5ef1fe7419a6abebb2c43c16abd16 SHA256 81844db9c37fe9e91b9961c2f1c9c5298fe87f92f22007ede8a6b8bce2d41030 +MISC ChangeLog 40938 RMD160 4a8ac048b46d271deb045b379cb517e89d8f49a5 SHA1 ce0d4f0b8054bb32a65935b80f5395579f0deee2 SHA256 6fb177198cc9a25100d1e1fc8bfc091f38de525303c294b83a9b7bb1261937c9 MISC metadata.xml 1248 RMD160 3dc4417124d1cbc49566798212a75464aa0eaa78 SHA1 bef2f778e9f63e295eeec8127d5e0bd5353efd61 SHA256 25bab15816cd5b3e69899b26a059c8f5abb098692dc16fd78280bf225cc245a3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAknWKGYACgkQp5vW4rUFj5oX6QCfW0VWGkGnKj+DGEGCTIK2eyt4 -MZ0AoKFEaJWsM74qaZSRZksmcW45p+3C -=5FZ8 +iEYEARECAAYFAknWKgUACgkQp5vW4rUFj5qSSwCgjqYuoe2oGKt2BzpA7g9MDRWN +ARgAn09S2dvhco7JH14xg1StScuNbbyT +=Uhvp -----END PGP SIGNATURE----- diff --git a/net-misc/asterisk/asterisk-1.6.0.6.ebuild b/net-misc/asterisk/asterisk-1.6.0.6.ebuild deleted file mode 100644 index db4d6c9442dc..000000000000 --- a/net-misc/asterisk/asterisk-1.6.0.6.ebuild +++ /dev/null @@ -1,489 +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.0.6.ebuild,v 1.2 2009/03/16 13:45:00 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 h323 iconv imap jabber ldap keepsrc misdn newt nosamples odbc oss postgres radius snmp span speex ssl sqlite static vorbis" - -RDEPEND="virtual/libc - 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} - !<net-misc/asterisk-addons-1.6" - -S="${WORKDIR}/${MY_P}" - -# -# shortcuts -# - -# update from asterisk-1.0.x -is_ast10update() { - return $(has_version "=net-misc/asterisk-1.0*") -} - -# update from asterisk-1.2.x -is_ast12update() { - return $(has_version "=net-misc/asterisk-1.2*") -} - -# update from asterisk 1.4.x -is_ast14update() { - return $(has_version "=net-misc/asterisk-1.4*") -} - -# update in the asterisk-1.6.x line -is_astupdate() { - if ! is_ast10update && ! is_ast12update && !is_ast14update; then - return $(has_version "<net-misc/asterisk-${PV}") - fi - return 0 -} - -get_available_modules() { - local modules mod x - - # build list of available modules... - for x in app cdr codec format func pbx res; do - - for mod in $(find "${S}" -type f -name "${x}_*.c*" -print) - do - modules="${modules} $(basename ${mod/%.c*})" - done - done - - echo "${modules}" -} - -pkg_setup() { - local checkfailed=0 waitaftermsg=0 - - if is_ast10update || is_ast12update || is_ast14update ; then - ewarn " Asterisk UPGRADE Warning" - ewarn "" - ewarn "- Please read "${ROOT}"usr/share/doc/${PF}/UPGRADE.txt.bz2 after the installation!" - ewarn "" - ewarn " Asterisk UPGRADE Warning" - echo - waitaftermsg=1 - fi - - if [[ $waitaftermsg -eq 1 ]]; then - einfo "Press Ctrl+C to abort" - echo - ebeep 10 - fi - - # - # Regular checks - # - 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 -} - -src_unpack() { - unpack ${A} - 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.0/${PN}-1.6.0-var_rundir.patch || die "patch failed" - - # - # fix gsm codec cflags (e.g. i586 core epias) and disable - # assembler optimizations - # - epatch "${FILESDIR}"/1.6.0/${PN}-1.6.0-gsm-pic.patch || die "patch failed" - - # - # add missing LIBS for uclibc - # - epatch "${FILESDIR}"/1.6.0/${PN}-1.6.0-uclibc.patch || die "patch failed" - - # - # do not ignore TCP transport setting for SIP, remove for 1.6.0.7 as it is upstream - # http://bugs.digium.com/view.php?id=14480 - # - epatch "${FILESDIR}"/1.6.0/${P}-socket-details.patch || die "patch failed" - - # - # allow dahdiras application to actually build, remove for 1.6.0.7 as it is upstream - # http://bugs.digium.com/view.php?id=14516 - # - epatch "${FILESDIR}"/1.6.0/${P}-dahdiras.patch || die "patch failed" - - # - # allow fax application to build against new spandsp, remove for 1.6.0.7 as it is upstream - # http://bugs.digium.com/view.php?id=14620 - # - epatch "${FILESDIR}"/1.6.0/${P}-spandsp-api-change.patch || die "patch failed" - - # - # do not ignore TCP port setting for SIP, remove for 1.6.0.7 as it is upstream - # http://bugs.digium.com/view.php?id=14626 - # - epatch "${FILESDIR}"/1.6.0/${P}-sip-use-specified-port.patch || die "patch failed" - - # - # try to tame the custom build system a little so make likes it better - # patch credit: Diego E. 'Flameeyes' Pettenò <flameeyes@entoo.org> - # - epatch "${FILESDIR}"/1.6.0/${P}-parallelmake.patch || die "patch failed" - - # - # do not try to pass libraries in ldflags but use libs properly - # keeps NET-SNMP configure test from failing horribly on --as-needed - # patch credit: Diego E. 'Flameeyes' Pettenò <flameeyes@entoo.org> - # - epatch "${FILESDIR}"/1.6.0/${P}-toolcheck-libs-not-ldflags.patch || die "patch failed" - - # - # the build system didn't handle >= autoconf-2.62 before - # from upstream SVN commit rev 180946 by qwell - # - epatch "${FILESDIR}"/1.6.0/${P}-autoconf-263.patch || die "patch failed" - - # - # link UW-IMAP with Kerberos5 if necessary - # - epatch "${FILESDIR}"/1.6.0/${P}-imap-kerberos.patch || die "patch failed" - - AT_M4DIR=autoconf eautoreconf - - # parse modules list - if [[ -n "${ASTERISK_MODULES}" ]]; then - local x modules="$(get_available_modules)" - - einfo "Custom list of modules specified, checking..." - - use debug && { - einfo "Available modules: ${modules}" - einfo " Selected modules: ${ASTERISK_MODULES}" - } - - for x in ${ASTERISK_MODULES}; do - if [[ "${x}" = "-*" ]]; then - MODULES_LIST="" - else - if has ${x} ${modules} - then - MODULES_LIST="${MODULES_LIST} ${x}" - else - eerror "Unknown module: ${x}" - fi - fi - done - - export MODULES_LIST - fi -} - -src_compile() { - # - # start with configure - # - econf \ - --libdir="/usr/$(get_libdir)" \ - --localstatedir="/var" \ - --with-gsm=internal \ - --with-popt \ - --with-z \ - $(use_with alsa asound) \ - $(use_with caps cap) \ - $(use_with curl) \ - $(use_with dahdi pri) \ - $(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) \ - $(use_with misdn) \ - $(use_with newt) \ - $(use_with odbc) \ - $(use_with oss) \ - $(use_with postgres) \ - $(use_with radius) \ - $(use_with snmp netsnmp) \ - $(use_with span spandsp) \ - $(use_with speex) \ - $(use_with speex speexdsp) \ - $(use_with sqlite sqlite3) \ - $(use_with ssl crypto) \ - $(use_with ssl) \ - $(use_with vorbis ogg) \ - $(use_with vorbis) || die "econf failed" - - # - # custom module filter - # run menuselect to evaluate the list of modules - # and rewrite the list afterwards - # - if [[ -n "${MODULES_LIST}" ]] - then - local mod category tmp_list failed_list - - ### - # run menuselect - - emake menuselect.makeopts || die "emake menuselect.makeopts failed" - - ### - # get list of modules with failed dependencies - - failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)" - - ### - # traverse our list of modules - - for category in app cdr codec format func pbx res; do - tmp_list="" - - # search list of modules for matching ones first... - for mod in ${MODULES_LIST}; do - # module is from current category? - if [[ "${mod/%_*}" = "${category}" ]] - then - # check menuselect thinks the dependencies are met - if has ${mod} ${failed_list} - then - eerror "${mod}: dependencies required to build this module are not met, NOT BUILDING!" - else - tmp_list="${tmp_list} ${mod}" - fi - fi - done - - use debug && echo "${category} tmp: ${tmp_list}" - - # replace the module list for $category with our custom one - if [[ -n "${tmp_list}" ]] - then - category="$(echo ${category} | tr '[:lower:]' '[:upper:]')" - sed -i -e "s:^\(MENUSELECT_${category}S?\):\1=${tmp_list}:" \ - menuselect.makeopts || die "failed to set list of ${category} applications" - fi - 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" -} - -src_install() { - # setup directory structure - # - mkdir -p "${D}"usr/lib/pkgconfig - - emake DESTDIR="${D}" install || die "emake install failed" - emake DESTDIR="${D}" samples || die "emake samples failed" - - # remove installed sample files if nosamples flag is set - if use nosamples; then - einfo "Skipping installation of sample files..." - rm -f "${D}"var/lib/asterisk/mohmp3/* - rm -f "${D}"var/lib/asterisk/sounds/demo-* - rm -f "${D}"var/lib/asterisk/agi-bin/* - else - einfo "Sample files have been installed" - fi - rm -rf "${D}"var/spool/asterisk/voicemail/default - - # move sample configuration files to doc directory - if is_ast10update || is_ast12update || is_ast14update; then - einfo "Updating from old (pre-1.6) asterisk version, new configuration files have been installed" - einfo "into "${ROOT}"etc/asterisk, use etc-update or dispatch-conf to update them" - fi - - einfo "Configuration samples have been moved to: "${ROOT}"/usr/share/doc/${PF}/conf" - insinto /usr/share/doc/${PF}/conf - doins "${D}"etc/asterisk/*.conf* - - # keep directories - keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} - keepdir /var/log/asterisk/{cdr-csv,cdr-custom} - - newinitd "${FILESDIR}"/1.6.0/asterisk.rc6 asterisk - newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk - - # some people like to keep the sources around for custom patching - # copy the whole source tree to /usr/src/asterisk-${PVF} and run make clean there - if use keepsrc - then - einfo "keepsrc useflag enabled, copying source..." - dodir /usr/src - - cp -dPR "${S}" "${D}"/usr/src/${PF} || die "copying source tree failed" - - ebegin "running make clean..." - emake -C "${D}"/usr/src/${PF} clean >/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.0/asterisk-1.6.0.6-dahdiras.patch b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-dahdiras.patch deleted file mode 100644 index 74f35394909c..000000000000 --- a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-dahdiras.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -uNr asterisk-1.6.0.6.ORIG/apps/app_dahdiras.c asterisk-1.6.0.6/apps/app_dahdiras.c ---- asterisk-1.6.0.6.ORIG/apps/app_dahdiras.c 2009-03-03 15:20:24.000000000 +0000 -+++ asterisk-1.6.0.6/apps/app_dahdiras.c 2009-02-24 18:05:03.000000000 +0000 -@@ -42,13 +42,13 @@ - #include <signal.h> - #endif /* __linux__ */ - -+#include <dahdi/user.h> -+ - #include <fcntl.h> - #ifdef HAVE_CAP - #include <sys/capability.h> - #endif /* HAVE_CAP */ - --#include <dahdi/user.h> -- - #include "asterisk/lock.h" - #include "asterisk/file.h" - #include "asterisk/channel.h" diff --git a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch deleted file mode 100644 index bd55fe00656d..000000000000 --- a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-sip-use-specified-port.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- branches/1.6.0/channels/chan_sip.c 2009/03/09 20:14:05 180718 -+++ branches/1.6.0/channels/chan_sip.c 2009/03/10 13:32:58 180799 -@@ -4175,6 +4175,11 @@ - } - res = create_addr_from_peer(dialog, peer); - unref_peer(peer); -+ if (!ast_strlen_zero(port)) { -+ if ((portno = atoi(port))) { -+ dialog->sa.sin_port = dialog->recv.sin_port = htons(portno); -+ } -+ } - return res; - } - diff --git a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-socket-details.patch b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-socket-details.patch deleted file mode 100644 index edbd6bf81f05..000000000000 --- a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-socket-details.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- branches/1.6.0/channels/chan_sip.c 2009/03/02 23:15:51 179473 -+++ branches/1.6.0/channels/chan_sip.c 2009/03/09 20:14:05 180718 -@@ -2020,7 +2020,7 @@ - static const struct sockaddr_in *sip_real_dst(const struct sip_pvt *p); - static void build_via(struct sip_pvt *p); - static int create_addr_from_peer(struct sip_pvt *r, struct sip_peer *peer); --static int create_addr(struct sip_pvt *dialog, const char *opeer); -+static int create_addr(struct sip_pvt *dialog, const char *opeer, int newdialog); - static char *generate_random_string(char *buf, size_t size); - static void build_callid_pvt(struct sip_pvt *pvt); - static void build_callid_registry(struct sip_registry *reg, struct in_addr ourip, const char *fromdomain); -@@ -4149,7 +4149,7 @@ - /*! \brief create address structure from peer name - * Or, if peer not found, find it in the global DNS - * returns TRUE (-1) on failure, FALSE on success */ --static int create_addr(struct sip_pvt *dialog, const char *opeer) -+static int create_addr(struct sip_pvt *dialog, const char *opeer, int newdialog) - { - struct hostent *hp; - struct ast_hostent ahp; -@@ -4169,7 +4169,11 @@ - peer = find_peer(peername, NULL, 1, 0); - - if (peer) { -- int res = create_addr_from_peer(dialog, peer); -+ int res; -+ if (newdialog) { -+ dialog->socket.type = 0; -+ } -+ res = create_addr_from_peer(dialog, peer); - unref_peer(peer); - return res; - } -@@ -9549,7 +9553,7 @@ - p->outboundproxy = obproxy_get(p, NULL); - - /* Find address to hostname */ -- if (create_addr(p, r->hostname)) { -+ if (create_addr(p, r->hostname, 0)) { - /* we have what we hope is a temporary network error, - * probably DNS. We need to reschedule a registration try */ - sip_destroy(p); -@@ -14236,7 +14240,7 @@ - return CLI_FAILURE; - } - -- if (create_addr(p, a->argv[i])) { -+ if (create_addr(p, a->argv[i], 0)) { - /* Maybe they're not registered, etc. */ - sip_destroy(p); - ast_cli(a->fd, "Could not create address for '%s'\n", a->argv[i]); -@@ -16941,7 +16945,7 @@ - if ((peerorhost = strchr(uri, ':'))) { - *peerorhost++ = '\0'; - } -- create_addr(p, peerorhost); -+ create_addr(p, peerorhost, 0); - ast_string_field_set(p, theirtag, NULL); - for (pkt = p->packets; pkt; pkt = pkt->next) { - if (pkt->seqno == p->icseq && pkt->method == SIP_INVITE) { -@@ -20072,7 +20076,7 @@ - ext = extension (user part of URI) - dnid = destination of the call (applies to the To: header) - */ -- if (create_addr(p, host)) { -+ if (create_addr(p, host, 1)) { - *cause = AST_CAUSE_UNREGISTERED; - ast_debug(3, "Cant create SIP call - target device not registered\n"); - sip_destroy(p); diff --git a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch b/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch deleted file mode 100644 index 9fcdf811d4b4..000000000000 --- a/net-misc/asterisk/files/1.6.0/asterisk-1.6.0.6-spandsp-api-change.patch +++ /dev/null @@ -1,188 +0,0 @@ -diff -uNr asterisk-1.6.0.6.ORIG/apps/app_fax.c asterisk-1.6.0.6/apps/app_fax.c ---- asterisk-1.6.0.6.ORIG/apps/app_fax.c 2009-03-20 13:47:53.000000000 +0000 -+++ asterisk-1.6.0.6/apps/app_fax.c 2009-03-20 13:48:56.000000000 +0000 -@@ -32,6 +32,7 @@ - #ifdef HAVE_SPANDSP_EXPOSE_H - #include <spandsp/expose.h> - #endif -+#include <spandsp/version.h> - - #include "asterisk/lock.h" - #include "asterisk/file.h" -@@ -160,6 +161,7 @@ - char buf[20]; - fax_session *s = (fax_session *) user_data; - t30_stats_t stat; -+ int pages_transferred; - - ast_debug(1, "Fax phase E handler. result=%d\n", result); - -@@ -185,7 +187,12 @@ - pbx_builtin_setvar_helper(s->chan, "FAXSTATUS", "SUCCESS"); - pbx_builtin_setvar_helper(s->chan, "FAXERROR", NULL); - pbx_builtin_setvar_helper(s->chan, "REMOTESTATIONID", far_ident); -- snprintf(buf, sizeof(buf), "%d", stat.pages_transferred); -+#if SPANDSP_RELEASE_DATE >= 20090220 -+ pages_transferred = (s->direction) ? stat.pages_tx : stat.pages_rx; -+#else -+ pages_transferred = stat.pages_transferred; -+#endif -+ snprintf(buf, sizeof(buf), "%d", pages_transferred); - pbx_builtin_setvar_helper(s->chan, "FAXPAGES", buf); - snprintf(buf, sizeof(buf), "%d", stat.y_resolution); - pbx_builtin_setvar_helper(s->chan, "FAXRESOLUTION", buf); -@@ -194,7 +201,7 @@ - - ast_debug(1, "Fax transmitted successfully.\n"); - ast_debug(1, " Remote station ID: %s\n", far_ident); -- ast_debug(1, " Pages transferred: %d\n", stat.pages_transferred); -+ ast_debug(1, " Pages transferred: %d\n", pages_transferred); - ast_debug(1, " Image resolution: %d x %d\n", stat.x_resolution, stat.y_resolution); - ast_debug(1, " Transfer Rate: %d\n", stat.bit_rate); - -@@ -214,7 +221,7 @@ - S_OR(s->chan->cid.cid_num, ""), - far_ident, - local_ident, -- stat.pages_transferred, -+ pages_transferred, - stat.y_resolution, - stat.bit_rate, - s->file_name); -@@ -313,6 +320,7 @@ - int original_read_fmt = AST_FORMAT_SLINEAR; - int original_write_fmt = AST_FORMAT_SLINEAR; - fax_state_t fax; -+ t30_state_t *t30state; - struct ast_dsp *dsp = NULL; - int detect_tone = 0; - struct ast_frame *inf = NULL; -@@ -321,6 +329,14 @@ - struct timeval now, start, state_change; - enum ast_control_t38 t38control; - -+#if SPANDSP_RELEASE_DATE >= 20081012 -+ /* for spandsp shaphots 0.0.6 and higher */ -+ t30state = &fax.t30; -+#else -+ /* for spandsp release 0.0.5 */ -+ t30state = &fax.t30_state; -+#endif -+ - original_read_fmt = s->chan->readformat; - if (original_read_fmt != AST_FORMAT_SLINEAR) { - res = ast_set_read_format(s->chan, AST_FORMAT_SLINEAR); -@@ -344,16 +360,16 @@ - - /* Setup logging */ - set_logging(&fax.logging); -- set_logging(&fax.t30_state.logging); -+ set_logging(&t30state->logging); - - /* Configure terminal */ -- set_local_info(&fax.t30_state, s); -- set_file(&fax.t30_state, s); -- set_ecm(&fax.t30_state, TRUE); -+ set_local_info(t30state, s); -+ set_file(t30state, s); -+ set_ecm(t30state, TRUE); - - fax_set_transmit_on_idle(&fax, TRUE); - -- t30_set_phase_e_handler(&fax.t30_state, phase_e_handler, s); -+ t30_set_phase_e_handler(t30state, phase_e_handler, s); - - if (s->t38state == T38_STATE_UNAVAILABLE) { - ast_debug(1, "T38 is unavailable on %s\n", s->chan->name); -@@ -418,9 +434,9 @@ - } - - /* Watchdog */ -- if (last_state != fax.t30_state.state) { -+ if (last_state != t30state->state) { - state_change = ast_tvnow(); -- last_state = fax.t30_state.state; -+ last_state = t30state->state; - } - } else if (inf->frametype == AST_FRAME_CONTROL && inf->subclass == AST_CONTROL_T38 && - inf->datalen == sizeof(enum ast_control_t38)) { -@@ -459,10 +475,10 @@ - by t30_terminate, display diagnostics and set status variables although no transmittion - has taken place yet. */ - if (res > 0) { -- t30_set_phase_e_handler(&fax.t30_state, NULL, NULL); -+ t30_set_phase_e_handler(t30state, NULL, NULL); - } - -- t30_terminate(&fax.t30_state); -+ t30_terminate(t30state); - fax_release(&fax); - - done: -@@ -489,6 +505,19 @@ - struct timeval now, start, state_change, last_frame; - enum ast_control_t38 t38control; - -+ t30_state_t *t30state; -+ t38_core_state_t *t38state; -+ -+#if SPANDSP_RELEASE_DATE >= 20081012 -+ /* for spandsp shaphots 0.0.6 and higher */ -+ t30state = &t38.t30; -+ t38state = &t38.t38_fe.t38; -+#else -+ /* for spandsp releases 0.0.5 */ -+ t30state = &t38.t30_state; -+ t38state = &t38.t38; -+#endif -+ - /* Initialize terminal */ - memset(&t38, 0, sizeof(t38)); - if (t38_terminal_init(&t38, s->caller_mode, t38_tx_packet_handler, s->chan) == NULL) { -@@ -498,15 +527,15 @@ - - /* Setup logging */ - set_logging(&t38.logging); -- set_logging(&t38.t30_state.logging); -- set_logging(&t38.t38.logging); -+ set_logging(&t30state->logging); -+ set_logging(&t38state->logging); - - /* Configure terminal */ -- set_local_info(&t38.t30_state, s); -- set_file(&t38.t30_state, s); -- set_ecm(&t38.t30_state, TRUE); -+ set_local_info(t30state, s); -+ set_file(t30state, s); -+ set_ecm(t30state, TRUE); - -- t30_set_phase_e_handler(&t38.t30_state, phase_e_handler, s); -+ t30_set_phase_e_handler(t30state, phase_e_handler, s); - - now = start = state_change = ast_tvnow(); - -@@ -532,12 +561,12 @@ - ast_debug(10, "frame %d/%d, len=%d\n", inf->frametype, inf->subclass, inf->datalen); - - if (inf->frametype == AST_FRAME_MODEM && inf->subclass == AST_MODEM_T38) { -- t38_core_rx_ifp_packet(&t38.t38, inf->data, inf->datalen, inf->seqno); -+ t38_core_rx_ifp_packet(t38state, inf->data, inf->datalen, inf->seqno); - - /* Watchdog */ -- if (last_state != t38.t30_state.state) { -+ if (last_state != t30state->state) { - state_change = ast_tvnow(); -- last_state = t38.t30_state.state; -+ last_state = t30state->state; - } - } else if (inf->frametype == AST_FRAME_CONTROL && inf->subclass == AST_CONTROL_T38 && - inf->datalen == sizeof(enum ast_control_t38)) { -@@ -567,7 +596,7 @@ - if (inf) - ast_frfree(inf); - -- t30_terminate(&t38.t30_state); -+ t30_terminate(t30state); - t38_terminal_release(&t38); - - return res; |