summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2012-07-31 10:34:34 +0000
committerTony Vroon <chainsaw@gentoo.org>2012-07-31 10:34:34 +0000
commitea6a66d25ec8ed92528386c2c1e3e725b9af756e (patch)
tree994646948cc1e5b61092fcfeec19d8a3ff5f3adb /net-misc
parentBugfix release on the 10 branch. Fixes, among other things, a null pointer de... (diff)
downloadhistorical-ea6a66d25ec8ed92528386c2c1e3e725b9af756e.tar.gz
historical-ea6a66d25ec8ed92528386c2c1e3e725b9af756e.tar.bz2
historical-ea6a66d25ec8ed92528386c2c1e3e725b9af756e.zip
Bugfix release on the 1.8 branch. Fixes, among other things, a null pointer dereference in ast_sockaddr_prase, a potential deadlock in ast_set_hangupsource & routing issues around outboundproxy.
Package-Manager: portage-2.1.11.9/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk/ChangeLog9
-rw-r--r--net-misc/asterisk/Manifest10
-rw-r--r--net-misc/asterisk/asterisk-1.8.15.0.ebuild308
3 files changed, 322 insertions, 5 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog
index 2690737b395b..aca55cce1c95 100644
--- a/net-misc/asterisk/ChangeLog
+++ b/net-misc/asterisk/ChangeLog
@@ -1,6 +1,13 @@
# 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.409 2012/07/31 10:27:55 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.410 2012/07/31 10:34:34 chainsaw Exp $
+
+*asterisk-1.8.15.0 (31 Jul 2012)
+
+ 31 Jul 2012; Tony Vroon <chainsaw@gentoo.org> +asterisk-1.8.15.0.ebuild:
+ Bugfix release on the 1.8 branch. Fixes, among other things, a null pointer
+ dereference in ast_sockaddr_prase, a potential deadlock in
+ ast_set_hangupsource & routing issues around outboundproxy.
*asterisk-10.7.0 (31 Jul 2012)
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index eba97d4e600e..af3292b52810 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -14,20 +14,22 @@ AUX 1.8.0/find_call_ids.sh 1078 SHA256 185d0f55f54d044eb4b4dc64954e5191f8b993d13
AUX 1.8.0/find_call_sip_trace.sh 1115 SHA256 e1ebeb1dab05f552f89f380719d319cdf579cb6aeb86a9010e13e14c57f55985 SHA512 e679f3953b2e397d7c80bb2f0ca3db848f07ba97ca139c87224de4467f8172034eb4372e5ddd68116774a7b9d5fd48aa30d809e2af2c6e6e0747762c69090b6a WHIRLPOOL 8c30be245556b37dd45dd5ff5cf5c3141050f60c3e286631520f8114e167c6bd4f7930be21e57e93fd183ab65dfbd3b95b8e342808870979b67977f3ce189ebf
DIST asterisk-1.8.13.1.tar.gz 25049076 SHA256 78e41c7a6b55e4989a8398472575bfc43e6a2e8b82825ff93aa39ab0d332cef6 SHA512 fc11bce31696146f857a77dacf5b5163026521d78acbbe8f027c11afa6944fea28012c14aacaa0551906b3115d3cf2a15d7d88542f84432ea3586e6432697c1a WHIRLPOOL 66a60625fb17e1261973e33c2baa434d545cce1b98ceb816983271851d0780ae42c73e5d9a6c9bbaf3c8ee1e6688a561eb941ff2b4124e567345fea7bb12a904
DIST asterisk-1.8.14.1.tar.gz 25068289 SHA256 24e4ef2204905e8fe80f768ffb7a6e2410e43c599f5ee1b6aefd33ea0cb98a13 SHA512 5792b13cac07690f77a2c4b7c6adb9c531eb88d69f735bd99991768fbd4955a88110378748f0f0587782112588ac2ccbb8de9a7b28d316154ac61c1db6da1297 WHIRLPOOL f39f010469456d4f5e3020460898c04c4a4fbf92d4027485e5e3f5af32b38318494acabb3e88b166f28f4eb02cc1fe4d57b179d1f03c4e72ee0a1c7ae994adca
+DIST asterisk-1.8.15.0.tar.gz 25083527 SHA256 32331f2a1bef79e31462abca2f8d2a23df01f0b927aa6c0d533023ef06fd2867 SHA512 a14e1d5b32047dfa4c212157fdf898975feef535e34052a2463094deee8d1baaaa8791e5bc183d17b5e73324cdb5920df87d889336adf7becc3ee4644bba024b WHIRLPOOL 1f950bb1440b954a9b6f1a73553c41db0183110d684662d50c019326695b580fc91d947b384fe47239abfa85bedef9b128b970f5390a0c24f1c6709701475fbc
DIST asterisk-10.6.1.tar.gz 24989457 SHA256 17529dd3d47920c0dbd1fa611a7247c7394430050210027aa3041ab8b56ab2d4 SHA512 28d3b41ca9bf24b7afda3322c702b189e36f65b1796a5775f5160b26a3e388f992e77b96825cff309f991ec94f08e53f660858d9f2bd81185d448a010bb9c165 WHIRLPOOL 0ac184ffbb67bc96577adac834240d5cf35e968fa9adb84a5168f5a9fcfb6b2850d6c56c8cf8c84952c9bb26a1bc1a9e2eda4ac18206c8a7ad8a092d3a6989e7
DIST asterisk-10.7.0.tar.gz 25006763 SHA256 fd97a1683de05df0a902ccbb8f2649ca2468cb5e2eb1e4023412b864eedcc76e SHA512 dbcfd62ddac2e80d464379c942e16aa4ed816310ef9db24d0a634dc52f8aa8608842520d31cd434ddc2b9986b7f90d2eaaaf7258bbb6c02572397d17c87c0e61 WHIRLPOOL 671eb521f496f9ce9257d886af6dcb45766473ac069e15d71aa79e0ccd55b605b64746efaf2f9a27b70eab7e7d4234d19b0a3d20e728ce330630406ffd50cfe8
DIST gentoo-asterisk-patchset-1.13.tar.bz2 30353 SHA256 de4d9b4ab9c2d403077cb575e08c33d7320a38da48e1af1cbc545fea34f5c7f5 SHA512 5b558ed1405b4b18efdaf52571341b66f5caf6e1a91b2c72a0af0cade516029849c818e450586e7e35423f9ae4444880609ae992b5f87990a4e1b165bedd6ad9 WHIRLPOOL 5b5f1657bdcda2cdf1711828f38f01476ac55a407423f6eda52829e6714f13bd9d3e71ddc62efc3f918b398e235d876cc7826063355ab28f5d43927c9aea6e16
DIST gentoo-asterisk-patchset-2.5.tar.bz2 5839 SHA256 f67f262ab907213e6ae355923cc57d2065029f216ccebf18044ffb7f31303ced SHA512 bcb312ad345151d7ee4c76c23fa4570bc97ccdfb4715425c6969d14d2c94f1b1f0c63b0749e144d53996ff7515ea69e961e0de429443fbda62b17c8af28f6b05 WHIRLPOOL b1a48a9552fa48a86f8dbf10a9801f7edd5dcf7376ff5ea553ea334a0aa9a73f3320ed83636999c07fb6edd7eab340a394fdb19a707708915b10df41413a8688
EBUILD asterisk-1.8.13.1.ebuild 9042 SHA256 21739064e28c81de9fe64131c42d72a027ed12f37052b0c6aa1306b5eec3a931 SHA512 c184d67fc125b75530424d09b235dd0478f45f9c8f589158cbf744bae3a5da35fd71f1a2a9b4ae3d9b8b63b5b9db6788c3cff93c5e741cdeba0195ed7f04065c WHIRLPOOL 24c0102f2aaa91a51031d40a68a3594113394c465986464d44c3a6d38b1fef4d3aa04a485b566031d4491e06dc680780b5470892d806feb9a24db607e2d65a1a
EBUILD asterisk-1.8.14.1.ebuild 8959 SHA256 d6a437b5bf6a6ccdbfd9760f742c7953e88be540134373162e400eef89c41f2a SHA512 13eb30e9d6587b4e5e09f4b776b7bb0896deca7b34a2c6483049e1dc73262c127e999aad18f53b7a97f17d78259a1020272de9a95e7954c05f91c5b85a0299b0 WHIRLPOOL 2e8554d584788d0e34d3b065bb7505c92aae474acdfd4642750d9795cf23cca3a2bc5fd64645ad8d4f7581ee3b8f62f9b05835dacbc3b97d4b20edfd6317ce74
+EBUILD asterisk-1.8.15.0.ebuild 8959 SHA256 f3730d7d3cb47378d50d4dbc8a9419c773c38c4da9e6fbf9f578d305ae11a10a SHA512 ec8b46230fb884e544b90aa2b4b83385d61d96659b19813d7661414b462407e2621a555ffc48e8d054b1bab65df63f1a59343df37965c64f8be93c9b8e85d490 WHIRLPOOL dbc2a539120af0e0fb829872934f81cd674695f7482658652bdd413810bbfd77860da9341a327fb1fa5608815129de2b6788b1ca07d419e15a8fbfe1c062d993
EBUILD asterisk-10.6.1.ebuild 9020 SHA256 10cfc99a182057d25661a98c5d2787a2491a8b97b262ca994c1c1117957afee4 SHA512 4ab451f4485f03b30bebf006829cd652ba53f3a5b12e8944076ef171d78eef03249d5cb56b140b1f101631275b9dee7091d2bdb289ef40604b0133698480d4be WHIRLPOOL ebfabc03fa8a37b6f81feae2f95929b968cd51342e338a175a5c88eb57fc620ba3f7acf2ab7c86c9260c2b3c5f382c99d3c83671a30750a7fae44fb0a4a9db48
EBUILD asterisk-10.7.0.ebuild 9020 SHA256 fd2d0690a1cfb31a798b28a32acd191e20eafd7c974198beff7fba7bf1fcc816 SHA512 2a3fb210ee7293275a965807bf8db686b91abcd6edf8f706c46e51117404c353840200a0b404e504defe48808d7a8d21f7f411c59324c410f982aca13ffeb6a9 WHIRLPOOL 69f3469e83057aaa9ecbc14fbb1f52de656989bd35ae9ea5141e5fecf234882920361bf5ea8214b55015e1bee92217cd6c3072b205ef53605667749df322072e
-MISC ChangeLog 106134 SHA256 b7cb26e729e1c8c73af064679824e98263c819869aec0210659cb9552fd3c356 SHA512 327d8e6bd02ee84b7e527d298d26aedaa727d6474dbe5d72986d1c040a77a3254388a7180ec40fa875d9753e19382f503b6151b6abc738d330f31b128c11b464 WHIRLPOOL 70e0e1def8446f1cd278bd68de3ac2148e44a5c209c7ee3d4d323d1f7a21dbbe80c10ba5f3e939fb63d4f80cf1e593767ec4c7db9ca87cd536457e711e3ad3e6
+MISC ChangeLog 106445 SHA256 1bd9672cac8bdb4d5da075813185d43ddabfb59603087fdd36a5129c4ef96c15 SHA512 31781244ff7c32d178362b1e23c9c4d9dec3c513ce643cc38511a42d25ac24293c220aa5c60acdaa36c2a6018c481311bea6481158244f55aeb5de333432d4f0 WHIRLPOOL 0d227557e1d45272995192a9e93d4ce3b3946bafde63a642bf2f8775b3c51aeeb51730cdfc44b1bf4191a59dd49a5c6d404d9c00f2edec5fee0a5a29a0ba8017
MISC metadata.xml 1028 SHA256 63267079fefbcc798d902e6b9822609df79c756a9934c3ad3abdabfbad357de5 SHA512 a88f57aba47d9d1d0e9c148279ee0f6795b7d7eccbce5b96edc539cf763ca1bbee09ddaa6c4633f0d6ad85184ec69d283be02f85ee7bf070cf9d798d9e664706 WHIRLPOOL 05de0ee36d08117223f599289974b14679efb90f248a999defcb8efa0dfa427fa4ed15da22c4b39824c7a87fb9e6e1e5732e4ab7cfa2efd123d896916b23f5b9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlAXs0IACgkQp5vW4rUFj5oEewCeJ8QXap5zJQr6DZ6M+GSDmI11
-aKQAoMCrTU/cKxAM7a55hozbTAGDwAQe
-=WHl3
+iEYEAREIAAYFAlAXtNEACgkQp5vW4rUFj5pMXACfUIjFMe45+c/qpVnmcxIyiUpn
+kXwAn1Ie/lY2rV6nskfnnPyU/H1rYc89
+=ZoGh
-----END PGP SIGNATURE-----
diff --git a/net-misc/asterisk/asterisk-1.8.15.0.ebuild b/net-misc/asterisk/asterisk-1.8.15.0.ebuild
new file mode 100644
index 000000000000..b023789e30d8
--- /dev/null
+++ b/net-misc/asterisk/asterisk-1.8.15.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-1.8.15.0.ebuild,v 1.1 2012/07/31 10:34:34 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-1.13.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} ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk http iconv jabber jingle ldap lua mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex sqlite sqlite3 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-libs/popt
+ dev-libs/libxml2
+ dev-libs/openssl
+ sys-libs/ncurses
+ sys-libs/zlib
+ ais? ( sys-cluster/openais )
+ alsa? ( media-libs/alsa-lib )
+ bluetooth? ( net-wireless/bluez )
+ calendar? ( net-libs/neon
+ dev-libs/libical
+ dev-libs/iksemel )
+ caps? ( sys-libs/libcap )
+ 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 )
+ jabber? ( dev-libs/iksemel )
+ jingle? ( dev-libs/iksemel )
+ ldap? ( net-nds/openldap )
+ 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 )
+ snmp? ( net-analyzer/net-snmp )
+ span? ( media-libs/spandsp )
+ speex? ( media-libs/speex )
+ sqlite? ( dev-db/sqlite:0 )
+ sqlite3? ( dev-db/sqlite:3 )
+ srtp? ( net-libs/libsrtp )
+ vorbis? ( media-libs/libvorbis )"
+
+DEPEND="${RDEPEND}
+ voicemail_storage_imap? ( virtual/imap-c-client )
+ !net-libs/openh323"
+
+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
+
+ # 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 ais res_ais
+ use_select alsa chan_alsa
+ use_select bluetooth chan_mobile
+ use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar}
+ 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_gtalk
+ use_select http res_http_post
+ use_select iconv func_iconv
+ use_select jabber res_jabber
+ use_select jingle chan_jingle
+ 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 sqlite cdr_sqlite
+ use_select sqlite3 {cdr,cel}_sqlite3_custom
+ 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.initd2 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; bugs #300832 & #414585
+ #
+ 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 "1.6 -> 1.8 changes that you may care about:"
+ elog "http://svn.asterisk.org/svn/${PN}/tags/${PV}/UPGRADE.txt"
+ elog "or: bzless ${ROOT}usr/share/doc/${PF}/UPGRADE.txt.bz2"
+}
+
+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
+}