summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2011-01-04 17:31:53 +0000
committerTony Vroon <chainsaw@gentoo.org>2011-01-04 17:31:53 +0000
commit92392da43f2d636638315f6f21f90d0a69f43b21 (patch)
treeeb6144e323fad9a50b4599ad16cc936169b1daca /net-misc/asterisk
parentVersion bump (diff)
downloadhistorical-92392da43f2d636638315f6f21f90d0a69f43b21.tar.gz
historical-92392da43f2d636638315f6f21f90d0a69f43b21.tar.bz2
historical-92392da43f2d636638315f6f21f90d0a69f43b21.zip
As pointed out by Ivan L. Isaev in bug #344533, MySQL was not fully enabled. Together with Michael Lesniewski I have redone all conditional statements through menuselect instead of through use_with. Pre-creating directories in the installation image allows parallel install with MAKEOPTS above -j1, closes bug #350339 by rad0xicated@gmail.com. Kill USE=logrotate which snuck back in. Kill USE=keepsrc as I do not believe it is used. Petition me through a bug report if you disagree and present a clear use case. Nuke older 1.8 branch ebuilds, they are useless now because of a gtalk protocol change.
Package-Manager: portage-2.1.9.28/cvs/Linux x86_64
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r--net-misc/asterisk/ChangeLog17
-rw-r--r--net-misc/asterisk/Manifest14
-rw-r--r--net-misc/asterisk/asterisk-1.8.0.ebuild302
-rw-r--r--net-misc/asterisk/asterisk-1.8.1.1-r1.ebuild437
-rw-r--r--net-misc/asterisk/asterisk-1.8.1.1.ebuild286
-rw-r--r--net-misc/asterisk/metadata.xml1
6 files changed, 458 insertions, 599 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog
index 8d058ec57cdd..bee5823d5343 100644
--- a/net-misc/asterisk/ChangeLog
+++ b/net-misc/asterisk/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for net-misc/asterisk
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.278 2010/12/30 17:28:01 chainsaw Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.279 2011/01/04 17:31:53 chainsaw Exp $
+
+*asterisk-1.8.1.1-r1 (04 Jan 2011)
+
+ 04 Jan 2011; Tony Vroon <chainsaw@gentoo.org> -asterisk-1.8.0.ebuild,
+ -asterisk-1.8.1.1.ebuild, +asterisk-1.8.1.1-r1.ebuild:
+ As pointed out by Ivan L. Isaev in bug #344533, MySQL was not fully enabled.
+ Together with Michael Lesniewski I have redone all conditional statements
+ through menuselect instead of through use_with. Pre-creating directories in
+ the installation image allows parallel install with MAKEOPTS above -j1,
+ closes bug #350339 by rad0xicated@gmail.com. Kill USE=logrotate which snuck
+ back in. Kill USE=keepsrc as I do not believe it is used. Petition me through
+ a bug report if you disagree and present a clear use case. Nuke older 1.8
+ branch ebuilds, they are useless now because of a gtalk protocol change.
30 Dec 2010; Tony Vroon <chainsaw@gentoo.org>
-files/1.6.1/asterisk-1.6.1-uclibc.patch,
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 5361246375ac..f7f980b5f63b 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -41,7 +41,6 @@ DIST asterisk-1.2.37.tar.gz 29899629 RMD160 1de7ff96d3b1fd8d89f3ef7b3bb9e35bedcc
DIST asterisk-1.2.40.tar.gz 29903514 RMD160 dc3da60756c82c98a055e49b068eb6760a01948e SHA1 4b4b794e858a3436bc35bdd2f4edf824c2885b68 SHA256 61dc745b12f6dc2998404e77747a964db56df8efae84a666c4ccddf016c9c06d
DIST asterisk-1.4.37.tar.gz 21666828 RMD160 0918c251f4f1045a65a3276afbbe78525cc09e74 SHA1 c56758e0e39970eacf2d1d081e960f44d4efdb0e SHA256 0168cc552eb5c3758a447d22c6d08a8cba0509b0be4036e253f895066facf3f6
DIST asterisk-1.6.2.14.tar.gz 23715262 RMD160 96024982e8e298c5ec61c5e3d6322a788060df51 SHA1 452b5b9200b9ac82679102516cb7cbf006c1bd9a SHA256 344fc0c4d0bb5488084aee7c2068b9efe21ec0fa183f41a4c3608e64fa38f332
-DIST asterisk-1.8.0.tar.gz 26035124 RMD160 b2892a5718618d8fbd88147b8fc0c278ecb6b4ed SHA1 9e39d6678a5c09f2a145f04e492d3aadb63e2006 SHA256 8f1edbc8fab23596a6f6ee2881d67c22b4a6cb20bfad84125fcdcb3ff2e1de1b
DIST asterisk-1.8.1.1.tar.gz 26198619 RMD160 a761369083f9b5789dd055ab7df678b1cce83287 SHA1 8499778d83a8f35ce5abbfe4680de1701dc10f7c SHA256 71016372d81dd6c0b2977b8994aa626afa8aa71a2379005fc8fe30625ceedafa
DIST gentoo-asterisk-patchset-0.1.tar.bz2 5394 RMD160 bfd546101c77f6e6989c406bfb202e592f9d16fd SHA1 e49b7784f987e027d833fbe8e0773acb1ef78521 SHA256 07c1bc6a29bda4fa98e7d1eb436d2e6eafc13263b774a0ff41698e523fa59a97
DIST gentoo-asterisk-patchset-0.2.tar.bz2 7398 RMD160 65b282fa621b3e65d293cd7e1d2f0af1e7837643 SHA1 71958e5108f225dda4e22a97a26a793e51f39283 SHA256 cff992cef307d73d336bf64ed56c32382a264e1b0eb468921a51d09c7f9d5861
@@ -49,14 +48,13 @@ EBUILD asterisk-1.2.37.ebuild 10738 RMD160 0f409319cb82c2c92cde0ab6436e44dd214c0
EBUILD asterisk-1.2.40.ebuild 10743 RMD160 f3db358e4776aef3dfb196f5e182f6f588030f60 SHA1 ae80355f7aa6e84c413f83c20028209e2908e3f9 SHA256 f67e2a7c507315feffdeb5950f9225c9edb038bb915f5402102dbd4da693c35d
EBUILD asterisk-1.4.37.ebuild 8182 RMD160 cba2a7b76e5e85af081628c93ce8bca08578b585 SHA1 865eb1c2338b82863c4a37c24afc74997251c9c5 SHA256 bb18a3f8e15aa66c1f8ec6171d7228a10d9a0e9a89fa5908fe008e2a5bb81ffd
EBUILD asterisk-1.6.2.14.ebuild 6450 RMD160 f53c065e0d5f5f89c14bcbf54f32e2016a4c3142 SHA1 e3bbafe31336381edfaef2278283ce8e9c6c8f34 SHA256 a62ebf9759f9083dbf23dd758bbcec14dc14a16ff6f1041fdc10ed84bfb74267
-EBUILD asterisk-1.8.0.ebuild 8206 RMD160 3120b6ff9de7a75fa78f7060eb47cbf5cc839af3 SHA1 04296cdd77a2d55a2fc15b2359f08b83be316b5e SHA256 e1d17452162bd0d97ef34686ada271bcba9751d60941990304c1060b03cccdc0
-EBUILD asterisk-1.8.1.1.ebuild 7719 RMD160 fd474abdbf6ac205d5f1ed8bfd40e1700b30aacf SHA1 d0218b502f4e4451c1a9bc41546cb288de5178bb SHA256 ebd79af48f11143b81b6402d5fb8fcfdf25a2631542aae1dce3911d31d485250
-MISC ChangeLog 67681 RMD160 ebae9e3273b4ff7704da7227f06a394ed12ca865 SHA1 585443eabe2800520761f350f552f55cc0ed6bc4 SHA256 48016e1f2bdae18e566237912397cf54c1a03f8ae943eefc7bd5c3f3aefa854e
-MISC metadata.xml 1773 RMD160 42bd30a0749acec6c954d6a12a63138876aa9e6c SHA1 1516741f8181e5fffa11222b29872110ac0d7928 SHA256 e5f6bae7a2ec088d102398005ffe5d409f38b698887c333a7c4afc9c30a1008e
+EBUILD asterisk-1.8.1.1-r1.ebuild 14456 RMD160 770470bbdc6fecf58ccd8b11e018ec46daba55c4 SHA1 a94c40fcd31513a21626d9d037567a90db0de7f4 SHA256 8b6c5042b4de5fb425a8aac6af14b8fbc20f7f12deccbe28a3bd7afae9735235
+MISC ChangeLog 68463 RMD160 5429115c1c74914cfc80899bd9dc0eb2992011f0 SHA1 d719482ec00571df4f2586338125382b84889921 SHA256 cdfede8819a203096862ae4a468e7104f287aaf6a0e32371be48b696000d3ca4
+MISC metadata.xml 1681 RMD160 fa822016d351dcf52f4b52226adcfa03a4b4e726 SHA1 3436530fb26d46b1d4ff9adba8d684b1e054de20 SHA256 d4199859f1f0eea8a81a895d98270344a0967a76592004b6fdf5ff77a053e824
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAk0cwSUACgkQp5vW4rUFj5pyPgCgiqI6YRHCm7VZEuz/mX78qwGR
-6pYAnAvrr4xt/f24TmmNLE84PlPzh7aV
-=2YVH
+iEYEARECAAYFAk0jWY0ACgkQp5vW4rUFj5p6CQCdFGkDWmXEz/SvFtKxq4O7Q06E
+XuYAoLxuMqkVL48//GDUf004GNr3YDQb
+=jntD
-----END PGP SIGNATURE-----
diff --git a/net-misc/asterisk/asterisk-1.8.0.ebuild b/net-misc/asterisk/asterisk-1.8.0.ebuild
deleted file mode 100644
index d2b705d3d10c..000000000000
--- a/net-misc/asterisk/asterisk-1.8.0.ebuild
+++ /dev/null
@@ -1,302 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.8.0.ebuild,v 1.2 2010/10/27 22:57:59 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/${MY_P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk h323 http iconv jabber jingle ldap logrotate lua keepsrc misdn mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex ssl sqlite sqlite3 srtp static syslog usb vorbis"
-
-RDEPEND="sys-libs/ncurses
- dev-libs/popt
- sys-libs/zlib
- dev-libs/libxml2
- 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 )
- h323? ( net-libs/openh323 )
- http? ( dev-libs/gmime:0 )
- iconv? ( virtual/libiconv )
- jabber? ( dev-libs/iksemel )
- jingle? ( dev-libs/iksemel )
- ldap? ( net-nds/openldap )
- lua? ( dev-lang/lua )
- misdn? ( net-dialup/misdnuser )
- mysql? ( dev-db/mysql )
- newt? ( dev-libs/newt )
- odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit
- dev-libs/openssl )
- 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 )
- ssl? ( dev-libs/openssl )
- syslog? ( app-admin/syslog-ng )
- usb? ( dev-libs/libusb
- media-libs/alsa-lib )
- 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}"
-
-PATCHES=(
- "${FILESDIR}/1.8.0/${P}-gsm-pic.patch"
- "${FILESDIR}/1.8.0/${P}-pri-missing-keyword.patch"
- "${FILESDIR}/1.8.0/${P}-inband-indications.patch"
- "${FILESDIR}/1.8.0/${P}-uclibc.patch"
- "${FILESDIR}/1.8.0/${P}-iax2-peerstate.patch"
- "${FILESDIR}/1.8.0/${P}-dahdiras-without-root.patch"
- "${FILESDIR}/1.8.0/${P}-pbxstart-failed-spurious-bye.patch"
- "${FILESDIR}/1.8.0/${P}-confbridge-menu-invocation.patch"
- "${FILESDIR}/1.8.0/${P}-alarm-receiver-use-playtones.patch"
-)
-
-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
-}
-
-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 ais openais) \
- $(use_with alsa asound) \
- $(use_with bluetooth) \
- $(use_with calendar neon) \
- $(use_with calendar neon29) \
- $(use_with calendar ical) \
- $(use_with calendar iksemel) \
- $(use_with caps cap) \
- $(use_with curl libcurl) \
- $(use_with dahdi pri) \
- $(use_with dahdi tonezone) \
- $(use_with dahdi) \
- $(use_with freetds tds) \
- $(use_with h323) \
- $(use_with http gmime) \
- $(use_with iconv) \
- $(use_with jabber iksemel) \
- $(use_with jingle iksemel) \
- $(use_with lua) \
- $(use_with misdn isdnnet) \
- $(use_with misdn suppserv) \
- $(use_with misdn) \
- $(use_with mysql mysqlclient) \
- $(use_with newt) \
- $(use_with osplookup osptk) \
- $(use_with oss) \
- $(use_with portaudio) \
- $(use_with postgres) \
- $(use_with radius) \
- $(use_with snmp netsnmp) \
- $(use_with span spandsp) \
- $(use_with speex) \
- $(use_with speex speexdsp) \
- $(use_with sqlite) \
- $(use_with sqlite3) \
- $(use_with srtp) \
- $(use_with ssl crypto) \
- $(use_with ssl) \
- $(use_with usb) \
- $(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
-
- # 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
- dodir /usr/src
-
- ebegin "Copying sources into /usr/src"
- cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources"
- eend $?
-
- ebegin "Cleaning source tree"
- emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources"
- eend $?
-
- einfo "Clean sources are available in "${ROOT}"usr/src/${PF}"
- fi
-
- # 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"
-
- # install logrotate snippet; bug #329281
- #
- if use logrotate
- then
- insinto /etc/logrotate.d
- newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk
- fi
-}
-
-pkg_preinst() {
- enewgroup asterisk
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
-}
-
-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
-}
diff --git a/net-misc/asterisk/asterisk-1.8.1.1-r1.ebuild b/net-misc/asterisk/asterisk-1.8.1.1-r1.ebuild
new file mode 100644
index 000000000000..446b9b46fe85
--- /dev/null
+++ b/net-misc/asterisk/asterisk-1.8.1.1-r1.ebuild
@@ -0,0 +1,437 @@
+# 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.8.1.1-r1.ebuild,v 1.1 2011/01/04 17:31:53 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/${MY_P}.tar.gz
+ mirror://gentoo/gentoo-asterisk-patchset-0.2.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk h323 http iconv jabber jingle ldap lua misdn mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex ssl sqlite sqlite3 srtp static syslog usb vorbis"
+
+EPATCH_SUFFIX="patch"
+PATCHES=( "${WORKDIR}/asterisk-patchset" )
+
+RDEPEND="sys-libs/ncurses
+ dev-libs/popt
+ sys-libs/zlib
+ dev-libs/libxml2
+ 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 )
+ h323? ( net-libs/openh323 )
+ http? ( dev-libs/gmime:0 )
+ iconv? ( virtual/libiconv )
+ jabber? ( dev-libs/iksemel )
+ jingle? ( dev-libs/iksemel )
+ ldap? ( net-nds/openldap )
+ lua? ( dev-lang/lua )
+ misdn? ( net-dialup/misdnuser )
+ mysql? ( dev-db/mysql )
+ newt? ( dev-libs/newt )
+ odbc? ( dev-db/unixODBC )
+ osplookup? ( net-libs/osptoolkit
+ dev-libs/openssl )
+ 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 )
+ ssl? ( dev-libs/openssl )
+ syslog? ( app-admin/syslog-ng )
+ usb? ( dev-libs/libusb
+ media-libs/alsa-lib )
+ vorbis? ( media-libs/libvorbis )"
+
+DEPEND="${RDEPEND}
+ !net-misc/asterisk-addons
+ !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
+}
+
+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 caps cap) \
+ $(use_with http gmime) \
+ $(use_with newt) \
+ $(use_with portaudio) \
+ $(use_with ssl crypto) \
+ $(use_with ssl)
+
+ #
+ # 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
+ if use ais; then
+ menuselect/menuselect --enable res_ais menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_ais menuselect.makeopts
+ fi
+ if use alsa; then
+ menuselect/menuselect --enable chan_alsa menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_alsa menuselect.makeopts
+ fi
+ if use bluetooth; then
+ menuselect/menuselect --enable chan_mobile menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_mobile menuselect.makeopts
+ fi
+ if use calendar; then
+ menuselect/menuselect --enable res_calendar menuselect.makeopts
+ menuselect/menuselect --enable res_calendar_caldav menuselect.makeopts
+ menuselect/menuselect --enable res_calendar_ews menuselect.makeopts
+ menuselect/menuselect --enable res_calendar_exchange menuselect.makeopts
+ menuselect/menuselect --enable res_calendar_icalendar menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_calendar menuselect.makeopts
+ menuselect/menuselect --disable res_calendar_caldav menuselect.makeopts
+ menuselect/menuselect --disable res_calendar_ews menuselect.makeopts
+ menuselect/menuselect --disable res_calendar_exchange menuselect.makeopts
+ menuselect/menuselect --disable res_calendar_icalendar menuselect.makeopts
+ fi
+ if use curl; then
+ menuselect/menuselect --enable func_curl menuselect.makeopts
+ menuselect/menuselect --enable res_config_curl menuselect.makeopts
+ menuselect/menuselect --enable res_curl menuselect.makeopts
+ else
+ menuselect/menuselect --disable func_curl menuselect.makeopts
+ menuselect/menuselect --disable res_config_curl menuselect.makeopts
+ menuselect/menuselect --disable res_curl menuselect.makeopts
+ fi
+ if use dahdi; then
+ menuselect/menuselect --enable app_dahdibarge menuselect.makeopts
+ menuselect/menuselect --enable app_dahdiras menuselect.makeopts
+ menuselect/menuselect --enable chan_dahdi menuselect.makeopts
+ menuselect/menuselect --enable codec_dahdi menuselect.makeopts
+ menuselect/menuselect --enable res_timing_dahdi menuselect.makeopts
+ else
+ menuselect/menuselect --disable app_dahdibarge menuselect.makeopts
+ menuselect/menuselect --disable app_dahdiras menuselect.makeopts
+ menuselect/menuselect --disable chan_dahdi menuselect.makeopts
+ menuselect/menuselect --disable codec_dahdi menuselect.makeopts
+ menuselect/menuselect --disable res_timing_dahdi menuselect.makeopts
+ fi
+ if use freetds; then
+ menuselect/menuselect --enable cdr_tds menuselect.makeopts
+ menuselect/menuselect --enable cel_tds menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_tds menuselect.makeopts
+ menuselect/menuselect --disable cel_tds menuselect.makeopts
+ fi
+ if use gtalk; then
+ menuselect/menuselect --enable chan_gtalk menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_gtalk menuselect.makeopts
+ fi
+ if use h323; then
+ menuselect/menuselect --enable chan_ooh323 menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_ooh323 menuselect.makeopts
+ fi
+ if use http; then
+ menuselect/menuselect --enable res_http_post menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_http_post menuselect.makeopts
+ fi
+ if use iconv; then
+ menuselect/menuselect --enable func_iconv menuselect.makeopts
+ else
+ menuselect/menuselect --disable func_iconv menuselect.makeopts
+ fi
+ if use jabber; then
+ menuselect/menuselect --enable res_jabber menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_jabber menuselect.makeopts
+ fi
+ if use jingle; then
+ menuselect/menuselect --enable chan_jingle menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_jingle menuselect.makeopts
+ fi
+ if use ldap; then
+ menuselect/menuselect --enable res_config_ldap menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_config_ldap menuselect.makeopts
+ fi
+ if use lua; then
+ menuselect/menuselect --enable pbx_lua menuselect.makeopts
+ else
+ menuselect/menuselect --disable pbx_lua menuselect.makeopts
+ fi
+ if use misdn; then
+ menuselect/menuselect --enable chan_misdn menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_misdn menuselect.makeopts
+ fi
+ if use mysql; then
+ menuselect/menuselect --enable app_mysql menuselect.makeopts
+ menuselect/menuselect --enable cdr_mysql menuselect.makeopts
+ menuselect/menuselect --enable res_config_mysql menuselect.makeopts
+ else
+ menuselect/menuselect --disable app_mysql menuselect.makeopts
+ menuselect/menuselect --disable cdr_mysql menuselect.makeopts
+ menuselect/menuselect --disable res_config_mysql menuselect.makeopts
+ fi
+ if use odbc; then
+ menuselect/menuselect --enable cdr_adaptive_odbc menuselect.makeopts
+ menuselect/menuselect --enable cdr_odbc menuselect.makeopts
+ menuselect/menuselect --enable cel_odbc menuselect.makeopts
+ menuselect/menuselect --enable func_odbc menuselect.makeopts
+ menuselect/menuselect --enable res_config_odbc menuselect.makeopts
+ menuselect/menuselect --enable res_odbc menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_adaptive_odbc menuselect.makeopts
+ menuselect/menuselect --disable cdr_odbc menuselect.makeopts
+ menuselect/menuselect --disable cel_odbc menuselect.makeopts
+ menuselect/menuselect --disable func_odbc menuselect.makeopts
+ menuselect/menuselect --disable res_config_odbc menuselect.makeopts
+ menuselect/menuselect --disable res_odbc menuselect.makeopts
+ fi
+ if use osplookup; then
+ menuselect/menuselect --enable app_osplookup menuselect.makeopts
+ else
+ menuselect/menuselect --disable app_osplookup menuselect.makeopts
+ fi
+ if use oss; then
+ menuselect/menuselect --enable chan_oss menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_oss menuselect.makeopts
+ fi
+ if use postgres; then
+ menuselect/menuselect --enable cdr_pgsql menuselect.makeopts
+ menuselect/menuselect --enable cel_pgsql menuselect.makeopts
+ menuselect/menuselect --enable res_config_pgsql menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_pgsql menuselect.makeopts
+ menuselect/menuselect --disable cel_pgsql menuselect.makeopts
+ menuselect/menuselect --disable res_config_pgsql menuselect.makeopts
+ fi
+ if use radius; then
+ menuselect/menuselect --enable cdr_radius menuselect.makeopts
+ menuselect/menuselect --enable cel_radius menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_radius menuselect.makeopts
+ menuselect/menuselect --disable cel_radius menuselect.makeopts
+ fi
+ if use snmp; then
+ menuselect/menuselect --enable res_snmp menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_snmp menuselect.makeopts
+ fi
+ if use span; then
+ menuselect/menuselect --enable res_fax_spandsp menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_fax_spandsp menuselect.makeopts
+ fi
+ if use speex; then
+ menuselect/menuselect --enable codec_speex menuselect.makeopts
+ menuselect/menuselect --enable func_speex menuselect.makeopts
+ else
+ menuselect/menuselect --disable codec_speex menuselect.makeopts
+ menuselect/menuselect --disable func_speex menuselect.makeopts
+ fi
+ if use sqlite; then
+ menuselect/menuselect --enable cdr_sqlite menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_sqlite menuselect.makeopts
+ fi
+ if use sqlite3; then
+ menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts
+ menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_sqlite3_custom menuselect.makeopts
+ menuselect/menuselect --disable cel_sqlite3_custom menuselect.makeopts
+ fi
+ if use srtp; then
+ menuselect/menuselect --enable res_srtp menuselect.makeopts
+ else
+ menuselect/menuselect --disable res_srtp menuselect.makeopts
+ fi
+ if use syslog; then
+ menuselect/menuselect --enable cdr_syslog menuselect.makeopts
+ else
+ menuselect/menuselect --disable cdr_syslog menuselect.makeopts
+ fi
+ if use usb; then
+ menuselect/menuselect --enable chan_usbradio menuselect.makeopts
+ else
+ menuselect/menuselect --disable chan_usbradio menuselect.makeopts
+ fi
+ if use vorbis; then
+ menuselect/menuselect --enable format_ogg_vorbis menuselect.makeopts
+ else
+ menuselect/menuselect --disable format_ogg_vorbis menuselect.makeopts
+ fi
+}
+
+src_compile() {
+ ASTLDFLAGS="${LDFLAGS}" emake || die "emake failed"
+}
+
+src_install() {
+ # setup directory structure
+ #
+ mkdir -p "${D}"usr/sbin
+ mkdir -p "${D}"usr/$(get_libdir)/pkgconfig
+ mkdir -p "${D}"usr/$(get_libdir)/asterisk/modules
+
+ 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 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"
+
+ # install logrotate snippet; bug #329281
+ #
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk
+}
+
+pkg_preinst() {
+ enewgroup asterisk
+ enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
+}
+
+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
+}
diff --git a/net-misc/asterisk/asterisk-1.8.1.1.ebuild b/net-misc/asterisk/asterisk-1.8.1.1.ebuild
deleted file mode 100644
index 1236cd09c21f..000000000000
--- a/net-misc/asterisk/asterisk-1.8.1.1.ebuild
+++ /dev/null
@@ -1,286 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.8.1.1.ebuild,v 1.1 2010/12/30 17:18:02 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/${MY_P}.tar.gz
- mirror://gentoo/gentoo-asterisk-patchset-0.2.tar.bz2"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="ais alsa bluetooth calendar +caps curl dahdi debug doc freetds gtalk h323 http iconv jabber jingle ldap logrotate lua keepsrc misdn mysql newt +samples odbc osplookup oss portaudio postgres radius snmp span speex ssl sqlite sqlite3 srtp static syslog usb vorbis"
-
-EPATCH_SUFFIX="patch"
-PATCHES=( "${WORKDIR}/asterisk-patchset" )
-
-RDEPEND="sys-libs/ncurses
- dev-libs/popt
- sys-libs/zlib
- dev-libs/libxml2
- 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 )
- h323? ( net-libs/openh323 )
- http? ( dev-libs/gmime:0 )
- iconv? ( virtual/libiconv )
- jabber? ( dev-libs/iksemel )
- jingle? ( dev-libs/iksemel )
- ldap? ( net-nds/openldap )
- lua? ( dev-lang/lua )
- misdn? ( net-dialup/misdnuser )
- mysql? ( dev-db/mysql )
- newt? ( dev-libs/newt )
- odbc? ( dev-db/unixODBC )
- osplookup? ( net-libs/osptoolkit
- dev-libs/openssl )
- 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 )
- ssl? ( dev-libs/openssl )
- syslog? ( app-admin/syslog-ng )
- usb? ( dev-libs/libusb
- media-libs/alsa-lib )
- 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
-}
-
-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 ais openais) \
- $(use_with alsa asound) \
- $(use_with bluetooth) \
- $(use_with calendar neon) \
- $(use_with calendar neon29) \
- $(use_with calendar ical) \
- $(use_with calendar iksemel) \
- $(use_with caps cap) \
- $(use_with curl libcurl) \
- $(use_with dahdi pri) \
- $(use_with dahdi tonezone) \
- $(use_with dahdi) \
- $(use_with freetds tds) \
- $(use_with h323) \
- $(use_with http gmime) \
- $(use_with iconv) \
- $(use_with jabber iksemel) \
- $(use_with jingle iksemel) \
- $(use_with lua) \
- $(use_with misdn isdnnet) \
- $(use_with misdn suppserv) \
- $(use_with misdn) \
- $(use_with mysql mysqlclient) \
- $(use_with newt) \
- $(use_with osplookup osptk) \
- $(use_with oss) \
- $(use_with portaudio) \
- $(use_with postgres) \
- $(use_with radius) \
- $(use_with snmp netsnmp) \
- $(use_with span spandsp) \
- $(use_with speex) \
- $(use_with speex speexdsp) \
- $(use_with sqlite) \
- $(use_with sqlite3) \
- $(use_with srtp) \
- $(use_with ssl crypto) \
- $(use_with ssl) \
- $(use_with usb) \
- $(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
-
- # 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
- dodir /usr/src
-
- ebegin "Copying sources into /usr/src"
- cp -dPR "${S}" "${D}"/usr/src/${PF} || die "Unable to copy sources"
- eend $?
-
- ebegin "Cleaning source tree"
- emake -C "${D}"/usr/src/${PF} clean &>/dev/null || die "Unable to clean sources"
- eend $?
-
- einfo "Clean sources are available in "${ROOT}"usr/src/${PF}"
- fi
-
- # 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 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"
-
- # install logrotate snippet; bug #329281
- #
- if use logrotate
- then
- insinto /etc/logrotate.d
- newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk
- fi
-}
-
-pkg_preinst() {
- enewgroup asterisk
- enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout"
-}
-
-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
-}
diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml
index 0d99eaee9f3a..7605c397bb85 100644
--- a/net-misc/asterisk/metadata.xml
+++ b/net-misc/asterisk/metadata.xml
@@ -18,7 +18,6 @@
<flag name="dahdi">Support Digium compatible hardware (formerly known as Zaptel).</flag>
<flag name="span">Enable support for the spandsp codec</flag>
<flag name="samples">Install sample sound and configuration files (default: on)</flag>
- <flag name="logrotate">Install a configuration snippet for the logrotate cronjob</flag>
<flag name="srtp">Enable support for encrypted voice transmission (secure RTP)</flag>
<flag name="gtalk">Enable support for Google Talk services</flag>
<flag name="h323">Enable support for the H323 telephony protocol</flag>