From: "Tony Vroon" <chainsaw@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/
Date: Thu, 1 Dec 2016 16:04:48 +0000 (UTC) [thread overview]
Message-ID: <1480608286.caf99ce2b7fe3d9df2fee43422ad928fe6a8a0f7.chainsaw@gentoo> (raw)
commit: caf99ce2b7fe3d9df2fee43422ad928fe6a8a0f7
Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 1 16:04:26 2016 +0000
Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
CommitDate: Thu Dec 1 16:04:46 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caf99ce2
net-misc/asterisk: Bugfix releases on both the 11 & 13 branches.
Package-Manager: portage-2.3.2
net-misc/asterisk/Manifest | 2 +
net-misc/asterisk/asterisk-11.25.0.ebuild | 325 +++++++++++++++++++++++++++++
net-misc/asterisk/asterisk-13.13.0.ebuild | 328 ++++++++++++++++++++++++++++++
3 files changed, 655 insertions(+)
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 4615e3c..0e044b3 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,8 +1,10 @@
DIST asterisk-11.21.1.tar.gz 34867941 SHA256 d02afbdda172a6bb98883350d64f83ce865fcea01642a05067ca2c916c3a1ee5 SHA512 d52a14ebae872d62cbfa676bfd86b28790d8e9cfad97585e9255cf9e8ca1957dae509d41ac46cd5280478d38707bc9628bafb31551ab8345e7064aabdbd5dea3 WHIRLPOOL 396eda8b1bc8b8a1465c90456c76f83c4946fd696ec647596bfdd2e74b32a1c6a15e9f4423d54da7ecda949f5ab472df3f08c30a99ebb099204d82cd8440d515
DIST asterisk-11.23.1.tar.gz 35098451 SHA256 5696a7f999dc01afdce91ed3afbd62f54b49ed37b4cbddb02bab124a88656d5c SHA512 6d067ea86a7c050b19e29d6ea25aefd23c3f32bb7d334f4e3c74bcaedaf21e4faeeab71b4fd260fc39f3e12f645c3bf89737f4c2d16f988cc66f93d4e47f80a7 WHIRLPOOL 3b2d0b67b5c58cd326176eb05ed056622cbfdb492f4acf861e6ad8bde183a4f7c0f3ef38003e120b0dcd754cafa359bec83502f0f9011edec6cda8a256058874
DIST asterisk-11.24.1.tar.gz 35123437 SHA256 006fe06c6a03e0c0af0ea392e500dbba7bc87b14542a7355b4d8648a0bedefc8 SHA512 d24c60070dfa82f7b35315fdff5c548ac4e2c109d77acbb995e31344df1555366291502a620ec59ac29ca28347d6d169cb2f6001d7955c3053056802bf6285df WHIRLPOOL a8111cff061f1001335a77fb8cbc85e9b7fb9092cb8f24e569dc3ce69a5e7d2db4d5a88eb249c2c9b8253b534f8c21a0452bcd4024729785e5f12575228d5244
+DIST asterisk-11.25.0.tar.gz 35125167 SHA256 12bc6d6b254e232417c656e86bec99e08828335e135d923f87498c133641f1c1 SHA512 a545352180612b9008ab92c7c24e416835cbf12ba3fd93c8a6ceee9b7a930b197b5ee3eb0de949605a800f0f57257393bee7deab2a1d933beed3d81ce28ec0c2 WHIRLPOOL 047654c4defe3446f3930192e3228e5df2d882ba2e7c307c15d575e1a226f401c59ca2e6d2e6a63d7fd8a2b8273961d5f900482c5a6b02fc6e45662665c9a79c
DIST asterisk-13.11.2.tar.gz 32630702 SHA256 6ea7001bb11ba11fcdbb5febb028b2fd62c44c7bda3cc966b8aaafcb429c5a3a SHA512 c0275d353ab19de37ddd7b026ca5c920cf2a9fa578396e6af9a170e8dd8abf51875beacb103aaa1f9829d12efadd7ab7fd608e311f7f8b855a451073fe7197e9 WHIRLPOOL 78547c3734d8c688221b88771ee75069cf00cdae25122cc309d4a33b11798723967f3933117bcea9637219134213c4f8e5c0b725908294e56931bdd805e33731
DIST asterisk-13.12.1.tar.gz 32701506 SHA256 fe8523a1182cdd4e638c530038956d84db1e8a63a1eece1e31e9dbbc6d3e6f30 SHA512 cbd5b15d2070302c6a7b979ccb9f43b6ecdde34e062f5f13b51c4c07b65f1cf54408cb15b64af0eab15711ff1cfb8ef25ddca1713c4c77af80cd2ee2a87a30d2 WHIRLPOOL 92a8be0382d48d12999907ef0b512fe4e95abeeb46352067db108a3fa7069861d265d75624776d489276ea4deb0a89359f0cead1cf8ed77e4b86dc19ff08c440
+DIST asterisk-13.13.0.tar.gz 32761401 SHA256 e35064b5d4c5c766661b34794f4e5fdf15ad683c3121b35e03c9e9f2a3fa9738 SHA512 e404a0a4239165784f6393c4e0b15aa0fb30ab2b4a32fb1bbe4c21a7c2b04e5bd4e9155030d4784dd03d409814e181aafa97494dd408aecf5c8445730191c9bb WHIRLPOOL e2115b6e27fa55595aa0db9cbf1c7b17e6c31506f436d894324abc4ebf671910afc718c57cc170d70b93f39c0c331ae937030f3100e9143eccdfc313e8544ca1
DIST gentoo-asterisk-patchset-3.16.tar.bz2 5018 SHA256 9c393aba3272b19ae7c7d79302c288ddb6d6b0368c72fbbeda11569ab751be6d SHA512 83d0be42f935068afd130ecf6768355d6f9702238c829e1482135d320f99e6a2ad9dd39814ea139e8a8e9009ecb99a6b3d5ed5f2cc778353d03a09183d7a06a0 WHIRLPOOL cc6a032aaa781a4eb29f913578bd10245775d9915f5a934f7c2982f44cf063cf3030b764e628b6e17f4f023558fb50e73116a19c77738ae5e8de85c0c672dfd9
DIST gentoo-asterisk-patchset-3.17.tar.bz2 5074 SHA256 2af864f0b40b42c55f3c3ac737856942c9393adddd47ebf6d982d9214b85a2ad SHA512 37f86f3c699b2643afd8080391e817a282571694bb56e00efd0734918dbc33d6c12a2463dbc24667597420863b4f506870140fbb8ef3f1700124ef790ae7252d WHIRLPOOL 79017eeb3737953515286db6386bfd848f7501b6f2abbc1ba6b6865a75495ce999d555e3112336abae23371a21a2d64a10f1d173e285314bb5bab22bfe2d4c1a
DIST gentoo-asterisk-patchset-4.03.tar.bz2 5989 SHA256 3a68854bb8a9c2c5e44615412c586606d0ba5fb3abb88e61b22c4d7dbfda7bed SHA512 acde7d6e017c260b236b0f2dafd3e02c545fc31cbd50abaff3dbc734a6423bdcfdf9c136d5c8d76fc39735d8f07f2df4086aada034d16e9b6936207e39c4abb0 WHIRLPOOL b2c1f5d8d5bd07ae57925c6746ab7193388fdbc5357f908dd60179cebacfb07b8846ac6e0b37a345916e05d57aaad9351b410c92f93b33f9498c1ccb2a374d48
diff --git a/net-misc/asterisk/asterisk-11.25.0.ebuild b/net-misc/asterisk/asterisk-11.25.0.ebuild
new file mode 100644
index 00000000..97b607c
--- /dev/null
+++ b/net-misc/asterisk/asterisk-11.25.0.ebuild
@@ -0,0 +1,325 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils linux-info multilib user systemd
+
+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.17.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 xmpp ldap libedit libressl 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? ( xmpp )
+ ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
+ voicemail_storage_odbc? ( odbc )
+"
+
+EPATCH_SUFFIX="patch"
+PATCHES=( "${WORKDIR}/asterisk-patchset" )
+
+CDEPEND="dev-db/sqlite:3
+ dev-libs/popt
+ dev-libs/libxml2
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ 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.6 )
+ iconv? ( virtual/libiconv )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ xmpp? ( 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:* )
+ radius? ( net-dialup/freeradius-client )
+ snmp? ( net-analyzer/net-snmp )
+ span? ( media-libs/spandsp )
+ speex? ( media-libs/speex )
+ srtp? ( net-libs/libsrtp )
+ vorbis? ( media-libs/libvorbis )"
+
+DEPEND="${CDEPEND}
+ !net-libs/openh323
+ !net-libs/pjsip
+ voicemail_storage_imap? ( virtual/imap-c-client )
+ virtual/pkgconfig
+"
+
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-asterisk )
+ 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() {
+ default
+ 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 \
+ --without-pwlib \
+ $(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
+
+ # That NATIVE_ARCH chatter really is quite bothersome
+ sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
+
+ # 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 app_meetme 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 xmpp 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
+
+ if use debug; then
+ for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
+ menuselect/menuselect --enable $o menuselect.makeopts
+ done
+ fi
+}
+
+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/
+ doins contrib/dictionary.digium
+ fi
+ diropts -m 0750 -o root -g asterisk
+ keepdir /etc/asterisk
+ if use samples; then
+ emake DESTDIR="${D}" samples
+ for conffile in "${D}"etc/asterisk/*.*
+ do
+ chown root:root $conffile
+ chmod 0644 $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 asterisk
+ keepdir /var/lib/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.initd8 asterisk
+ newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk
+
+ systemd_dounit "${FILESDIR}"/asterisk.service
+ systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
+ systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
+
+ # 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.logrotate4" 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/asterisk-13.13.0.ebuild b/net-misc/asterisk/asterisk-13.13.0.ebuild
new file mode 100644
index 00000000..b1debde
--- /dev/null
+++ b/net-misc/asterisk/asterisk-13.13.0.ebuild
@@ -0,0 +1,328 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils linux-info multilib user systemd
+
+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-4.04.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 xmpp ldap libedit libressl lua mysql newt +samples odbc osplookup oss pjproject portaudio postgres radius selinux snmp span speex srtp static syslog vorbis"
+IUSE_EXPAND="VOICEMAIL_STORAGE"
+REQUIRED_USE="gtalk? ( xmpp )
+ ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} )
+ voicemail_storage_odbc? ( odbc )
+"
+
+EPATCH_SUFFIX="patch"
+PATCHES=( "${WORKDIR}/asterisk-patchset" )
+
+CDEPEND="dev-db/sqlite:3
+ dev-libs/popt
+ dev-libs/jansson
+ dev-libs/libxml2
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ 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.6 )
+ iconv? ( virtual/libiconv )
+ ilbc? ( dev-libs/ilbc-rfc3951 )
+ xmpp? ( 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:* )
+ radius? ( net-dialup/freeradius-client )
+ snmp? ( net-analyzer/net-snmp )
+ span? ( media-libs/spandsp )
+ speex? ( media-libs/speex )
+ srtp? ( net-libs/libsrtp )
+ vorbis? ( media-libs/libvorbis )"
+
+DEPEND="${CDEPEND}
+ !net-libs/openh323
+ !net-libs/pjsip
+ voicemail_storage_imap? ( virtual/imap-c-client )
+ virtual/pkgconfig
+ pjproject? ( net-libs/pjproject )
+"
+
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-asterisk )
+ 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() {
+ default
+ AT_M4DIR="autoconf third-party third-party/pjproject" eautoreconf
+}
+
+src_configure() {
+ local vmst
+
+ econf \
+ --libdir="/usr/$(get_libdir)" \
+ --localstatedir="/var" \
+ --with-crypto \
+ --with-gsm=internal \
+ --with-popt \
+ --with-ssl \
+ --with-z \
+ --without-pwlib \
+ $(use_with caps cap) \
+ $(use_with http gmime) \
+ $(use_with newt) \
+ $(use_with portaudio) \
+ $(use_with pjproject)
+
+ # 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
+
+ # That NATIVE_ARCH chatter really is quite bothersome
+ sed -i 's/NATIVE_ARCH=/NATIVE_ARCH=0/' build_tools/menuselect-deps || die "Unable to squelch noisy build system"
+
+ # 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_dahdiras app_meetme 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 xmpp 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
+
+ if use debug; then
+ for o in DONT_OPTIMIZE DEBUG_THREADS BETTER_BACKTRACES; do
+ menuselect/menuselect --enable $o menuselect.makeopts
+ done
+ fi
+}
+
+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/
+ doins contrib/dictionary.digium
+ fi
+ diropts -m 0750 -o root -g asterisk
+ keepdir /etc/asterisk
+ if use samples; then
+ emake DESTDIR="${D}" samples
+ for conffile in "${D}"etc/asterisk/*.*
+ do
+ chown root:root $conffile
+ chmod 0644 $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 asterisk
+ keepdir /var/lib/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.initd8 asterisk
+ newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk
+
+ systemd_dounit "${FILESDIR}"/asterisk.service
+ systemd_newtmpfilesd "${FILESDIR}"/asterisk.tmpfiles.conf asterisk.conf
+ systemd_install_serviced "${FILESDIR}"/asterisk.service.conf
+
+ # 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.logrotate4" 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 13 upgrade document:"
+ elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+13"
+}
+
+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
+}
next reply other threads:[~2016-12-01 16:04 UTC|newest]
Thread overview: 242+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-01 16:04 Tony Vroon [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-16 5:21 [gentoo-commits] repo/gentoo:master commit in: net-misc/asterisk/ Matt Jolly
2024-12-16 5:21 Matt Jolly
2024-12-16 5:21 Matt Jolly
2024-12-16 5:21 Matt Jolly
2024-12-16 5:21 Matt Jolly
2024-12-16 5:21 Matt Jolly
2024-12-03 10:51 Joonas Niilola
2024-12-03 10:51 Joonas Niilola
2024-10-25 22:55 Matt Jolly
2024-10-25 22:55 Matt Jolly
2024-10-25 22:55 Matt Jolly
2024-10-25 22:55 Matt Jolly
2024-10-25 22:55 Matt Jolly
2024-10-24 11:23 Arthur Zamarin
2024-10-24 4:14 Sam James
2024-10-18 14:37 Sam James
2024-10-18 14:37 Sam James
2024-10-18 14:37 Sam James
2024-10-18 14:37 Sam James
2024-10-18 14:37 Sam James
2024-09-27 23:23 Jakov Smolić
2024-09-27 12:41 Arthur Zamarin
2024-09-27 5:57 Eli Schwartz
2024-09-27 5:57 Eli Schwartz
2024-09-27 5:57 Eli Schwartz
2024-08-18 17:33 Arthur Zamarin
2024-08-18 17:33 Arthur Zamarin
2024-08-16 8:02 Arthur Zamarin
2024-08-16 8:02 Arthur Zamarin
2024-08-16 7:28 Arthur Zamarin
2024-08-16 7:28 Arthur Zamarin
2024-08-13 7:36 Joonas Niilola
2024-08-13 7:36 Joonas Niilola
2024-08-13 7:36 Joonas Niilola
2024-08-13 7:36 Joonas Niilola
2024-08-05 15:04 Michał Górny
2024-08-05 15:04 Michał Górny
2024-08-05 15:04 Michał Górny
2024-08-05 15:04 Michał Górny
2024-08-05 15:04 Michał Górny
2024-02-06 14:55 Joonas Niilola
2024-02-06 14:55 Joonas Niilola
2024-02-06 14:55 Joonas Niilola
2024-01-12 8:30 Arthur Zamarin
2024-01-05 5:14 Sam James
2024-01-05 5:14 Sam James
2024-01-05 5:14 Sam James
2023-09-14 12:57 Joonas Niilola
2023-08-24 18:09 Arthur Zamarin
2023-08-24 18:09 Arthur Zamarin
2023-08-24 18:06 Arthur Zamarin
2023-08-24 18:06 Arthur Zamarin
2023-08-11 8:13 Joonas Niilola
2023-08-11 8:13 Joonas Niilola
2023-08-11 8:13 Joonas Niilola
2023-08-11 8:13 Joonas Niilola
2023-05-27 8:24 Joonas Niilola
2023-05-27 8:24 Joonas Niilola
2023-05-16 6:16 Joonas Niilola
2023-05-16 6:16 Joonas Niilola
2023-05-16 6:16 Joonas Niilola
2023-05-16 6:16 Joonas Niilola
2023-05-11 1:29 Sam James
2023-05-11 1:29 Sam James
2023-05-11 1:29 Sam James
2023-05-11 1:29 Sam James
2023-04-20 21:52 Sam James
2023-04-20 21:52 Sam James
2023-04-20 21:52 Sam James
2023-04-20 21:52 Sam James
2023-04-05 12:00 Joonas Niilola
2023-04-05 12:00 Joonas Niilola
2023-02-28 16:13 Joonas Niilola
2023-02-28 16:13 Joonas Niilola
2023-02-28 16:13 Joonas Niilola
2022-12-13 5:27 Sam James
2022-12-13 5:27 Sam James
2022-11-05 13:41 Joonas Niilola
2022-11-05 13:41 Joonas Niilola
2022-11-05 13:41 Joonas Niilola
2022-08-23 8:59 Matthew Smith
2022-08-23 8:59 Matthew Smith
2022-08-19 3:46 Sam James
2022-08-18 21:32 Sam James
2022-08-18 21:32 Sam James
2022-08-18 21:32 Sam James
2022-08-18 21:32 Sam James
2022-08-18 21:01 Sam James
2022-07-13 8:01 Sam James
2022-07-13 8:01 Sam James
2022-07-13 8:01 Sam James
2022-02-19 5:17 Sam James
2022-02-19 5:17 Sam James
2021-12-20 11:10 Joonas Niilola
2021-12-20 11:10 Joonas Niilola
2021-12-20 11:10 Joonas Niilola
2021-12-20 11:10 Joonas Niilola
2021-12-20 11:10 Joonas Niilola
2021-12-20 11:10 Joonas Niilola
2021-12-10 22:17 Jakov Smolić
2021-12-10 22:17 Jakov Smolić
2021-12-10 12:40 Jakov Smolić
2021-12-10 12:40 Jakov Smolić
2021-11-12 1:36 Sam James
2021-11-11 11:36 Agostino Sarubbo
2021-11-10 16:54 Jakov Smolić
2021-11-10 16:54 Jakov Smolić
2021-10-14 8:01 Sam James
2021-10-14 8:01 Sam James
2021-09-25 19:08 Sam James
2021-09-04 6:26 Joonas Niilola
2021-09-04 6:26 Joonas Niilola
2021-07-30 23:31 Sam James
2021-07-24 7:58 Agostino Sarubbo
2021-07-24 7:57 Agostino Sarubbo
2021-07-23 7:25 Joonas Niilola
2021-07-13 7:29 Joonas Niilola
2021-07-13 7:29 Joonas Niilola
2021-07-12 10:40 Joonas Niilola
2021-07-12 10:40 Joonas Niilola
2021-07-12 10:40 Joonas Niilola
2021-07-12 10:40 Joonas Niilola
2021-06-30 20:49 Sam James
2021-06-30 20:49 Sam James
2021-06-30 20:49 Sam James
2021-06-30 20:49 Sam James
2021-06-25 19:19 Ulrich Müller
2021-06-24 23:27 Sam James
2021-06-03 19:15 Sam James
2021-05-23 18:48 Andreas Sturmlechner
2021-05-22 15:26 Sam James
2021-05-13 4:32 Sam James
2021-05-13 4:31 Sam James
2021-05-11 8:47 Joonas Niilola
2021-05-11 8:47 Joonas Niilola
2021-05-02 12:09 Mikle Kolyada
2021-04-09 10:04 Joonas Niilola
2021-04-09 10:04 Joonas Niilola
2021-03-29 15:29 Sam James
2021-03-26 0:08 Sam James
2021-03-25 23:17 Sam James
2021-03-19 8:52 Joonas Niilola
2021-03-19 8:52 Joonas Niilola
2021-03-09 9:44 Sam James
2021-03-07 11:58 David Seifert
2021-02-10 19:05 Sam James
2021-01-23 4:20 Sam James
2021-01-23 4:09 Sam James
2021-01-22 5:40 Sam James
2021-01-07 10:06 Sam James
2021-01-01 23:00 Sam James
2020-12-23 21:31 Marek Szuba
2020-12-23 21:31 Marek Szuba
2020-11-02 14:21 Sam James
2020-10-26 13:16 Joonas Niilola
2020-10-26 13:16 Joonas Niilola
2020-10-25 19:46 Thomas Deutschmann
2020-09-12 1:49 Sam James
2020-09-12 1:49 Sam James
2020-09-12 1:49 Sam James
2020-09-12 1:49 Sam James
2020-07-20 21:02 Sam James
2020-07-20 21:02 Sam James
2020-07-20 21:02 Sam James
2020-07-20 20:40 Sam James
2020-07-20 20:40 Sam James
2020-07-20 12:24 Sam James
2020-07-19 12:22 Agostino Sarubbo
2020-07-19 12:18 Agostino Sarubbo
2020-07-16 17:45 Sam James
2020-07-01 6:39 Joonas Niilola
2020-07-01 6:39 Joonas Niilola
2020-07-01 6:39 Joonas Niilola
2020-06-17 17:15 Thomas Deutschmann
2020-06-17 17:15 Thomas Deutschmann
2020-05-08 10:46 Agostino Sarubbo
2020-05-07 15:58 Agostino Sarubbo
2020-05-06 6:48 Sergei Trofimovich
2020-05-04 17:26 Joonas Niilola
2020-04-21 8:18 Joonas Niilola
2020-04-17 7:36 Joonas Niilola
2020-04-15 6:58 Agostino Sarubbo
2020-04-14 16:43 Agostino Sarubbo
2020-04-14 12:32 Agostino Sarubbo
2020-04-13 7:42 Joonas Niilola
2020-03-31 8:25 Mikle Kolyada
2020-02-24 5:55 Joonas Niilola
2019-11-30 7:50 Joonas Niilola
2019-11-30 7:50 Joonas Niilola
2019-09-10 13:37 Lars Wendler
2018-10-18 8:08 Tony Vroon
2018-10-17 16:10 Agostino Sarubbo
2018-10-17 12:07 Thomas Deutschmann
2018-10-17 8:33 Tony Vroon
2018-10-17 8:29 Tony Vroon
2018-10-06 18:40 Sergei Trofimovich
2018-10-06 18:40 Sergei Trofimovich
2018-10-06 18:40 Sergei Trofimovich
2018-10-06 18:40 Sergei Trofimovich
2018-08-13 12:46 Tony Vroon
2018-08-01 13:39 Tony Vroon
2018-03-26 12:50 Tony Vroon
2018-03-24 0:41 Aaron Bauman
2018-03-23 23:37 Aaron Bauman
2018-03-17 7:11 Matt Turner
2018-03-12 10:51 Agostino Sarubbo
2018-03-09 16:04 Tony Vroon
2018-01-25 10:20 Tony Vroon
2018-01-24 10:55 Tony Vroon
2017-10-25 9:31 Agostino Sarubbo
2017-10-03 16:05 Tony Vroon
2017-10-03 0:42 Thomas Deutschmann
2017-09-19 22:08 Tony Vroon
2017-09-19 9:22 Tony Vroon
2017-09-19 0:17 Tony Vroon
2017-06-04 21:40 Thomas Deutschmann
2017-03-10 9:58 Tony Vroon
2017-02-23 13:02 Michael Weber
2017-02-23 9:08 Michael Weber
2016-12-14 10:24 Aaron Bauman
2016-12-13 11:30 Agostino Sarubbo
2016-12-13 11:05 Agostino Sarubbo
2016-12-09 14:38 Tony Vroon
2016-11-09 10:25 Tony Vroon
2016-09-12 10:52 Tony Vroon
2016-06-30 18:32 Michał Górny
2016-06-30 12:29 Tony Vroon
2016-05-04 10:35 Tony Vroon
2016-03-09 14:14 Tony Vroon
2016-02-08 11:46 Tony Vroon
2016-02-05 15:37 Tony Vroon
2016-02-05 15:09 Tony Vroon
2016-02-05 15:04 Agostino Sarubbo
2016-02-05 15:03 Agostino Sarubbo
2016-02-05 13:23 Tony Vroon
2016-01-19 10:05 Tony Vroon
2015-12-07 13:45 Tony Vroon
2015-12-07 13:45 Tony Vroon
2015-10-18 18:23 Michał Górny
2015-10-05 13:52 Julian Ospald
2015-08-11 10:40 Tony Vroon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1480608286.caf99ce2b7fe3d9df2fee43422ad928fe6a8a0f7.chainsaw@gentoo \
--to=chainsaw@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox