diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2004-05-10 01:41:14 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2004-05-10 01:41:14 +0000 |
commit | f2b814fce2e62ff2e37a91dcbcdec3a13bb91ea3 (patch) | |
tree | 61bddab822486bbb88dc9118bc73af63d6531a8a /net-misc | |
parent | new release (Manifest recommit) (diff) | |
download | gentoo-2-f2b814fce2e62ff2e37a91dcbcdec3a13bb91ea3.tar.gz gentoo-2-f2b814fce2e62ff2e37a91dcbcdec3a13bb91ea3.tar.bz2 gentoo-2-f2b814fce2e62ff2e37a91dcbcdec3a13bb91ea3.zip |
version bump
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-0.9.0.ebuild | 124 | ||||
-rw-r--r-- | net-misc/asterisk/files/0.9.0/asterisk.confd | 10 | ||||
-rw-r--r-- | net-misc/asterisk/files/0.9.0/asterisk.rc6 | 20 | ||||
-rw-r--r-- | net-misc/asterisk/files/digest-asterisk-0.9.0 | 1 |
5 files changed, 162 insertions, 1 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index d8933d2a29c6..183ac2ccf7f7 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/asterisk # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.14 2004/04/16 22:12:51 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.15 2004/05/10 01:37:18 stkn Exp $ + +*asterisk-0.9.0 (10 May 2004) + + 10 May 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.9.0.ebuild, + files/0.9.0/asterisk.confd, files/0.9.0/asterisk.rc6: + version bump. 17 Apr 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.7.2.ebuild: Fix broken voicemail webapp (#46182) diff --git a/net-misc/asterisk/asterisk-0.9.0.ebuild b/net-misc/asterisk/asterisk-0.9.0.ebuild new file mode 100644 index 000000000000..fc6e039622bd --- /dev/null +++ b/net-misc/asterisk/asterisk-0.9.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-0.9.0.ebuild,v 1.1 2004/05/10 01:37:18 stkn Exp $ + +IUSE="doc alsa mysql gtk mmx nopri nozaptel noiax vhosts" + +inherit eutils webapp-apache + +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" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/glibc + media-sound/mpg123 + dev-libs/newt + doc? ( app-doc/doxygen ) + alsa? ( media-libs/alsa-lib ) + mysql? ( dev-db/mysql ) + gtk? ( =x11-libs/gtk+-1.2* ) + !noiax? ( >=net-libs/iax-0.2.2 ) + !nopri? ( >=net-libs/libpri-0.4 ) + !nozaptel? ( >=net-misc/zaptel-0.9.1 + >=net-libs/zapata-0.9.1 )" + +pkg_setup() { + NO_WEBSERVER=0 + + webapp-detect || NO_WEBSERVER=1 + webapp-pkg_setup "${NO_WEBSERVER}" + if [ $NO_WEBSERVER -eq 0 ]; then + einfo "Voicemail webapp will be installed into: ${ROOT}${HTTPD_ROOT}" + else + einfo "Skipping installation of Voicemail webapp" + fi +} + +src_unpack() { + unpack ${A} + + cd ${S} +# epatch ${FILESDIR}/${PV}/${P}-makefile-fix.diff + + # set cflags & mmx optimization + sed -i -e "s:^\(OPTIMIZE=\).*:\1 ${CFLAGS}:" Makefile + + if [ -n "`use mmx`" ]; then + einfo "enabling mmx optimization" + sed -i -e "s:^#\(K6OPT.*\):\1:" Makefile + fi + + # change image path in voicemail cgi + sed -i -e "s:^\(\$astpath = \).*:\1 \"/asterisk\";:" contrib/scripts/vmail.cgi +} + +src_compile() { + # build asterisk first... + einfo "Building Asterisk..." + cd ${S} + emake -j1 || die "Make failed" +} + +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 + + # voicemail webapp + if [ $NO_WEBSERVER -eq 0 ]; then + einfo "Installing voicemail webapp" + insinto ${HTTPD_CGIBIN} + doins contrib/scripts/vmail.cgi + fperms 1755 ${HTTPD_CGIBIN}/vmail.cgi + + insinto ${HTTPD_ROOT}/asterisk + for i in "images/*.gif"; do + doins $i + done + fi + + + # 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}/${PV}/asterisk.rc6 asterisk + + insinto /etc/conf.d + newins ${FILESDIR}/${PV}/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 SECURITY + + docinto scripts + dodoc contrib/scripts/*.pl + dodoc contrib/scripts/*.sql +} + +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/" +} diff --git a/net-misc/asterisk/files/0.9.0/asterisk.confd b/net-misc/asterisk/files/0.9.0/asterisk.confd new file mode 100644 index 000000000000..81c6a4e10fa6 --- /dev/null +++ b/net-misc/asterisk/files/0.9.0/asterisk.confd @@ -0,0 +1,10 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/0.9.0/asterisk.confd,v 1.1 2004/05/10 01:37:19 stkn Exp $ + +# +# see "asterisk -h" for a list of options +# +# + +#OPTIONS="" diff --git a/net-misc/asterisk/files/0.9.0/asterisk.rc6 b/net-misc/asterisk/files/0.9.0/asterisk.rc6 new file mode 100644 index 000000000000..d3dc283eee22 --- /dev/null +++ b/net-misc/asterisk/files/0.9.0/asterisk.rc6 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/0.9.0/asterisk.rc6,v 1.1 2004/05/10 01:37:19 stkn Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting asterisk PBX" + /usr/sbin/asterisk ${OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping asterisk PBX" + /usr/sbin/asterisk -r -x "STOP NOW" 2>/dev/null + eend $? +} diff --git a/net-misc/asterisk/files/digest-asterisk-0.9.0 b/net-misc/asterisk/files/digest-asterisk-0.9.0 new file mode 100644 index 000000000000..dbd3a83e1b1a --- /dev/null +++ b/net-misc/asterisk/files/digest-asterisk-0.9.0 @@ -0,0 +1 @@ +MD5 cb0fbb5185fdf2356ee30bdcf4ad9b9c asterisk-0.9.0.tar.gz 2787458 |