From e1618bf66791c954ae72bcb90fcbb78ce4398914 Mon Sep 17 00:00:00 2001 From: Rambaldi Date: Tue, 2 Dec 2008 21:47:36 +0000 Subject: net-misc/asterisk-addons-1.6.0.1: version bump svn path=/trunk/; revision=736 --- net-misc/asterisk-addons/ChangeLog | 4 + net-misc/asterisk-addons/Manifest | 6 +- .../asterisk-addons/asterisk-addons-1.6.0.1.ebuild | 197 +++++++++++++++++++++ .../asterisk-addons/asterisk-addons-1.6.0.ebuild | 196 -------------------- 4 files changed, 204 insertions(+), 199 deletions(-) create mode 100644 net-misc/asterisk-addons/asterisk-addons-1.6.0.1.ebuild delete mode 100644 net-misc/asterisk-addons/asterisk-addons-1.6.0.ebuild (limited to 'net-misc') diff --git a/net-misc/asterisk-addons/ChangeLog b/net-misc/asterisk-addons/ChangeLog index bdf6ac8..27fdcd0 100644 --- a/net-misc/asterisk-addons/ChangeLog +++ b/net-misc/asterisk-addons/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 02 Dec 2008; Rambaldi ++, + -asterisk-addons-1.6.0.ebuild: + net-misc/asterisk-addons-1.6.0.1: version bump + 06 Oct 2008; Rambaldi asterisk-addons-1.6.0.ebuild: net-misc/asterisk-addons-1.6.0: added ~amd64 and ~x86 keywords diff --git a/net-misc/asterisk-addons/Manifest b/net-misc/asterisk-addons/Manifest index efc639a..d176c15 100644 --- a/net-misc/asterisk-addons/Manifest +++ b/net-misc/asterisk-addons/Manifest @@ -1,6 +1,6 @@ DIST asterisk-addons-1.4.7.tar.gz 799192 RMD160 7883594b468a128af760c53bf8f00cd4b4efff8c SHA1 69dc187d4e1a13b96890dec38c719b6dacec10ef SHA256 56c4e68efbe1269e50ba1db30c5a7cd3798b849a04eab814fa592d61114abf5b -DIST asterisk-addons-1.6.0.tar.gz 845685 RMD160 05faa324903c556bf44ae878c665f1c0da7cfe0c SHA1 3f74daf757dc87e5d7cff4a5442f9c9e951cfd3b SHA256 2361695044f4a066751c82ee543ec2b1eb565b8cec430893b417816716556360 +DIST asterisk-addons-1.6.0.1.tar.gz 846856 RMD160 86f057d7c46467d3b353c2e53e03fc8afa2f238a SHA1 42676801e2413276be5b5d55244755d83af6bf8a SHA256 82970f39075e267b51932d482a8535d77ce91d656bd100b5542ed30970cf7447 EBUILD asterisk-addons-1.4.7.ebuild 4615 RMD160 2372f84f2e3ccccbaef29bb4a0888aac7da2384c SHA1 47c20f51a01209ed6601cd082a0012556afa98a0 SHA256 a5b5496de6bf8698234feeaa5cf8eb2564515dbdded25069ff2484c887a95bd5 -EBUILD asterisk-addons-1.6.0.ebuild 4714 RMD160 f2c562091a3ec00a0916def2ca8290fb55ec7b35 SHA1 b1dd47fad63439f29cf940f3b956354454eeef9a SHA256 6b6d637e789a47b3a8b0b2b92609db69ee7ade64a80cdd23b224282cd82a32a3 -MISC ChangeLog 1759 RMD160 70ad0b38c2d431c3783cdb8966bca777b86526e1 SHA1 5e4c7d261e5abdf4607666673f2ca1a2031dcfb0 SHA256 b1c33e44901055af80afd6019c2089fe5c8c88a8254c03f04867c6a1d5c7bd95 +EBUILD asterisk-addons-1.6.0.1.ebuild 4788 RMD160 6f5de44bba5c66397301be5cb58b2fc302d1d0c1 SHA1 b3de412bf420b8900cb276e35ae625b1680bf09a SHA256 0df8135eb55e2f72985125381682422579ec880dd3ce3aa236a84e2f1e636633 +MISC ChangeLog 1891 RMD160 2ee4e2ee0bca75bafffac85b32a905b07dca5d86 SHA1 158a7b7433f16f09cdcb9bb805eb823878222ddd SHA256 5ba93f6f3f3036e73fa94c5bff4e2ec4a53ed510a4e6000f77313395528eddc7 MISC metadata.xml 157 RMD160 cb900ea8bf389b8f6147746711462b5757752b16 SHA1 bbbbd897cfe8d8bac785b23bead8e185871055bd SHA256 6759dc127ff53f85505b9b455ba325e65015b694b1ec50eb99ddfc8903b967bf diff --git a/net-misc/asterisk-addons/asterisk-addons-1.6.0.1.ebuild b/net-misc/asterisk-addons/asterisk-addons-1.6.0.1.ebuild new file mode 100644 index 0000000..66ddf4c --- /dev/null +++ b/net-misc/asterisk-addons/asterisk-addons-1.6.0.1.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.5.ebuild,v 1.1 2007/01/17 18:55:23 gustavoz Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +inherit eutils flag-o-matic autotools + +IUSE="elibc_uclibc +mysql h323 mp3 mobile fax debug" + +MY_P="${P/_/-}" + +DESCRIPTION="Additional Plugins for Asterisk" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="http://downloads.digium.com/pub/asterisk/releases/${MY_P}.tar.gz" + +S=${WORKDIR}/${MY_P} + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=net-misc/asterisk-1.6.0 + mysql? ( virtual/mysql ) + fax? ( >=media-libs/spandsp-0.0.3_pre26 ) + mobile? ( net-wireless/bluez-libs )" + + +get_available_modules() { + local modules mod x + + # build list of available modules... + for x in app cdr codec format func pbx res chan; do + + for mod in $(find "${S}" -type f -name "${x}_*.c*" -print) + do + modules="${modules} $(basename ${mod/%.c*})" + done + done + + echo "${modules}" +} + +pkg_setup() { + local n dosleep=0 + einfo "Running pre-flight checks..." + + if use h323 && built_with_use net-misc/asterisk h323; then + echo + ewarn "h323: Emerging ${PN} with the h323 flag enabled will overwrite asterisk's chan_h323.so!" + ewarn "h323: Be sure to upgrade \"${ROOT}\"etc/asterisk/h323.conf afterwards!" + dosleep=1 + fi + + echo + if [[ $dosleep -gt 0 ]]; then + ebeep 10 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + econf \ + $(use_with mobile bluetooth) || die "econf failed" +} + +src_compile() { + local modules + + append-flags -fPIC + + # build MODULE_LIST + # + if ! use mysql; then + modules="${modules} app_addon_sql_mysql cdr_mysql cdr_addon_mysql res_mysql res_config_mysql" + fi + + if ! use mp3 ; then + modules="${modules} format_mp3" + fi + + if ! use h323 ; then + modules="${modules} chan_ooh323" + fi + + if ! use fax ; then + modules="${modules} app_fax" + fi + + if ! use mobile ; then + modules="${modules} chan_mobile" + fi + + einfo "available modules $(get_available_modules)" + einfo " skipping modules ${modules}" + + # run menuselect to evaluate the list of modules + # and rewrite the list afterwards + # + if [[ -n "${modules}" ]] + then + local mod category tmp_list failed_list + + ### + # run menuselect + + emake menuselect.makeopts || die "emake menuselect.makeopts failed" + + ### + # get list of modules with failed dependencies + + failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)" + + ### + # traverse our list of modules + einfo "Building menuselect.makeopts..." + + for category in app cdr codec format func pbx res chan channels; do + tmp_list="" + + # search list of modules for matching ones first... + for mod in ${modules}; do + # module is from current category? + if [[ "${mod/%_*}" = "${category}" ]] + then + # check menuselect thinks the dependencies are met + if has ${mod} ${failed_list} + then + eerror "${mod}: dependencies required to build this module are not met, NOT BUILDING!" + else + tmp_list="${tmp_list} ${mod}" + fi + fi + done + + use debug && echo "${category} tmp: ${tmp_list}" + + # replace the module list for $category with our custom one + if [[ -n "${tmp_list}" ]] + then + category="$(echo ${category} | tr '[:lower:]' '[:upper:]')" + sed -i -e "s:^\(MENUSELECT_${category}.*=\):\1 ${tmp_list} :" \ + menuselect.makeopts || die "failed to set list of ${category} applications" + fi + done + fi + + emake -j1 OPTIMIZE="${CFLAGS}" || die "Make failed" +} + +src_install() { + mkdir -p "${D}"/usr/lib/asterisk/modules + emake DESTDIR="${D}" install || die "Make install failed" + + # install standard docs... + dodoc README UPGRADE.txt + dodoc doc/* + + insinto /usr/share/doc/${PF} + doins configs/*.sample + + if use h323; then + insinto /etc/asterisk + newins configs/ooh323.conf.sample ooh323.conf + fi + + if use mysql; then + insinto /etc/asterisk + newins configs/cdr_mysql.conf.sample cdr_mysql.conf + newins configs/res_mysql.conf.sample res_mysql.conf + fi + if use mobile; then + insinto /etc/asterisk + newins configs/mobile.conf.sample mobile.conf + fi + + einfo "Fixing permissions" + fowners -R root:asterisk /etc/asterisk + fperms -R u=rwX,g=rX,o= /etc/asterisk +} + +pkg_postinst() { + # + # Announcements, warnings, reminders... + # + einfo "********* Some notes from the asterisk-addons-1.6.0 readme: **********" + echo + ewarn "\"Using res_config_mysql at the same time as res_config_odbc can create" + ewarn "system instability on some systems. Please load only one or the other.\"" + echo + ewarn "\"format_mp3 can cause Asterisk to crash on certain mp3 files (notably" + ewarn "8k files made with lame) due to bugs in mpglib. If you must use this" + ewarn "module, use it only with mp3's you know will work with it.\"" +} diff --git a/net-misc/asterisk-addons/asterisk-addons-1.6.0.ebuild b/net-misc/asterisk-addons/asterisk-addons-1.6.0.ebuild deleted file mode 100644 index fbf8c91..0000000 --- a/net-misc/asterisk-addons/asterisk-addons-1.6.0.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.5.ebuild,v 1.1 2007/01/17 18:55:23 gustavoz Exp $ - -WANT_AUTOCONF="latest" -WANT_AUTOMAKE="latest" - -inherit eutils flag-o-matic autotools - -IUSE="elibc_uclibc +mysql h323 mp3 mobile fax debug" - -MY_P="${P/_/-}" - -DESCRIPTION="Additional Plugins for Asterisk" -HOMEPAGE="http://www.asterisk.org/" -SRC_URI="http://ftp.digium.com/pub/asterisk/${MY_P}.tar.gz" - -S=${WORKDIR}/${MY_P} - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" - -DEPEND=">=net-misc/asterisk-1.6.0_beta1 - mysql? ( virtual/mysql ) - fax? ( >=media-libs/spandsp-0.0.3_pre26 ) - mobile? ( net-wireless/bluez-libs )" - - -get_available_modules() { - local modules mod x - - # build list of available modules... - for x in app cdr codec format func pbx res chan; do - - for mod in $(find "${S}" -type f -name "${x}_*.c*" -print) - do - modules="${modules} $(basename ${mod/%.c*})" - done - done - - echo "${modules}" -} - -pkg_setup() { - local n dosleep=0 - einfo "Running pre-flight checks..." - - if use h323 && built_with_use net-misc/asterisk h323; then - echo - ewarn "h323: Emerging ${PN} with the h323 flag enabled will overwrite asterisk's chan_h323.so!" - ewarn "h323: Be sure to upgrade \"${ROOT}\"etc/asterisk/h323.conf afterwards!" - dosleep=1 - fi - - echo - if [[ $dosleep -gt 0 ]]; then - ebeep 10 - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - econf -} - -src_compile() { - local modules - - append-flags -fPIC - - # build MODULE_LIST - # - if ! use mysql; then - modules="${modules} app_addon_sql_mysql cdr_mysql cdr_addon_mysql res_mysql res_config_mysql" - fi - - if ! use mp3 ; then - modules="${modules} format_mp3" - fi - - if ! use h323 ; then - modules="${modules} chan_ooh323" - fi - - if ! use fax ; then - modules="${modules} app_fax" - fi - - if ! use mobile ; then - modules="${modules} chan_mobile" - fi - - einfo "available modules $(get_available_modules)" - einfo " skipping modules ${modules}" - - # run menuselect to evaluate the list of modules - # and rewrite the list afterwards - # - if [[ -n "${modules}" ]] - then - local mod category tmp_list failed_list - - ### - # run menuselect - - emake menuselect.makeopts || die "emake menuselect.makeopts failed" - - ### - # get list of modules with failed dependencies - - failed_list="$(awk -F= '/^MENUSELECT_DEPSFAILED=/{ print $3 }' menuselect.makeopts)" - - ### - # traverse our list of modules - einfo "Building menuselect.makeopts..." - - for category in app cdr codec format func pbx res chan; do - tmp_list="" - - # search list of modules for matching ones first... - for mod in ${modules}; do - # module is from current category? - if [[ "${mod/%_*}" = "${category}" ]] - then - # check menuselect thinks the dependencies are met - if has ${mod} ${failed_list} - then - eerror "${mod}: dependencies required to build this module are not met, NOT BUILDING!" - else - tmp_list="${tmp_list} ${mod}" - fi - fi - done - - use debug && echo "${category} tmp: ${tmp_list}" - - # replace the module list for $category with our custom one - if [[ -n "${tmp_list}" ]] - then - category="$(echo ${category} | tr '[:lower:]' '[:upper:]')" - sed -i -e "s:^\(MENUSELECT_${category}.*=\):\1 ${tmp_list}:" \ - menuselect.makeopts || die "failed to set list of ${category} applications" - fi - done - fi - - emake -j1 OPTIMIZE="${CFLAGS}" || die "Make failed" -} - -src_install() { - mkdir -p "${D}"/usr/lib/asterisk/modules - emake DESTDIR="${D}" install || die "Make install failed" - - # install standard docs... - dodoc README UPGRADE.txt - dodoc doc/* - - insinto /usr/share/doc/${PF} - doins configs/*.sample - - if use h323; then - insinto /etc/asterisk - newins configs/ooh323.conf.sample ooh323.conf - fi - - if use mysql; then - insinto /etc/asterisk - newins configs/cdr_mysql.conf.sample cdr_mysql.conf - newins configs/res_mysql.conf.sample res_mysql.conf - fi - if use mobile; then - insinto /etc/asterisk - newins configs/mobile.conf.sample mobile.conf - fi - - einfo "Fixing permissions" - fowners -R root:asterisk /etc/asterisk - fperms -R u=rwX,g=rX,o= /etc/asterisk -} - -pkg_postinst() { - # - # Announcements, warnings, reminders... - # - einfo "********* Some notes from the asterisk-addons-1.6.0 readme: **********" - echo - ewarn "\"Using res_config_mysql at the same time as res_config_odbc can create" - ewarn "system instability on some systems. Please load only one or the other.\"" - echo - ewarn "\"format_mp3 can cause Asterisk to crash on certain mp3 files (notably" - ewarn "8k files made with lame) due to bugs in mpglib. If you must use this" - ewarn "module, use it only with mp3's you know will work with it.\"" -} -- cgit v1.2.3-65-gdbad