diff options
author | Chris Bainbridge <chrb@gentoo.org> | 2005-01-28 15:59:20 +0000 |
---|---|---|
committer | Chris Bainbridge <chrb@gentoo.org> | 2005-01-28 15:59:20 +0000 |
commit | abbcfd015d1a84b18222073441057b42f2d8771b (patch) | |
tree | 3bd05dba222e6f47700cd6a2d18786053a2e6454 /net-misc/asterisk | |
parent | fix -gnome -kde bug # (diff) | |
download | historical-abbcfd015d1a84b18222073441057b42f2d8771b.tar.gz historical-abbcfd015d1a84b18222073441057b42f2d8771b.tar.bz2 historical-abbcfd015d1a84b18222073441057b42f2d8771b.zip |
Version bump and CFLAGS fixes.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/asterisk/Manifest | 4 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.0.5.ebuild | 232 | ||||
-rw-r--r-- | net-misc/asterisk/files/digest-asterisk-1.0.5 | 3 |
4 files changed, 244 insertions, 2 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index cb12b4de914c..5ca5ceb00eb2 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/asterisk # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.32 2005/01/28 13:53:38 chrb Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.33 2005/01/28 15:59:20 chrb Exp $ + +*asterisk-1.0.5 (28 Jan 2005) + + 28 Jan 2005; Chris Bainbridge <chrb@gentoo.org> +asterisk-1.0.5.ebuild: + Version bump and CFLAGS fixes. *asterisk-1.0.3-r1 (28 Jan 2005) diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index 27762feb26d8..7a7d09911111 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -1,4 +1,4 @@ -MD5 a8a704c94bf70800abfb00d4735e7403 ChangeLog 5347 +MD5 e32714325d4d0cff0fa55ee21c770262 ChangeLog 5486 MD5 59c5df3bcdb1203968dcfdb99663a2b4 asterisk-1.0.3-r1.ebuild 5854 MD5 b551ce4bb8eb4a03cb0e551c279ab02c asterisk-0.9.0.ebuild 3161 MD5 6201814863e121c6cae9a8209b0b9a27 asterisk-1.0.0.ebuild 3394 @@ -6,12 +6,14 @@ MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248 MD5 c870e11d5cfc72f46a1290e769a491cc asterisk-1.0.1.ebuild 5576 MD5 465f444622b40abb34bbb311b571ed24 asterisk-1.0.2.ebuild 5585 MD5 f8f67a69a71f0aae7b7a663746efef29 asterisk-1.0.3.ebuild 5834 +MD5 b724faa72660e83a70f8e3bdd2e669dc asterisk-1.0.5.ebuild 6303 MD5 4fa7ca8f47238dee3484dae5fb8f294c files/digest-asterisk-1.0.3 213 MD5 0243bdde80a5b8433cf93c306458dfd8 files/digest-asterisk-0.9.0 67 MD5 1bb1cf45f134eeae6adcc7dc17b6b5db files/digest-asterisk-1.0.0 141 MD5 b97c969a083704e6f8c8c9b07d56db3b files/digest-asterisk-1.0.1 213 MD5 5474694f8ec88752718f88d84e587468 files/digest-asterisk-1.0.2 213 MD5 4fa7ca8f47238dee3484dae5fb8f294c files/digest-asterisk-1.0.3-r1 213 +MD5 08f910cf85384f1d08c01a439cb3634e files/digest-asterisk-1.0.5 213 MD5 5b7ebf09c4c7988bd16cadaaad08d8f6 files/0.9.0/asterisk.confd 290 MD5 5109a8a08fdf97bb040710d8d54bce41 files/0.9.0/asterisk.rc6 455 MD5 85e291d6eb70a24fdc82469ed53bfe54 files/1.0.0/asterisk.confd 283 diff --git a/net-misc/asterisk/asterisk-1.0.5.ebuild b/net-misc/asterisk/asterisk-1.0.5.ebuild new file mode 100644 index 000000000000..ab7c7997ffab --- /dev/null +++ b/net-misc/asterisk/asterisk-1.0.5.ebuild @@ -0,0 +1,232 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.5.ebuild,v 1.1 2005/01/28 15:59:20 chrb Exp $ + +IUSE="alsa doc gtk mmx mysql pri zaptel uclibc resperl debug" + +inherit eutils + +DESCRIPTION="Asterisk: A Modular Open Source PBX System" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="ftp://ftp.asterisk.org/pub/telephony/asterisk/${P}.tar.gz + ftp://ftp.asterisk.org/pub/telephony/asterisk/${PN}-addons-1.0.4.tar.gz + ftp://ftp.asterisk.org/pub/telephony/asterisk/${PN}-sounds-1.0.1.tar.gz" + +S=${WORKDIR}/${P} +S_ADDONS=${WORKDIR}/${PN}-addons-1.0.4 +S_SOUNDS=${WORKDIR}/${PN}-sounds-1.0.1 + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="dev-libs/newt + media-sound/mpg123 + media-sound/sox + doc? ( app-doc/doxygen ) + gtk? ( =x11-libs/gtk+-1.2* ) + pri? ( >=net-libs/libpri-1.0.3 ) + alsa? ( media-libs/alsa-lib ) + mysql? ( dev-db/mysql ) + uclibc? ( sys-libs/uclibc ) + zaptel? ( >=net-misc/zaptel-1.0.3 ) + resperl? ( dev-lang/perl + >=net-misc/zaptel-1.0.3 )" + + +changes_message() { + ewarn "Important changes since 1.0.0:" + ewarn "" + ewarn "- Voicemail Webapp has been removed!" + ewarn " (files are in /usr/share/doc/${PF}/cgi/ if you really need them)" + ewarn "" + ewarn "- Zaptel and PRI support are now disabled by default (see emerge -pv asterisk)" + ewarn "" + ewarn "- Support for embedded perl in the extensions file has been added" + ewarn " (res_perl from asterisk-addons; \"resperl\" use-flag)" + ewarn "" + ewarn "- Should build with uclibc now (untested / experimental)" + ewarn "" +} + +pkg_setup() { + changes_message + ebeep + epause 10 + + einfo "Running some pre-flight checks..." + if use resperl; then + # res_perl pre-flight check... + if ! $(perl -V | grep -q "usemultiplicity=define"); then + eerror "Embedded perl add-on needs Perl with built-in threads support" + eerror "(rebuild perl with ithreads use-flag enabled)" + die "Perl w/o threads support..." + fi + einfo "Perl with ithreads support found" + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + + # set cflags & mmx optimization + sed -i -e "s:^\(OPTIMIZE+=\).*:\1 ${CFLAGS}:" Makefile + # asterisk wants to set -march itself + sed -i -e "s:^\(CFLAGS+=\$(shell if \$(CC)\):#\1:" Makefile + # gsm codec still uses -fomit-frame-pointer, and other codecs have their + # own flags. We only change the arch. + sed -i -e "s:^OPTIMIZE+=.*:OPTIMIZE+=${CFLAGS}:" codecs/gsm/Makefile + + if use mmx; then + einfo "enabling mmx optimization" + sed -i -e "s:^#\(K6OPT.*\):\1:" Makefile + fi + + if ! use debug; then + einfo "disabling debugging" + sed -i -e "s:^\(DEBUG=\):#\1:" Makefile + fi + + # change image path in voicemail cgi + sed -i -e "s:^\(\$astpath = \).*:\1 \"/asterisk\";:" contrib/scripts/vmail.cgi + + # + # embedded perl + # + if use resperl; then + einfo "Patching asterisk for embedded perl support..." + epatch ${S_ADDONS}/res_perl/astmake.diff + + # create necessary .c file + perl -MExtUtils::Embed -e xsinit || die "Could not create perlxsi.c" + + sed -i -e "s:/usr/local/bin/perl:/usr/bin/perl:" \ + ${S_ADDONS}/res_perl/Makefile \ + Makefile + sed -i -e "s:^ASTSRC.*:ASTSRC = ${S}:" \ + -e "s:\$(ASTLIBDIR)/modules/\(res_musiconhold.so\):${S}/res/\1:" \ + ${S_ADDONS}/res_perl/Makefile + +## needs more testing... +# # move perl stuff into /usr/lib/asterisk and symlink it +# # with /etc/asterisk/perl (solves config protection trouble) +# sed -i -e "s:\$(ASTETCDIR)/perl:\$(ASTLIBDIR)/perl:g" \ +# -e "s:\(mkdir \$(ASTLIBDIR)/perl \):\1; ln -s \$(subst \$(INSTALL_PREFIX),,\$(ASTLIBDIR))/perl \$(ASTETCDIR)/perl :" \ +# ${S_ADDONS}/res_perl/Makefile + fi + + # + # uclibc patch + # + if use uclibc; then + einfo "Patching asterisk for uclibc..." + epatch ${FILESDIR}/1.0.0/asterisk-uclibc-dns.diff + fi + + # + # other patches + # + + # + # asterisk add-ons + # + cd ${S_ADDONS} + sed -i -e "s:^OPTIMIZE+=.*:OPTIMIZE+=${CFLAGS}:" format_mp3/Makefile + sed -i -e "s:^\(CFLAGS=\)\(.*\):\1-I${S}/include \2:" format_mp3/Makefile + sed -i -e "s:-I../asterisk:-I${S} -I${S}/include:" Makefile +} + +src_compile() { + # build asterisk first... + einfo "Building Asterisk..." + cd ${S} + emake -j1 || die "Make failed" + + # + # add-ons + # + einfo "Building additional stuff..." + cd ${S_ADDONS} + emake -j1 || die "Make failed" + + if use resperl; then + cd ${S_ADDONS}/res_perl + emake -j1 || die "Building embedded perl failed" + fi +} + +src_install() { + emake -j1 DESTDIR=${D} install || die "Make install failed" + emake -j1 DESTDIR=${D} samples || die "Make install samples failed" + + # install addmailbox and astgenkey + dosbin contrib/scripts/addmailbox + dosbin contrib/scripts/astgenkey + + # documentation + use doc && \ + emake -j1 DESTDIR=${D} progdocs + + # install necessary files + dodir /etc/env.d + echo "LD_LIBRARY_PATH=\"/usr/lib/asterisk\"" > ${D}/etc/env.d/25asterisk + + exeinto /etc/init.d + newexe ${FILESDIR}/1.0.0/asterisk.rc6 asterisk + + insinto /etc/conf.d + newins ${FILESDIR}/1.0.0/asterisk.confd asterisk + + # don't delete these, even if they are empty + keepdir /var/spool/asterisk/voicemail/default/1234/INBOX + keepdir /var/log/asterisk/cdr-csv + + # install standard docs... + dodoc BUGS CREDITS LICENSE ChangeLog HARDWARE README README.fpm SECURITY + + docinto scripts + dodoc contrib/scripts/* + docinto firmware/iax + dodoc contrib/firmware/iax/* + + insinto /usr/share/doc/${PF}/cgi + doins contrib/scripts/vmail.cgi + for i in "images/*.gif"; do + doins $i + done + + # + # sounds + add-ons + # + + # install additional sounds... + einfo "Installing additional sounds..." + cd ${S_SOUNDS} + emake -j1 DESTDIR=${D} install || die "Make install failed" + + # install additional modules... + einfo "Installing additional modules..." + cd ${S_ADDONS} + emake -j1 INSTALL_PREFIX=${D} install || die "Make install failed" + + if use resperl; then + cd ${S_ADDONS}/res_perl + emake -j1 INSTALL_PREFIX=${D} install || die "Installation of perl AST_API failed" + fi +} + +pkg_postinst() { + einfo "Asterisk has been installed" + einfo "" + einfo "to add new Mailboxes use: /usr/sbin/addmailbox" + einfo "" + einfo "If you want to know more about asterisk, visit these sites:" + einfo "http://www.automated.it/guidetoasterisk.htm" + einfo "http://asterisk.xvoip.com/" + einfo "http://www.voip-info.org/wiki-Asterisk" + einfo "http://ns1.jnetdns.de/jn/relaunch/asterisk/" + echo + + changes_message +} diff --git a/net-misc/asterisk/files/digest-asterisk-1.0.5 b/net-misc/asterisk/files/digest-asterisk-1.0.5 new file mode 100644 index 000000000000..787b7a8c30fc --- /dev/null +++ b/net-misc/asterisk/files/digest-asterisk-1.0.5 @@ -0,0 +1,3 @@ +MD5 efabd43ac70ada3bdc97a57027c670a3 asterisk-1.0.5.tar.gz 9586778 +MD5 22e51b14b4712ad9179a085f9738ec08 asterisk-addons-1.0.4.tar.gz 73516 +MD5 2b7180a182a9122e88c734392e51556e asterisk-sounds-1.0.1.tar.gz 1702221 |