diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2011-06-28 21:43:51 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2011-06-28 21:43:51 +0000 |
commit | 283604cbc2d5263c0d87913ee08961baf9d4c9c5 (patch) | |
tree | 5c41c1a51d3183ca2abc0093bfb9f4f8fc974b28 /net-misc | |
parent | Commiting xemacs packages ppc for bug 369897 (diff) | |
download | historical-283604cbc2d5263c0d87913ee08961baf9d4c9c5.tar.gz historical-283604cbc2d5263c0d87913ee08961baf9d4c9c5.tar.bz2 historical-283604cbc2d5263c0d87913ee08961baf9d4c9c5.zip |
Version bump to 1.6.2.18.2 for AST-2011-011 (information disclosure on valid/invalid SIP usernames even with alwaysauthreject).
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/asterisk/Manifest | 4 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.6.2.18.2.ebuild | 225 |
3 files changed, 235 insertions, 2 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index 1cbcda76da02..b8b5ae278cd4 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/asterisk # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.324 2011/06/28 21:38:10 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.325 2011/06/28 21:43:51 chainsaw Exp $ + +*asterisk-1.6.2.18.2 (28 Jun 2011) + + 28 Jun 2011; Tony Vroon <chainsaw@gentoo.org> +asterisk-1.6.2.18.2.ebuild: + Version bump to 1.6.2.18.2 for AST-2011-011 (information disclosure on + valid/invalid SIP usernames even with alwaysauthreject). *asterisk-1.8.4.4 (28 Jun 2011) diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index 42e18df30017..1179d87804b4 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -7,10 +7,12 @@ AUX 1.6.2/find_call_ids.sh 446 RMD160 e3e46295e7a4b7fdc2364c5ddfbe76290311a6fd S AUX 1.6.2/find_call_sip_trace.sh 530 RMD160 a45c1710a159dd5e7f9dfba51e92981ebb2ab035 SHA1 1e221f910625ce47ad9c84937d8160fdeedb713d SHA256 6818f5cde5f99b7c9be35d20e2c84c61cf0d14f63aa1e3952d0dc91ecb93e3a4 AUX 1.6.2/sip_calc_auth 493 RMD160 1813bd5aecbb60b38c20752050e6be44cca10f47 SHA1 139db5af00790f7b18e9a3e14948edc683e7e03f SHA256 18590fd24d6fa0b7392228695b764351ac9af25482e22247bf80471858a90c4c DIST asterisk-1.6.2.18.1.tar.gz 23754336 RMD160 d67f6d6b0e8f650a0835dda66c5ea2254b2baf07 SHA1 fd40c4ffdd15760d499a98b793b0d005609a2e45 SHA256 92a9f53fe6f1cb905f6151b8f6d389064a8fbaf19f63c72450a4c42d238312f0 +DIST asterisk-1.6.2.18.2.tar.gz 23754387 RMD160 cb9e25969ce9228def60768b53a08abccc590293 SHA1 daae5d79e947fac12c232906873ccef1c40d81be SHA256 59b9f7586df9361dd3f26f2277c091e6a4db38aa824a2cdce0770cbf89ae7b0e DIST asterisk-1.8.4.4.tar.gz 27326189 RMD160 c95cab1b24547f1abd229dcf323cc7ed0b0b36a0 SHA1 07d3ae5744e2dd10c5d9564b503690f3f0b84d96 SHA256 08d44e7cfd5c306d944cd48eb8a497a345ebbb4e781d7a6cc917376784789c1f DIST gentoo-asterisk-patchset-0.1.tar.bz2 5394 RMD160 bfd546101c77f6e6989c406bfb202e592f9d16fd SHA1 e49b7784f987e027d833fbe8e0773acb1ef78521 SHA256 07c1bc6a29bda4fa98e7d1eb436d2e6eafc13263b774a0ff41698e523fa59a97 DIST gentoo-asterisk-patchset-0.5.tar.bz2 6790 RMD160 ce738a36248b974d707ef748314e160acccd6ddb SHA1 4b6ae9e6e1529237fe4fe5d313440be741921d8e SHA256 258cbc3b81019b99bfe4b12888ed181ab142ca6d21ad61eae3d032c3617a7a79 EBUILD asterisk-1.6.2.18.1.ebuild 5827 RMD160 85a92e55997c14988be694f47996187cada13bbe SHA1 8c0d6a2040a8622fdcb988da01948ec281563d6a SHA256 f7e5d23fef1124d1101ce6bc041166d1e443f20f35086e09617c6448003833d4 +EBUILD asterisk-1.6.2.18.2.ebuild 5827 RMD160 9f46507d66573872f53eb8cb3d414a98858151d6 SHA1 c5ef5fbe454ebc7fb9e605c9c14c8dfdae0518c2 SHA256 e355a74ef4a180fa4f09251235a9558db99368d853c718e0ab670502a6828eca EBUILD asterisk-1.8.4.4.ebuild 14629 RMD160 4ed73419287f570ecd761c27c61bd3f51a65ece2 SHA1 05593230f3999d7b13e533dd6df76ec51bbfd8ad SHA256 bac46f48c31a41ad50e4e243e0817b4ecbab2dd1e7e6d4c7e7eef8455fdafbcc -MISC ChangeLog 81885 RMD160 920fe76807654f81be11ae9677fc7053a8f03501 SHA1 a8280052a8ef57c4c6eda717643d82cd849b40b0 SHA256 8c459971bc3761033b1a2e8d646c7019a7c2b72b1a5897fc13e0ca867d49da2f +MISC ChangeLog 82131 RMD160 5e273166146c50891133fdf6981ad4f88fe5331f SHA1 1fa5bb5f173597173a2e1abd8dd290b2e42fc09b SHA256 0e6e25d83b2e71fd1dfcd9e4e2d92f7b4944a25538ec16aefc7753dd6ec4805b MISC metadata.xml 1104 RMD160 5b90405c685bc1c0ee173b3024afab5bc849bf40 SHA1 bf76dd265acf32efba9e4e8189ae154a4b9ebd40 SHA256 17e96f326cd60399fb217025567ae4c80f1b9b12418f1bf5b41c8fa4c49598ec diff --git a/net-misc/asterisk/asterisk-1.6.2.18.2.ebuild b/net-misc/asterisk/asterisk-1.6.2.18.2.ebuild new file mode 100644 index 000000000000..8686088a4ece --- /dev/null +++ b/net-misc/asterisk/asterisk-1.6.2.18.2.ebuild @@ -0,0 +1,225 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.6.2.18.2.ebuild,v 1.1 2011/06/28 21:43:51 chainsaw Exp $ + +EAPI=3 +inherit autotools base eutils linux-info multilib + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="Asterisk: A Modular Open Source PBX System" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz + mirror://gentoo/gentoo-asterisk-patchset-0.1.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="alsa +caps dahdi doc freetds iconv jabber ldap lua newt +samples oss postgres radius snmp span speex ssl sqlite vorbis" + +EPATCH_SUFFIX="patch" +PATCHES=( "${WORKDIR}/asterisk-patchset" ) + +RDEPEND="sys-libs/ncurses + dev-libs/popt + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + caps? ( sys-libs/libcap ) + dahdi? ( >=net-libs/libpri-1.4.7 + >=net-misc/dahdi-tools-2.4.1 ) + freetds? ( dev-db/freetds ) + iconv? ( virtual/libiconv ) + jabber? ( dev-libs/iksemel ) + ldap? ( net-nds/openldap ) + lua? ( dev-lang/lua ) + newt? ( dev-libs/newt ) + postgres? ( dev-db/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 + !net-misc/asterisk-chan_unistim + !net-misc/zaptel" + +PDEPEND="net-misc/asterisk-core-sounds + net-misc/asterisk-extra-sounds + net-misc/asterisk-moh-opsound" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + CONFIG_CHECK="~!NF_CONNTRACK_SIP" + local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users + have reported that this module dropped critical SIP packets in their deployments. You + may want to disable it if you see such problems." + check_extra_config + + enewgroup asterisk + enewgroup dialout 20 + enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" +} + +src_prepare() { + base_src_prepare + AT_M4DIR=autoconf eautoreconf +} + +src_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 dahdi pri) \ + $(use_with dahdi tonezone) \ + $(use_with dahdi) \ + $(use_with freetds tds) \ + $(use_with iconv) \ + $(use_with jabber iksemel) \ + $(use_with lua) \ + $(use_with newt) \ + $(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" + + # + # blank out sounds/sounds.xml file to prevent + # asterisk from installing sounds files (we pull them in via + # asterisk-{core,extra}-sounds and asterisk-moh-opsound). + # + >"${S}"/sounds/sounds.xml +} + +src_compile() { + ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed" +} + +src_install() { + # setup directory structure + # + mkdir -p "${D}"usr/$(get_libdir)/pkgconfig + + emake DESTDIR="${D}" install || die "emake install failed" + + if use samples; then + emake DESTDIR="${D}" samples || die "emake samples failed" + for conffile in "${D}"etc/asterisk/*.* + do + chown asterisk:asterisk $conffile + chmod 0660 $conffile + done + einfo "Sample files have been installed" + else + 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/* + rm -f "${D}"etc/asterisk/* + fi + rm -rf "${D}"var/spool/asterisk/voicemail/default + + # 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.2/asterisk.initd2 asterisk + newconfd "${FILESDIR}"/1.6.0/asterisk.confd asterisk + + # install the upgrade documentation + # + dodoc README UPGRADE* BUGS CREDITS + + # install extra documentation + # + if use doc + then + dodoc doc/*.txt + dodoc doc/*.pdf + dodoc doc/PEERING + dodoc doc/CODING-GUIDELINES + dodoc doc/tex/*.pdf + fi + + # install snmp mib files + # + if use snmp + then + insinto /usr/share/snmp/mibs/ + doins doc/digium-mib.txt doc/asterisk-mib.txt + fi + + # install SIP scripts; bug #300832 + # + dodoc "${FILESDIR}/1.6.2/sip_calc_auth" + dodoc "${FILESDIR}/1.6.2/find_call_sip_trace.sh" + dodoc "${FILESDIR}/1.6.2/find_call_ids.sh" + dodoc "${FILESDIR}/1.6.2/call_data.txt" + + insinto /etc/logrotate.d + newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk +} + +pkg_postinst() { + # + # Announcements, warnings, reminders... + # + einfo "Asterisk has been installed" + einfo + 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" + einfo + elog "http://www.automated.it/guidetoasterisk.htm" + einfo + elog "Gentoo VoIP IRC Channel:" + elog "#gentoo-voip @ irc.freenode.net" +} + +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 +} |