summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2012-10-30 00:30:38 +0000
committerTony Vroon <chainsaw@gentoo.org>2012-10-30 00:30:38 +0000
commit807a44107e62a05c48bb4c68eba1317fe75cf67b (patch)
treee27c7d684d1cc53ed3469c51485a3c3c289578d2 /net-misc
parentFix bash-comp paths (bug 440124, thanks Marcin Mirosław) (diff)
downloadhistorical-807a44107e62a05c48bb4c68eba1317fe75cf67b.tar.gz
historical-807a44107e62a05c48bb4c68eba1317fe75cf67b.tar.bz2
historical-807a44107e62a05c48bb4c68eba1317fe75cf67b.zip
Initial release on 11 (LTS) branch. Distro patchset & ebuild menuselect logic ported by Oliver Jaksch. Build system tamed and parallelised by Erik Wallin. Closes bug #432894. Patch from Pacho Ramos inverts logic in gmime detection and facilitates the pending removal of 2.4 from the portage tree, closes bug #439846. This is currently masked and not recommended for deployment.
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk/ChangeLog12
-rw-r--r--net-misc/asterisk/Manifest17
-rw-r--r--net-misc/asterisk/asterisk-11.0.0.ebuild308
-rw-r--r--net-misc/asterisk/metadata.xml2
4 files changed, 326 insertions, 13 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog
index b62e5c8d1bf7..df0c0a877373 100644
--- a/net-misc/asterisk/ChangeLog
+++ b/net-misc/asterisk/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-misc/asterisk
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.417 2012/10/09 08:38:23 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.418 2012/10/30 00:30:35 chainsaw Exp $
+
+*asterisk-11.0.0 (30 Oct 2012)
+
+ 30 Oct 2012; Tony Vroon <chainsaw@gentoo.org> +asterisk-11.0.0.ebuild,
+ metadata.xml:
+ Initial release on 11 (LTS) branch. Distro patchset & ebuild menuselect logic
+ ported by Oliver Jaksch. Build system tamed and parallelised by Erik Wallin.
+ Closes bug #432894. Patch from Pacho Ramos inverts logic in gmime detection
+ and facilitates the pending removal of 2.4 from the portage tree, closes bug
+ #439846. This is currently masked and not recommended for deployment.
*asterisk-10.9.0 (09 Oct 2012)
*asterisk-1.8.17.0 (09 Oct 2012)
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 2e29662c0619..3d7e795713a2 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX 1.6.0/asterisk.confd 2204 SHA256 daec84c58e0ef6cbd71a6fc62cb83129b1bcffdfdd619ebbd62a642f0cd1eee7 SHA512 4d8998be5032203d693096d7940b4aeca71345b23544ef3c645f47aa617cc775da7b013f364ef90fd0abdd86976235bb4fcd463a055250b8072efc181e325466 WHIRLPOOL dc423607cda205913e034f4b6c10b20463eff12bb0c1f41813deade9cd887e3abaafa6eeab6c39064c3da242e50859e293165a9818eee867ecf832d9d1f88a8d
AUX 1.6.2/asterisk.logrotate3 436 SHA256 675705506d1adf7ec8c278581412a7ed69eed2735fea6c5f2faf368fb4ad9a26 SHA512 de9893ce0b460e711cc107779afd40150398ef53f901923a7378757df2936c1bde43c39ba50924f913db81ce66550a9d2e1bb66c5712021b5f8c652d3b3740c4 WHIRLPOOL 34606860de1f8d7f45165035a4d3c0ff8726843508f0664a77db90d90556166dd3d6909dfe0f1b616e239c182e3b97f2e9a224e76628312a5e0d2a6e6a1259e7
AUX 1.6.2/call_data.txt 1120 SHA256 24a5b8dab0f46ffff6dddc50d4ab8d498ec90bc2a0977249f65471b3f0948a0b SHA512 0bc4ab49d3a7493d1871c63234fb4c4ec6725491d350e28836f1220d1c17097974d47afcf19265348215d3076e12266688df513614f595cbae8f996cbb6fc7cb WHIRLPOOL e28db9b7c11e9106edc3d00f611960ea3290c442607c14b0d30ba2ab773deea6b70ab37f88b60f559062b18364d7d142526d045280ff8559acf560163a9a04b7
@@ -19,20 +16,16 @@ DIST asterisk-1.8.17.0.tar.gz 25136583 SHA256 065da84b8e65674356efa8d1f25d985490
DIST asterisk-10.7.1.tar.gz 24998267 SHA256 44802eadcc457218fb55ba23229da1f8f9636a4a503ae2edb26496fab11b0863 SHA512 566757b8d6427b735e202efb2b440dfb7ec4a5b20ba476400e54f8ca96d49e7e5976e9b3ce73d299ed0bd5d8cc6c0fbc80099c64dd02dee8aae1dabb4945be49 WHIRLPOOL dce3b3ac10a21b54a1c10e3a7b01274d304348cff0e5d8a4d6457e41bff2df2690d933b27615b36ee5e1c6e9d07f83f66a457c5e978b5bb661af3bd522213ea1
DIST asterisk-10.8.0.tar.gz 25007513 SHA256 14aab33e729c18514653b2ebc2fb295de60ca0c467989e5b416cd15e0c7d47ea SHA512 5e2bd13eb8247550e21209d65924ca223dcf8f492d1734353a0a42646fce541d97912949363eb5f60c68f709936f2092f6127b2daeaaba46ae0d22835d8a6047 WHIRLPOOL 9d743942afe9037cf41a07434a7d7a4bdc4985ecfaa63bb7edbfdffbefdf039f4b6478372a949c7bbc6251cad9b50e6c08ee79b697c82206fc1f05b50b81dc85
DIST asterisk-10.9.0.tar.gz 25060275 SHA256 fb5ba7c4e9c197843b7ccefe732ec6992a7f6d16065d6e7128d37b1049ef6eea SHA512 001b570e6dea023376df5b91dc778ad61abc3881edf50418e681eac1b812c42203c17237ffc1aac53c53b0201bce14a2bccc582f8642809b3d21b2f6a0aa9f36 WHIRLPOOL 16cbaf9faaa6d773681adc641b5a3682cfd743b3d1282ca7dfff3c6d8a6239f3b92c8ae6db92938ef0365e8f391f5c80d0af7a62460e8b5b91a40ba607a1d215
+DIST asterisk-11.0.0.tar.gz 29917907 SHA256 01db5f6c657ca3fa2b17bc9c4f935adaba3f51a2ea57d102048858ee792da8b7 SHA512 b67cf6dc184fc20cee6d47beaf623d170c836703150c41271668eb8c71b2bc14f51b295e8750020f6843db4ef5facab3d29ed3ba37f2f2bf71eb3662fc1a620b WHIRLPOOL 5c63870a964f72ea0db227477aca281def87231e7bff505f7373f72fd1cde609fdf7a2116fbb3e21dc236d19e6d9d6e65801ce6b7b81e38d493cba328b0c456f
DIST gentoo-asterisk-patchset-1.14.tar.bz2 31270 SHA256 d12e3950037113d68c496c3e92e38f747ac7486cd8609aadd05547d969b734d9 SHA512 b3e069043227dae52d3b3e73641540fbcfc16fe4a71d2d0a0d4cb18920b68d717ac5ab0734d6701953f7a54a27b7e778ec91064262bc7dacb6e28afe981d1d64 WHIRLPOOL c8b261819688ed1ebd15cbeafeec0f321db3d9efea1e966f5588b21e6e1430d189156a2166d31143489b1e0528492cec47ec73d64efce19c749a55e305ba37b9
DIST gentoo-asterisk-patchset-2.6.tar.bz2 6819 SHA256 03f174f23234b23a1deb6ec5a25f6682e09d1e20bdc4e0eebd937450448bcd01 SHA512 49f85ab464ccb1da210b764fd8abd4aa6379d8aa4fadf087ac5ac44c924151b8d6de663a57e4381de5bea0ef90a6a82d4f17ca727863550cc3d489a38c489a22 WHIRLPOOL e55e62aa359b8faa461a8ea2d6232d0deb60d1b56ddffdfb54e366a21f35f46e69b1d627b5074c2a894ece6e576ec815ce63a93d931c52919eb9ee7904ae3ca5
+DIST gentoo-asterisk-patchset-3.0.tar.bz2 6039 SHA256 15f323a8d3382862bed81de07ec72b42a44308415f9d1564c9ff626cd5562883 SHA512 c53e30630306e97de2fbba8d340d5b4d85e6217e7a913b95d5e790d5bf0bb16227f652d783288f43d10ad35b9e90fb7c08018ef69b85e6215d526a561f4ced6a WHIRLPOOL 79a166cd716317e8a0c8825ea0f0ea6176c3804e3e7e731ea767b4789c642e3ab8fa7259b49a4e0cdc1cfd09821dbceb14884d921ef93c9f241c8f33971782fa
EBUILD asterisk-1.8.15.1.ebuild 9009 SHA256 341556b0a658f7f3da75844ca2066da614b70813364a29d4ac0c89a3f1a24eba SHA512 2f80343e61806f04001498b197000646b36c0bb9c06a84c0a69def433447ee65a6c1fd917c232688a8e45e22a9da638e033d3d0f43e42242a75aaf2255a846bf WHIRLPOOL 809181bd0811692821c5c91a70e258319405463872e6f7559da10866eecb9dded95e5db91f8d35834f7ade91dcd67f88d0aaf18dc05508175180029873cf94af
EBUILD asterisk-1.8.16.0.ebuild 9009 SHA256 28f0e15c1ccfe0f20033c2aaf032de6682ed0edb97eba046be5f0b2bd8e34602 SHA512 8705b8339d73d0894412da4a4bb806498dd20d69dbc8ab66ea530ddc08b894ef0c3ec2cbcc5bde7a037e82be917eb601db56c7bfd00dcc2b2707faeab813fa0c WHIRLPOOL 9577352c293b1caf42d4a34140cee271bfccca830e9e10cac7fe69706d1b9d4ccd494fd929efb368dea37ce70398abe7f8f866fb558997340890a1571028a89c
EBUILD asterisk-1.8.17.0.ebuild 9009 SHA256 6dd0af06ccfa2a574c02dc762351702d04a1b36a84e214a53c513629431ad97d SHA512 6f481324dfebc25dff2f9967703ac9b055a045ee9978da5de437d9f2c331cd11c840d52ebbf79892f20f2c814e701fbeeebffa67691c40e704c7e012dc61c73c WHIRLPOOL e0143fa545f3e5758af1f468de29f7013b2bd3c3b9adb98d8f373c8018f11f0f8ad4d0bd91c2f1fda745be30e4a6c9ce0be9dff34d5f8925ceb177e1063428d4
EBUILD asterisk-10.7.1.ebuild 9070 SHA256 d629b5eb2bb711bbcf8bc0e688dca74b9e780a6f08560f07351482d6ceba6b74 SHA512 987cdb242834582aceaed60a1cc51fc0d5a0a6bafbdaeaa6185b5e4a6d826013c0bad7bcf85e71eed5d01d43ad39ac61d9e2667414212ae14dd7b65f2b6c431a WHIRLPOOL 2bc7aceb98efdcac9801d36110d83b50d630116b2d20a5658b385dec6eeb78675070d8c2fc549105c36c176a181560217e2bd4c3e834f1b2132c9b570d682b85
EBUILD asterisk-10.8.0.ebuild 9070 SHA256 47037f24e1632001d1482171b7661b47389900c53908e0b16fe04d55800d0999 SHA512 1c70d896d1e538699742be4b137e93a2596bb53de91386a0d5f6023e7f5ce5cb9475825ba9800bb94bc7f5b9b1f38ab824c1c2a936652fdd6cdfb6ed6c074701 WHIRLPOOL 987bb1af971e5874292500ae18e16b4cceb5dd61d3e269737b18602821411b887019f2ab698a9ed5e05bd638a311657a3851c0542091c1f26b79a54b82699207
EBUILD asterisk-10.9.0.ebuild 9070 SHA256 9d90ed5b33e2d2237d96530144d01b645e9a005f30e47e408bdaa421503893ec SHA512 1afdb3600cd4caf7d050e1120bcc0710bf79afb7456b3042fc76b7928ef7da38e4dd7c0f718b2b453f635e95460dbb61d7dbf8b4c6ad8c64800960e1fb954a43 WHIRLPOOL c7f575d8dc14343738a3ebd229c997526b96b375c5e5492c6107fa1b513642c1740552370b7169fa90a734848e424456d7c516b13331fea3775cc2fab5c2fc21
-MISC ChangeLog 108709 SHA256 e26e9b5891e54986f00914ee41155d4313d50de8302f5c98fbffe33b73e835b3 SHA512 403c89d35cac2f219303685b15c449ba2cf6fe2b5b45105c0f8bda0c185fdadadb47d9a33fc6314774a1451f3fee5ab508c542527328a854f257541350d4e164 WHIRLPOOL 5de3be3c2b0ababdc88bad3aa29751360b0384753de2bd3f0c4cee43b67d839e4d48591dbe677984c2f8c635dec0a1a6d2d3f2ad0818c7dcdad614e8512341cd
-MISC metadata.xml 1028 SHA256 63267079fefbcc798d902e6b9822609df79c756a9934c3ad3abdabfbad357de5 SHA512 a88f57aba47d9d1d0e9c148279ee0f6795b7d7eccbce5b96edc539cf763ca1bbee09ddaa6c4633f0d6ad85184ec69d283be02f85ee7bf070cf9d798d9e664706 WHIRLPOOL 05de0ee36d08117223f599289974b14679efb90f248a999defcb8efa0dfa427fa4ed15da22c4b39824c7a87fb9e6e1e5732e4ab7cfa2efd123d896916b23f5b9
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iEYEAREIAAYFAlBz4pkACgkQp5vW4rUFj5oAZACdGifWaFTIHkNP/zAw2mCXZ1mZ
-QawAn0+zv6nfboaf2foQulZm6w2GI7lo
-=cOAk
------END PGP SIGNATURE-----
+EBUILD asterisk-11.0.0.ebuild 9102 SHA256 96cd022cb5114a3d1abe3b69160334480987cea00fc12739b6168636677f117b SHA512 4141678d9b102786ab5e411235c2924e3e18ff13d0af4a21233fba342d0692886ef70dde2a9c0b4986fef58c5e98c3cf6fea012aed24b226bf5f062a680a1487 WHIRLPOOL 746ddd55b73459fffc0de233f0661aecd92758bb3e57e342ab84717c5fe9f8cc20093a946593c813a33c1223b52de7f2a390d37535bc7aebe1c6f62ac7a722c3
+MISC ChangeLog 109219 SHA256 18f2459610d17c757707f9b96c7952e7f1968cde9325758a2c7ee85dac0aebf0 SHA512 f698cc4226048feb6672c0d915bf0d316d5b634088374be5e182ee79e721e3e6a3126b4e8508cb9900af9c866583675aefa338934689c4c399a18c767af5e7e9 WHIRLPOOL 30b9dd01f8864c7bef2c4a5c389d6706a469eb3905be13026e84e93ad8b25f5ebdadad4982e387339db057c917b2a0b01e6c728d67d64cab98de84c7408841a9
+MISC metadata.xml 1203 SHA256 d5acdcd4f214e602c8d6b68258e4e7fa9071bd2fbda10d461f097d35d1f08c0a SHA512 4f65a7268834241af12d41b79da374cc65b977436ad182ea781b2677790da0d1573cc39fc2e9868a0acbaeceb529762cab385e16d9140a5246cafebd6e25e765 WHIRLPOOL d870297ef0b6f1f36a2f39cabb811c3a1845a305884ae7b2bc979cd35f96da04cc3030eb4593039aa0aaf206fe44845a37bbb5ac994085c1e67a422e2fdf0772
diff --git a/net-misc/asterisk/asterisk-11.0.0.ebuild b/net-misc/asterisk/asterisk-11.0.0.ebuild
new file mode 100644
index 000000000000..3f503d09af77
--- /dev/null
+++ b/net-misc/asterisk/asterisk-11.0.0.ebuild
@@ -0,0 +1,308 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-11.0.0.ebuild,v 1.1 2012/10/30 00:30:35 chainsaw Exp $
+
+EAPI=4
+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-3.0.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE_VOICEMAIL_STORAGE="
+ +voicemail_storage_file
+ voicemail_storage_odbc
+ voicemail_storage_imap
+"
+IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc jabber ldap libedit lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis"
+IUSE_EXPAND="VOICEMAIL_STORAGE"
+REQUIRED_USE="gtalk? ( jabber )
+ ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
+ voicemail_storage_odbc? ( odbc )
+"
+
+EPATCH_SUFFIX="patch"
+PATCHES=( "${WORKDIR}/asterisk-patchset" )
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/popt
+ dev-libs/libxml2
+ dev-libs/openssl
+ sys-libs/ncurses
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ bluetooth? ( net-wireless/bluez )
+ calendar? ( net-libs/neon
+ dev-libs/libical
+ dev-libs/iksemel )
+ caps? ( sys-libs/libcap )
+ cluster? ( sys-cluster/corosync )
+ curl? ( net-misc/curl )
+ dahdi? ( >=net-libs/libpri-1.4.12_beta2
+ net-misc/dahdi-tools )
+ freetds? ( dev-db/freetds )
+ gtalk? ( dev-libs/iksemel )
+ http? ( dev-libs/gmime:2.4 )
+ iconv? ( virtual/libiconv )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ jabber? ( dev-libs/iksemel )
+ ldap? ( net-nds/openldap )
+ libedit? ( dev-libs/libedit )
+ lua? ( dev-lang/lua )
+ mysql? ( virtual/mysql )
+ newt? ( dev-libs/newt )
+ odbc? ( dev-db/unixODBC )
+ osplookup? ( net-libs/osptoolkit )
+ portaudio? ( media-libs/portaudio )
+ postgres? ( dev-db/postgresql-base )
+ radius? ( net-dialup/radiusclient-ng )
+ selinux? ( sec-policy/selinux-asterisk )
+ snmp? ( net-analyzer/net-snmp )
+ span? ( media-libs/spandsp )
+ speex? ( media-libs/speex )
+ srtp? ( net-libs/libsrtp )
+ vorbis? ( media-libs/libvorbis )"
+
+DEPEND="${RDEPEND}
+ !net-libs/openh323
+ voicemail_storage_imap? ( virtual/imap-c-client )
+"
+
+RDEPEND="${RDEPEND}
+ syslog? ( virtual/logger )"
+
+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() {
+ local vmst
+
+ econf \
+ --libdir="/usr/$(get_libdir)" \
+ --localstatedir="/var" \
+ --with-crypto \
+ --with-gsm=internal \
+ --with-popt \
+ --with-ssl \
+ --with-z \
+ $(use_with caps cap) \
+ $(use_with http gmime) \
+ $(use_with newt) \
+ $(use_with portaudio)
+
+ # 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
+
+ # Compile menuselect binary for optional components
+ emake menuselect.makeopts
+
+ # Broken functionality is forcibly disabled (bug #360143)
+ menuselect/menuselect --disable chan_misdn menuselect.makeopts
+ menuselect/menuselect --disable chan_ooh323 menuselect.makeopts
+
+ # Utility set is forcibly enabled (bug #358001)
+ menuselect/menuselect --enable smsq menuselect.makeopts
+ menuselect/menuselect --enable streamplayer menuselect.makeopts
+ menuselect/menuselect --enable aelparse menuselect.makeopts
+ menuselect/menuselect --enable astman menuselect.makeopts
+
+ # this is connected, otherwise it would not find
+ # ast_pktccops_gate_alloc symbol
+ menuselect/menuselect --enable chan_mgcp menuselect.makeopts
+ menuselect/menuselect --enable res_pktccops menuselect.makeopts
+
+ # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available
+ menuselect/menuselect --enable pbx_dundi menuselect.makeopts
+ menuselect/menuselect --enable func_aes menuselect.makeopts
+ menuselect/menuselect --enable chan_iax2 menuselect.makeopts
+
+ # SQlite3 is now the main database backend, enable related features
+ menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts
+ menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts
+
+ # The others are based on USE-flag settings
+ use_select() {
+ local state=$(use "$1" && echo enable || echo disable)
+ shift # remove use from parameters
+
+ while [[ -n $1 ]]; do
+ menuselect/menuselect --${state} "$1" menuselect.makeopts
+ shift
+ done
+ }
+
+ use_select alsa chan_alsa
+ use_select bluetooth chan_mobile
+ use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
+ use_select cluster res_corosync
+ use_select curl func_curl res_config_curl res_curl
+ use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi
+ use_select freetds {cdr,cel}_tds
+ use_select gtalk chan_motif
+ use_select http res_http_post
+ use_select iconv func_iconv
+ use_select jabber res_xmpp
+ use_select ilbc codec_ilbc format_ilbc
+ use_select ldap res_config_ldap
+ use_select lua pbx_lua
+ use_select mysql app_mysql cdr_mysql res_config_mysql
+ use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc
+ use_select osplookup app_osplookup
+ use_select oss chan_oss
+ use_select postgres {cdr,cel}_pgsql res_config_pgsql
+ use_select radius {cdr,cel}_radius
+ use_select snmp res_snmp
+ use_select span res_fax_spandsp
+ use_select speex {codec,func}_speex
+ use_select srtp res_srtp
+ use_select syslog cdr_syslog
+ use_select vorbis format_ogg_vorbis
+
+ # Voicemail storage ...
+ for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do
+ if use ${vmst}; then
+ menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts
+ fi
+ done
+}
+
+src_compile() {
+ ASTLDFLAGS="${LDFLAGS}" emake
+}
+
+src_install() {
+ mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die
+ emake DESTDIR="${D}" installdirs
+ emake DESTDIR="${D}" install
+
+ if use radius; then
+ insinto /etc/radiusclient-ng/
+ doins contrib/dictionary.digium
+ fi
+ if use samples; then
+ emake DESTDIR="${D}" samples
+ 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/* || die
+ rm -f "${D}"var/lib/asterisk/sounds/demo-* || die
+ rm -f "${D}"var/lib/asterisk/agi-bin/* || die
+ rm -f "${D}"etc/asterisk/* || die
+ fi
+ rm -rf "${D}"var/spool/asterisk/voicemail/default || die
+
+ # 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.8.0/asterisk.initd3 asterisk
+ newconfd "${FILESDIR}"/1.8.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
+ fi
+
+ # install SIP scripts; bug #300832
+ #
+ dodoc "${FILESDIR}/1.6.2/sip_calc_auth"
+ dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh"
+ dodoc "${FILESDIR}/1.8.0/find_call_ids.sh"
+ dodoc "${FILESDIR}/1.6.2/call_data.txt"
+
+ # install logrotate snippet; bug #329281
+ #
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk
+}
+
+pkg_postinst() {
+ #
+ # 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
+ elog "Please read the Asterisk 11 upgrade document:"
+ elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11"
+}
+
+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/metadata.xml b/net-misc/asterisk/metadata.xml
index dc998338651c..fa03f4e54724 100644
--- a/net-misc/asterisk/metadata.xml
+++ b/net-misc/asterisk/metadata.xml
@@ -16,5 +16,7 @@
<flag name="ais">Support clustering using the Application Interface Specification framework</flag>
<flag name="osplookup">Support secure peering using the Open Settlement Protocol</flag>
<flag name="http">Enable embedded web server</flag>
+ <flag name="cluster">Enable high-availability support through the Corosync Cluster Engine</flag>
+ <flag name="ilbc">Enable the Internet Low Bitrate Codec (iLBC)</flag>
</use>
</pkgmetadata>