summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2004-01-04 00:25:34 +0000
committerStefan Knoblich <stkn@gentoo.org>2004-01-04 00:25:34 +0000
commitf58d23aea07617d883994156435a4dc955116af8 (patch)
treef79446b7ae62e2d47ee2f4a8165a5c237bfe9e73 /net-misc/asterisk
parentinitial import (diff)
downloadgentoo-2-f58d23aea07617d883994156435a4dc955116af8.tar.gz
gentoo-2-f58d23aea07617d883994156435a4dc955116af8.tar.bz2
gentoo-2-f58d23aea07617d883994156435a4dc955116af8.zip
added asterisk-0.5.0 ebuild and metadata.xml, copyright header updates
Diffstat (limited to 'net-misc/asterisk')
-rw-r--r--net-misc/asterisk/ChangeLog9
-rw-r--r--net-misc/asterisk/Manifest11
-rw-r--r--net-misc/asterisk/asterisk-0.2.0.ebuild4
-rw-r--r--net-misc/asterisk/asterisk-0.5.0.ebuild134
-rw-r--r--net-misc/asterisk/files/0.5.0/asterisk-0.5.0-Makefile-samples.patch45
-rw-r--r--net-misc/asterisk/files/0.5.0/asterisk-0.5.0-makefile-fix.diff21
-rw-r--r--net-misc/asterisk/files/0.5.0/asterisk.confd10
-rw-r--r--net-misc/asterisk/files/0.5.0/asterisk.rc620
-rw-r--r--net-misc/asterisk/files/digest-asterisk-0.5.02
-rw-r--r--net-misc/asterisk/metadata.xml9
10 files changed, 261 insertions, 4 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog
index d3f902283f79..a655f3956d5a 100644
--- a/net-misc/asterisk/ChangeLog
+++ b/net-misc/asterisk/ChangeLog
@@ -2,6 +2,15 @@
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
# $Header
+*asterisk-0.5.0 (04 Jan 2004)
+
+ 04 Jan 2004; Stefan Knoblich <stkn@gentoo.org> asterisk-0.2.0.ebuild,
+ asterisk-0.5.0.ebuild, metadata.xml,
+ files/0.5.0/asterisk-0.5.0-Makefile-samples.patch,
+ files/0.5.0/asterisk-0.5.0-makefile-fix.diff, files/0.5.0/asterisk.confd,
+ files/0.5.0/asterisk.rc6:
+ new ebuild asterisk-0.5.0, copyright header updates
+
30 Nov 2003; Brandy Westcott brandy@gentoo.org asterisk-0.2.0.ebuild:
Pinned emake to -j1. Closes bug #34642.
diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest
index 3b10d7e4bee8..9adfffdd2e0e 100644
--- a/net-misc/asterisk/Manifest
+++ b/net-misc/asterisk/Manifest
@@ -1,3 +1,10 @@
-MD5 2adbc5b2e17aa3f3b0b9b3f655f510b1 asterisk-0.2.0.ebuild 821
-MD5 1aaba27bef34d8817dd8a293831f2ddb ChangeLog 1005
+MD5 5dda37c180bece5bbbb073bc7f7c2a5c ChangeLog 1359
+MD5 752f1e72696453119b5e34472bec5057 asterisk-0.2.0.ebuild 819
+MD5 0b524f309efb652f554b6cec45ca26cc asterisk-0.5.0.ebuild 3225
+MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
MD5 64cd5e3855adff2b38f2f442004a47b1 files/digest-asterisk-0.2.0 67
+MD5 96927166e5c299f77d298e7f6d1bbe40 files/digest-asterisk-0.5.0 138
+MD5 2c5c6842abfaf0af6201de5b7b18deac files/0.5.0/asterisk.rc6 471
+MD5 43b161bf6508962388306ae05b43b694 files/0.5.0/asterisk.confd 306
+MD5 7801f13ed410e5b329a527dcaf26a46c files/0.5.0/asterisk-0.5.0-makefile-fix.diff 1063
+MD5 00c1dd84bc743af5abd72133444730da files/0.5.0/asterisk-0.5.0-Makefile-samples.patch 1917
diff --git a/net-misc/asterisk/asterisk-0.2.0.ebuild b/net-misc/asterisk/asterisk-0.2.0.ebuild
index 0caac0af9153..494e7686d5a7 100644
--- a/net-misc/asterisk/asterisk-0.2.0.ebuild
+++ b/net-misc/asterisk/asterisk-0.2.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# 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.2.0.ebuild,v 1.7 2003/11/30 00:22:53 brandy Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-0.2.0.ebuild,v 1.8 2004/01/04 00:25:22 stkn Exp $
IUSE="doc"
diff --git a/net-misc/asterisk/asterisk-0.5.0.ebuild b/net-misc/asterisk/asterisk-0.5.0.ebuild
new file mode 100644
index 000000000000..bcde81b01fbb
--- /dev/null
+++ b/net-misc/asterisk/asterisk-0.5.0.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+IUSE="doc alsa mysql gtk mmx nopri nozaptel noiax"
+
+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
+ 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-libs/zapata-0.7 )"
+
+webapp-detect || NO_WEBSERVER=1
+
+pkg_setup() {
+ if [ -z $NO_WEBSERVER ]; then
+ webapp-pkg_setup "${NO_WEBSERVER}"
+ einfo "Voicemail webapp will be installed into: ${ROOT}${HTTPD_ROOT}"
+ else
+ ewarn "Voicemail webapp will _not_ be installed"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${PV}/${P}-Makefile-samples.patch
+
+ # fix some symlinks created during installation
+ 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\";:" vmail.cgi
+
+ #
+ # additional plugins
+ #
+
+# # include h323 extension
+# if [ -z "`use noh323`" ]; then
+# # i know, this is really hard ;)
+# cd ${WORKDIR}/asterisk-oh323-${H323_VERSION}
+# epatch ${FILESDIR}/${PV}/${P}-oh323-${H323_VERSION}.diff
+# sed -i -e "s:^\(ASTERISKSRCDIR\).*:\1 = ${S}:" Makefile
+# fi
+}
+
+src_compile() {
+ # build asterisk first...
+ einfo "Building Asterisk..."
+ cd ${S}
+ emake -j1 || die "Make failed"
+
+ einfo "Building additional plugins..."
+# # h323 extension
+# if [ -z "`use noh323`" ]; then
+# cd ${WORKDIR}/asterisk-oh323-${H323_VERSION}
+# emake -j1 || die "Building h323 extension failed"
+# fi
+}
+
+src_install() {
+ emake -j1 INSTALL_PREFIX=${D} install || die "Make install failed"
+ emake -j1 INSTALL_PREFIX=${D} samples || die "Make install samples failed"
+
+ # install addmailbox
+ dosbin addmailbox
+
+ # documentation
+ use doc && \
+ emake -j1 INSTALL_PREFIX=${D} progdocs
+
+ # voicemail webapp
+ if [ -z $NO_WEBSERVER ]; then
+ einfo "Installing voicemail webapp"
+ insinto ${HTTPD_CGIBIN}
+ doins 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
+
+ #
+ # install plugins
+ #
+ einfo "Installing additional plugins..."
+
+# # h323 extension
+# if [ -z "`use noh323`" ]; then
+# cd ${WORKDIR}/asterisk-oh323-${H323_VERSION}
+# emake -j1 DESTDIR=${D} install || die "h323 extension make install failed"
+# fi
+}
+
+pkg_postinst() {
+ einfo "Asterisk has been installed"
+ einfo "to add new Mailboxes use: /usr/sbin/addmailbox"
+}
diff --git a/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-Makefile-samples.patch b/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-Makefile-samples.patch
new file mode 100644
index 000000000000..517360155d41
--- /dev/null
+++ b/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-Makefile-samples.patch
@@ -0,0 +1,45 @@
+--- asterisk/Makefile.orig 2003-10-06 21:47:55.000000000 -0400
++++ asterisk/Makefile 2003-10-06 21:48:40.000000000 -0400
+@@ -150,7 +150,7 @@
+ @echo " + $(MAKE) install +"
+ @echo " +-------------------------------------------+"
+
+-all: depend asterisk subdirs
++all: depend configs/asterisk.conf.sample asterisk subdirs
+
+ editline/config.h:
+ cd editline && unset CFLAGS LIBS && ./configure ; \
+@@ -243,6 +243,17 @@
+ done
+ mkdir -p $(AGI_DIR)
+
++# Added for Gentoo to pick up the proper directories.
++configs/asterisk.conf.sample:
++ echo "[directories]" > configs/asterisk.conf.sample
++ echo "astetcdir => $(ASTETCDIR)" >> configs/asterisk.conf.sample
++ echo "astmoddir => $(MODULES_DIR)" >> configs/asterisk.conf.sample
++ echo "astvarlibdir => $(ASTVARLIBDIR)" >> configs/asterisk.conf.sample
++ echo "astagidir => $(AGI_DIR)" >> configs/asterisk.conf.sample
++ echo "astspooldir => $(ASTSPOOLDIR)" >> configs/asterisk.conf.sample
++ echo "astrundir => $(ASTVARRUNDIR)" >> configs/asterisk.conf.sample
++ echo "astlogdir => $(ASTLOGDIR)" >> configs/asterisk.conf.sample
++
+ update:
+ @if [ -d CVS ]; then \
+ echo "Updating from CVS..." ; \
+@@ -326,14 +337,7 @@
+ fi ; \
+ install $$x $(ASTETCDIR)/`basename $$x .sample` ;\
+ done
+- echo "[directories]" > $(ASTETCDIR)/asterisk.conf
+- echo "astetcdir => $(ASTETCDIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astmoddir => $(MODULES_DIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astvarlibdir => $(ASTVARLIBDIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astagidir => $(AGI_DIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astspooldir => $(ASTSPOOLDIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astrundir => $(ASTVARRUNDIR)" >> $(ASTETCDIR)/asterisk.conf
+- echo "astlogdir => $(ASTLOGDIR)" >> $(ASTETCDIR)/asterisk.conf
++
+ for x in sounds/demo-*; do \
+ if grep -q "^%`basename $$x`%" sounds.txt; then \
+ install $$x $(ASTVARLIBDIR)/sounds ; \
diff --git a/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-makefile-fix.diff b/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-makefile-fix.diff
new file mode 100644
index 000000000000..81bee126d71e
--- /dev/null
+++ b/net-misc/asterisk/files/0.5.0/asterisk-0.5.0-makefile-fix.diff
@@ -0,0 +1,21 @@
+--- Makefile.orig 2003-11-18 06:23:35.000000000 +0100
++++ Makefile 2003-11-18 06:25:21.000000000 +0100
+@@ -280,15 +280,15 @@
+ mkdir -p $(ASTSPOOLDIR)/voicemail/default; \
+ rm -f $(ASTSPOOLDIR)/vm; \
+ fi
+- ln -s $(ASTSPOOLDIR)/voicemail/default $(ASTSPOOLDIR)/vm
++ ln -s $(subst $(INSTALL_PREFIX),,$(ASTSPOOLDIR))/voicemail/default $(ASTSPOOLDIR)/vm
+ rm -f $(MODULES_DIR)/chan_ixj.so
+ rm -f $(MODULES_DIR)/chan_tor.so
+ mkdir -p $(ASTVARLIBDIR)/sounds
+ mkdir -p $(ASTLOGDIR)/cdr-csv
+ mkdir -p $(ASTVARLIBDIR)/keys
+ install -m 644 keys/iaxtel.pub $(ASTVARLIBDIR)/keys
+- ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/vm . )
+- ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(ASTSPOOLDIR)/voicemail . )
++ ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(subst $(INSTALL_PREFIX),,$(ASTSPOOLDIR))/vm . )
++ ( cd $(ASTVARLIBDIR)/sounds ; ln -s $(subst $(INSTALL_PREFIX),,$(ASTSPOOLDIR))/voicemail . )
+ @echo " +---- Asterisk Installation Complete -------+"
+ @echo " + +"
+ @echo " + YOU MUST READ THE SECURITY DOCUMENT +"
diff --git a/net-misc/asterisk/files/0.5.0/asterisk.confd b/net-misc/asterisk/files/0.5.0/asterisk.confd
new file mode 100644
index 000000000000..652ba89b45c4
--- /dev/null
+++ b/net-misc/asterisk/files/0.5.0/asterisk.confd
@@ -0,0 +1,10 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/0.5.0/asterisk.confd,v 1.1 2004/01/04 00:25:22 stkn Exp $
+
+#
+# see "asterisk -h" for a list of options
+#
+#
+
+#OPTIONS=""
diff --git a/net-misc/asterisk/files/0.5.0/asterisk.rc6 b/net-misc/asterisk/files/0.5.0/asterisk.rc6
new file mode 100644
index 000000000000..ad3a91d1108a
--- /dev/null
+++ b/net-misc/asterisk/files/0.5.0/asterisk.rc6
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/files/0.5.0/asterisk.rc6,v 1.1 2004/01/04 00:25:22 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.5.0 b/net-misc/asterisk/files/digest-asterisk-0.5.0
new file mode 100644
index 000000000000..0851175899bc
--- /dev/null
+++ b/net-misc/asterisk/files/digest-asterisk-0.5.0
@@ -0,0 +1,2 @@
+MD5 6daf4091a62933d74fb8650f00b22374 asterisk-0.5.0.tar.gz 2723070
+MD5 4c08af2a0b2e74b8c22051d01b758fab asterisk-oh323-0.5.7.tar.gz 66527
diff --git a/net-misc/asterisk/metadata.xml b/net-misc/asterisk/metadata.xml
new file mode 100644
index 000000000000..10f27dc5e06a
--- /dev/null
+++ b/net-misc/asterisk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+ <name>Stefan Knoblich</name>
+</maintainer>
+</pkgmetadata>