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
commit521bc54ca63ae48bbd59892abfcd7c4e96ab60ef (patch)
tree1734d039b3c8b7d3874fda2f4482d38cc1acf7fd /net-misc/asterisk-app_ldap
parentInitial import (diff)
downloadhistorical-521bc54ca63ae48bbd59892abfcd7c4e96ab60ef.tar.gz
historical-521bc54ca63ae48bbd59892abfcd7c4e96ab60ef.tar.bz2
historical-521bc54ca63ae48bbd59892abfcd7c4e96ab60ef.zip
Initial import
Package-Manager: portage-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/Manifest5
-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
6 files changed, 98 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/Manifest b/net-misc/asterisk-app_ldap/Manifest
new file mode 100644
index 000000000000..df49e764f602
--- /dev/null
+++ b/net-misc/asterisk-app_ldap/Manifest
@@ -0,0 +1,5 @@
+MD5 de41c503f05f5f99a8635b0e333729a5 metadata.xml 217
+MD5 77d034e261e7399eee2814abdb420947 asterisk-app_ldap-0.9.3.ebuild 875
+MD5 e3e2acb59ce3d8551589523388baf122 ChangeLog 416
+MD5 da5efba979b764c22cbab1818e68dfe8 files/app_ldap-0.9.3-astcfg.diff 938
+MD5 f82fd8387708115040b7e9150ac8e645 files/digest-asterisk-app_ldap-0.9.3 61
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>