diff options
author | Stefan Knoblich <stkn@gentoo.org> | 2004-09-24 00:01:57 +0000 |
---|---|---|
committer | Stefan Knoblich <stkn@gentoo.org> | 2004-09-24 00:01:57 +0000 |
commit | 896cee566f4a87adf159011dcb1b3e4715ad56bb (patch) | |
tree | acae59fb865c2682c7ee2e44e52a57f4b3171d09 /net-misc/asterisk | |
parent | Version bump. Fixes bug #52001. bug #51054and bug Bug #43592 (Manifest recom... (diff) | |
download | gentoo-2-896cee566f4a87adf159011dcb1b3e4715ad56bb.tar.gz gentoo-2-896cee566f4a87adf159011dcb1b3e4715ad56bb.tar.bz2 gentoo-2-896cee566f4a87adf159011dcb1b3e4715ad56bb.zip |
version bump
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-1.0.0.ebuild | 130 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.0.0/asterisk.confd | 9 | ||||
-rw-r--r-- | net-misc/asterisk/files/1.0.0/asterisk.rc6 | 20 | ||||
-rw-r--r-- | net-misc/asterisk/files/digest-asterisk-1.0.0 | 2 |
5 files changed, 168 insertions, 1 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index bcd2030dda47..9ca6925cbaba 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/asterisk # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.22 2004/07/30 00:03:51 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.23 2004/09/24 00:01:57 stkn Exp $ + +*asterisk-1.0.0 (24 Sep 2004) + + 24 Sep 2004; <stkn@gentoo.org> +files/1.0.0/asterisk.confd, + +files/1.0.0/asterisk.rc6, +asterisk-1.0.0.ebuild: + version bump, init script uses start-stop-daemon now 27 Jul 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.9.0.ebuild: stable on x86, removed obsolete iax dependency diff --git a/net-misc/asterisk/asterisk-1.0.0.ebuild b/net-misc/asterisk/asterisk-1.0.0.ebuild new file mode 100644 index 000000000000..12204e351cd1 --- /dev/null +++ b/net-misc/asterisk/asterisk-1.0.0.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-1.0.0.ebuild,v 1.1 2004/09/24 00:01:57 stkn Exp $ + +IUSE="alsa doc gtk mmx mysql nopri nozaptel" + +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 + ftp://ftp.asterisk.org/pub/telephony/asterisk/${PN}-sounds-${PV}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~x86" + +DEPEND="virtual/libc + 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* ) + !nopri? ( >=net-libs/libpri-1.0.0 ) + !nozaptel? ( >=net-misc/zaptel-1.0.0 + >=net-libs/zapata-1.0.0 )" + +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 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 README.fpm SECURITY + + docinto scripts + dodoc contrib/scripts/* + docinto firmware/iax + dodoc contrib/firmware/iax/* + + # install additional sounds... + einfo "Installing additional sounds..." + cd ${WORKDIR}/${PN}-sounds-${PV} + emake -j1 DESTDIR=${D} install || die "Make install failed" +} + +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/1.0.0/asterisk.confd b/net-misc/asterisk/files/1.0.0/asterisk.confd new file mode 100644 index 000000000000..c025d64f3f0c --- /dev/null +++ b/net-misc/asterisk/files/1.0.0/asterisk.confd @@ -0,0 +1,9 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.confd,v 1.1 2004/09/24 00:01:57 stkn Exp $ + +# +# see "asterisk -h" for a list of options +# + +OPTIONS="" diff --git a/net-misc/asterisk/files/1.0.0/asterisk.rc6 b/net-misc/asterisk/files/1.0.0/asterisk.rc6 new file mode 100644 index 000000000000..758c81241032 --- /dev/null +++ b/net-misc/asterisk/files/1.0.0/asterisk.rc6 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/1.0.0/asterisk.rc6,v 1.1 2004/09/24 00:01:57 stkn Exp $ + +depend() { + need net logger +} + +start() { + ebegin "Starting asterisk PBX" + start-stop-daemon --start --exec /usr/sbin/asterisk -- ${OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping asterisk PBX" + start-stop-daemon --stop --pidfile /var/run/asterisk.pid + eend $? +} diff --git a/net-misc/asterisk/files/digest-asterisk-1.0.0 b/net-misc/asterisk/files/digest-asterisk-1.0.0 new file mode 100644 index 000000000000..c652cb2804b7 --- /dev/null +++ b/net-misc/asterisk/files/digest-asterisk-1.0.0 @@ -0,0 +1,2 @@ +MD5 7d14fb592d3922b5c16bb0423467a165 asterisk-1.0.0.tar.gz 9555336 +MD5 6f969ad544db7e222b01725c732b38a1 asterisk-sounds-1.0.0.tar.gz 1702227 |