summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-08-27 21:30:24 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-08-27 21:30:24 +0000
commit938acfd4f67fd3b27c5c6273f48b60aa7d27d35e (patch)
treebd942257829577c2e885ff3361dcc1b6a47ffcf3 /net-misc
parentversion bump (diff)
downloadgentoo-2-938acfd4f67fd3b27c5c6273f48b60aa7d27d35e.tar.gz
gentoo-2-938acfd4f67fd3b27c5c6273f48b60aa7d27d35e.tar.bz2
gentoo-2-938acfd4f67fd3b27c5c6273f48b60aa7d27d35e.zip
Initial import
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/asterisk-res_bonjour/ChangeLog11
-rw-r--r--net-misc/asterisk-res_bonjour/Manifest3
-rw-r--r--net-misc/asterisk-res_bonjour/asterisk-res_bonjour-0.9.ebuild46
-rw-r--r--net-misc/asterisk-res_bonjour/files/digest-asterisk-res_bonjour-0.91
-rw-r--r--net-misc/asterisk-res_bonjour/files/res_bonjour-0.9-astcfg.diff36
-rw-r--r--net-misc/asterisk-res_bonjour/metadata.xml8
6 files changed, 105 insertions, 0 deletions
diff --git a/net-misc/asterisk-res_bonjour/ChangeLog b/net-misc/asterisk-res_bonjour/ChangeLog
new file mode 100644
index 000000000000..8b94107e7fd0
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/asterisk-res_bonjour
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-res_bonjour/ChangeLog,v 1.1 2005/08/27 21:30:24 stkn Exp $
+
+*asterisk-res_bonjour-0.9 (27 Aug 2005)
+
+ 27 Aug 2005; Stefan Knoblich <stkn@gentoo.org>
+ +files/res_bonjour-0.9-astcfg.diff, +metadata.xml,
+ +asterisk-res_bonjour-0.9.ebuild:
+ Initial import.
+
diff --git a/net-misc/asterisk-res_bonjour/Manifest b/net-misc/asterisk-res_bonjour/Manifest
new file mode 100644
index 000000000000..b2bfb587725c
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/Manifest
@@ -0,0 +1,3 @@
+MD5 9a8b7ca527e4d2509e92cf4e7ecb4c71 asterisk-res_bonjour-0.9.ebuild 989
+MD5 37aed58995bd334be6c19fdfaef3ad4d files/digest-asterisk-res_bonjour-0.9 62
+MD5 8faa4589030720efddcaf8ecf0a6feda files/res_bonjour-0.9-astcfg.diff 1022
diff --git a/net-misc/asterisk-res_bonjour/asterisk-res_bonjour-0.9.ebuild b/net-misc/asterisk-res_bonjour/asterisk-res_bonjour-0.9.ebuild
new file mode 100644
index 000000000000..afa6f025546d
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/asterisk-res_bonjour-0.9.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-res_bonjour/asterisk-res_bonjour-0.9.ebuild,v 1.1 2005/08/27 21:30:24 stkn Exp $
+
+inherit eutils
+
+MY_PN="res_bonjour"
+
+DESCRIPTION="Asterisk resource plugin for Apple Bonjour (aka zeroconf) support"
+HOMEPAGE="http://www.mezzo.net/asterisk/"
+SRC_URI="http://www.mezzo.net/asterisk/${MY_PN}-${PV}.tgz"
+
+IUSE=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="net-misc/mDNSResponder
+ >=net-misc/asterisk-1.0.7-r1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-0.9-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc bonjour.conf.sample
+
+ # fix permissions
+ if [[ -n "$(egetent group asterisk)" ]]; then
+ chown -R root:asterisk ${D}etc/asterisk
+ chmod -R u=rwX,g=rX,o= ${D}etc/asterisk
+ fi
+}
diff --git a/net-misc/asterisk-res_bonjour/files/digest-asterisk-res_bonjour-0.9 b/net-misc/asterisk-res_bonjour/files/digest-asterisk-res_bonjour-0.9
new file mode 100644
index 000000000000..37d9b9544d0b
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/files/digest-asterisk-res_bonjour-0.9
@@ -0,0 +1 @@
+MD5 d72a2ab5330833a2b3de1f672913ab4b res_bonjour-0.9.tgz 4926
diff --git a/net-misc/asterisk-res_bonjour/files/res_bonjour-0.9-astcfg.diff b/net-misc/asterisk-res_bonjour/files/res_bonjour-0.9-astcfg.diff
new file mode 100644
index 000000000000..444b5f058240
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/files/res_bonjour-0.9-astcfg.diff
@@ -0,0 +1,36 @@
+--- res_bonjour/Makefile.orig 2005-08-27 23:29:38.000000000 +0000
++++ res_bonjour/Makefile 2005-08-27 23:30:34.000000000 +0000
+@@ -9,15 +9,13 @@
+ NAME=res_bonjour
+ CONF=bonjour.conf
+
+-CFLAGS=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC
++DESTDIR=
++
++CFLAGS+=-g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC
+ LIBS=-ldns_sd
+ RES=$(shell if [ -f /usr/include/asterisk/channel.h ]; then echo "$(NAME).so"; fi)
+
+-ifeq (${OSARCH},Darwin)
+-SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
+-else
+-SOLINK=-shared -Xlinker -x
+-endif
++SOLINK=$(shell /usr/bin/asterisk-config --solink)
+
+ MODULES_DIR=/usr/lib/asterisk/modules
+
+@@ -29,10 +27,6 @@
+ clean:
+ rm -f $(NAME).o $(NAME).so
+
+-install: all
+- if ! [ -f /etc/asterisk/$(CONF) ]; then \
+- install -m 644 $(CONF).sample /etc/asterisk/$(CONF) ; \
+- fi
+- if [ -f $(NAME).so ]; then \
+- install -m 755 $(NAME).so $(MODULES_DIR) ; \
+- fi
++install:
++ install -D -m 644 $(CONF).sample $(DESTDIR)/etc/asterisk/$(CONF)
++ install -D -m 755 $(NAME).so $(DESTDIR)$(MODULES_DIR)
diff --git a/net-misc/asterisk-res_bonjour/metadata.xml b/net-misc/asterisk-res_bonjour/metadata.xml
new file mode 100644
index 000000000000..a3cddc42f9cc
--- /dev/null
+++ b/net-misc/asterisk-res_bonjour/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</maintainer>
+</pkgmetadata>