summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-02-15 20:41:28 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-02-15 20:41:28 +0000
commit71ba7e7b74860259c148f5e0073bcfe075e1d052 (patch)
tree2426693e8f626382dd4478ca08a68699e6de5824 /net-misc/asterisk-chan_bluetooth
parentinitial revision (diff)
downloadgentoo-2-71ba7e7b74860259c148f5e0073bcfe075e1d052.tar.gz
gentoo-2-71ba7e7b74860259c148f5e0073bcfe075e1d052.tar.bz2
gentoo-2-71ba7e7b74860259c148f5e0073bcfe075e1d052.zip
Initial import
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-misc/asterisk-chan_bluetooth')
-rw-r--r--net-misc/asterisk-chan_bluetooth/ChangeLog11
-rw-r--r--net-misc/asterisk-chan_bluetooth/asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild40
-rw-r--r--net-misc/asterisk-chan_bluetooth/files/chan_bluetooth-0.0.0-astcfg.diff46
-rw-r--r--net-misc/asterisk-chan_bluetooth/files/digest-asterisk-chan_bluetooth-0.0.1_pre200502121
-rw-r--r--net-misc/asterisk-chan_bluetooth/metadata.xml8
5 files changed, 106 insertions, 0 deletions
diff --git a/net-misc/asterisk-chan_bluetooth/ChangeLog b/net-misc/asterisk-chan_bluetooth/ChangeLog
new file mode 100644
index 000000000000..bfd51a3b956e
--- /dev/null
+++ b/net-misc/asterisk-chan_bluetooth/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/asterisk-chan_bluetooth
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_bluetooth/ChangeLog,v 1.1 2005/02/15 20:41:28 stkn Exp $
+
+*asterisk-chan_bluetooth-0.0.1_pre20050212 (15 Feb 2005)
+
+ 15 Feb 2005; Stefan Knoblich <stkn@gentoo.org> +metadata.xml,
+ +files/chan_bluetooth-0.0.0-astcfg.diff,
+ +asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild:
+ Initial import.
+
diff --git a/net-misc/asterisk-chan_bluetooth/asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild b/net-misc/asterisk-chan_bluetooth/asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild
new file mode 100644
index 000000000000..f4f581708c3e
--- /dev/null
+++ b/net-misc/asterisk-chan_bluetooth/asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_bluetooth/asterisk-chan_bluetooth-0.0.1_pre20050212.ebuild,v 1.1 2005/02/15 20:41:28 stkn Exp $
+
+inherit eutils
+
+MY_PN="chan_bluetooth"
+
+DESCRIPTION="Asterisk channel plugin for bluetooth HandsFree Profile"
+HOMEPAGE="http://www.crazygreek.co.uk/content/chan_bluetooth"
+SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND=">=net-wireless/bluez-libs-2.10
+ >=net-misc/asterisk-1.0.5-r1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # apply asterisk-config patch
+ epatch ${FILESDIR}/${MY_PN}-0.0.0-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc README TODO ChangeLog
+}
diff --git a/net-misc/asterisk-chan_bluetooth/files/chan_bluetooth-0.0.0-astcfg.diff b/net-misc/asterisk-chan_bluetooth/files/chan_bluetooth-0.0.0-astcfg.diff
new file mode 100644
index 000000000000..8388ccd6214b
--- /dev/null
+++ b/net-misc/asterisk-chan_bluetooth/files/chan_bluetooth-0.0.0-astcfg.diff
@@ -0,0 +1,46 @@
+--- chan_bluetooth/Makefile.orig 2005-01-26 19:15:55.917041040 +0000
++++ chan_bluetooth/Makefile 2005-01-26 19:21:53.654656656 +0000
+@@ -1,17 +1,32 @@
+-BLT_DIR = $(shell dirname $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
+-BLT_OBJS = $(BLT_DIR)/.tmp/chan_bluetooth.o
++BLT_OBJS = .tmp/chan_bluetooth.o
+
+-ifeq ($(strip ${MAKEFILE_LIST}), Makefile)
+-thisshouldnotberun:
+- @echo " --- Please read the README and INSTALL file!"
+-endif
+
+-$(BLT_DIR)/.tmp/chan_bluetooth.o: $(BLT_DIR)/chan_bluetooth.c
+- $(CC) -c -I$(BLT_DIR) $(CFLAGS) -o $@ $<
++CC=gcc
++SOLINK=$(shell /usr/bin/asterisk-config --solink)
++CFLAGS=$(shell /usr/bin/asterisk-config --cflags) -fPIC -DPIC
+
+-chan_bluetooth.so: $(BLT_DIR)/.tmp $(BLT_OBJS)
++ASTETCDIR=$(shell /usr/bin/asterisk-config --sysconfdir)
++ASTMODDIR=$(shell /usr/bin/asterisk-config --modulesdir)
++
++all: .depend chan_bluetooth.so
++
++.tmp/chan_bluetooth.o: chan_bluetooth.c
++ $(CC) -c -I. $(CFLAGS) -o $@ $<
++
++chan_bluetooth.so: .tmp $(BLT_OBJS)
+ $(CC) $(SOLINK) -o $@ $(BLT_OBJS) -lbluetooth
+
+-$(BLT_DIR)/.tmp:
+- mkdir -p $(BLT_DIR)/.tmp
++.tmp:
++ mkdir -p .tmp
++
++.depend:
++ @if [ ! -x /usr/bin/asterisk-config ]; then \
++ echo "/usr/bin/asterisk-config not found!"; \
++ exit 255; \
++ fi
+
++install:
++ if [ ! -d $(DESTDIR)$(ASTETCDIR) ]; then mkdir -p $(DESTDIR)$(ASTETCDIR); fi
++ install -m600 conf/bluetooth.conf $(DESTDIR)$(ASTETCDIR)
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 chan_bluetooth.so $(DESTDIR)$(ASTMODDIR)
diff --git a/net-misc/asterisk-chan_bluetooth/files/digest-asterisk-chan_bluetooth-0.0.1_pre20050212 b/net-misc/asterisk-chan_bluetooth/files/digest-asterisk-chan_bluetooth-0.0.1_pre20050212
new file mode 100644
index 000000000000..13ca610dc275
--- /dev/null
+++ b/net-misc/asterisk-chan_bluetooth/files/digest-asterisk-chan_bluetooth-0.0.1_pre20050212
@@ -0,0 +1 @@
+MD5 11ecddab31e0f9bed4cda1ff933acf58 chan_bluetooth-0.0.1_pre20050212.tar.gz 21390
diff --git a/net-misc/asterisk-chan_bluetooth/metadata.xml b/net-misc/asterisk-chan_bluetooth/metadata.xml
new file mode 100644
index 000000000000..a3cddc42f9cc
--- /dev/null
+++ b/net-misc/asterisk-chan_bluetooth/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>