summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-02-15 20:30:35 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-02-15 20:30:35 +0000
commitd65bb509a2b7d38900da8016a7779a847f5852ec (patch)
tree555f15b5afdeaae2d6ac603f5f5b1892978352f4 /net-misc/asterisk-app_ldap
parentInitial import (diff)
downloadgentoo-2-d65bb509a2b7d38900da8016a7779a847f5852ec.tar.gz
gentoo-2-d65bb509a2b7d38900da8016a7779a847f5852ec.tar.bz2
gentoo-2-d65bb509a2b7d38900da8016a7779a847f5852ec.zip
Initial import
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-misc/asterisk-app_ldap')
-rw-r--r--net-misc/asterisk-app_ldap/ChangeLog10
-rw-r--r--net-misc/asterisk-app_ldap/asterisk-app_ldap-0.9.3.ebuild42
-rw-r--r--net-misc/asterisk-app_ldap/files/app_ldap-0.9.3-astcfg.diff32
-rw-r--r--net-misc/asterisk-app_ldap/files/digest-asterisk-app_ldap-0.9.31
-rw-r--r--net-misc/asterisk-app_ldap/metadata.xml8
5 files changed, 93 insertions, 0 deletions
diff --git a/net-misc/asterisk-app_ldap/ChangeLog b/net-misc/asterisk-app_ldap/ChangeLog
new file mode 100644
index 000000000000..b3b3ac5b1564
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/asterisk-app_ldap
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_ldap/ChangeLog,v 1.1 2005/02/15 20:30:35 stkn Exp $
+
+*asterisk-app_ldap-0.9.3 (15 Feb 2005)
+
+ 15 Feb 2005; Stefan Knoblich <stkn@gentoo.org> +metadata.xml,
+ +files/app_ldap-0.9.3-astcfg.diff, +asterisk-app_ldap-0.9.3.ebuild:
+ Initial import.
+
diff --git a/net-misc/asterisk-app_ldap/asterisk-app_ldap-0.9.3.ebuild b/net-misc/asterisk-app_ldap/asterisk-app_ldap-0.9.3.ebuild
new file mode 100644
index 000000000000..1fda59070926
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/asterisk-app_ldap-0.9.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_ldap/asterisk-app_ldap-0.9.3.ebuild,v 1.1 2005/02/15 20:30:35 stkn Exp $
+
+inherit eutils
+
+MY_PN="app_ldap"
+
+DESCRIPTION="Asterisk application plugin to do lookups in a LDAP directory"
+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"
+
+# depends on iconv support
+DEPEND="sys-libs/glibc
+ >=net-nds/openldap-2.0.0
+ >=net-misc/asterisk-1.0.5-r1"
+
+S=${WORKDIR}/${MY_PN}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # use asterisk-config...
+ epatch ${FILESDIR}/${MY_PN}-${PV}-astcfg.diff
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc README ldap.conf
+}
diff --git a/net-misc/asterisk-app_ldap/files/app_ldap-0.9.3-astcfg.diff b/net-misc/asterisk-app_ldap/files/app_ldap-0.9.3-astcfg.diff
new file mode 100644
index 000000000000..b632c28e9b25
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/files/app_ldap-0.9.3-astcfg.diff
@@ -0,0 +1,32 @@
+--- Makefile.orig 1970-01-01 00:00:00.000000000 +0000
++++ Makefile 2005-01-26 20:30:27.009331696 +0000
+@@ -0,0 +1,29 @@
++
++CC=gcc
++CFLAGS=$(shell /usr/bin/asterisk-config --cflags) -fPIC -DPIC
++SOLINK=$(shell /usr/bin/asterisk-config --solink)
++LIBS=-lssl -lcrypto -ldl -lresolv -llber -lldap
++
++ASTMODDIR=$(shell /usr/bin/asterisk-config --modulesdir)
++ASTETCDIR=$(shell /usr/bin/asterisk-config --sysconfdir)
++
++all: .depend app_ldap.so
++
++.depend:
++ @if [ ! -x /usr/bin/asterisk-config ]; then \
++ echo "/usr/bin/asterisk-config not found!"; \
++ exit 255; \
++ fi
++
++.c.o:
++ $(CC) -c $(CFLAGS) -o $@ $<
++
++app_ldap.so: app_ldap.o
++ $(CC) $(SOLINK) $(LIBS) -o $@
++
++install:
++ if [ ! -d $(DESTDIR)$(ASTMODDIR) ]; then mkdir -p $(DESTDIR)$(ASTMODDIR); fi
++ install -m755 app_ldap.so $(DESTDIR)$(ASTMODDIR)
++ if [ ! -d $(DESTDIR)$(ASTETCDIR) ]; then mkdir -p $(DESTDIR)$(ASTETCDIR); fi
++ install -m644 ldap.conf $(DESTDIR)$(ASTETCDIR)
++
diff --git a/net-misc/asterisk-app_ldap/files/digest-asterisk-app_ldap-0.9.3 b/net-misc/asterisk-app_ldap/files/digest-asterisk-app_ldap-0.9.3
new file mode 100644
index 000000000000..6656f93eb663
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/files/digest-asterisk-app_ldap-0.9.3
@@ -0,0 +1 @@
+MD5 63fe957250d46c0a7fc1e97070cd1163 app_ldap-0.9.3.tgz 4585
diff --git a/net-misc/asterisk-app_ldap/metadata.xml b/net-misc/asterisk-app_ldap/metadata.xml
new file mode 100644
index 000000000000..a3cddc42f9cc
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/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>