Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  3 Jan 2004 20:58:19 +0100 (CET)
From:      Martijn Lina <martijn@pacno.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/60868: New port: net/jabber-xdb_ldap
Message-ID:  <20040103195819.41D274115@drain.sewers-2.demon.nl>
Resent-Message-ID: <200401032000.i03K0YZ6093652@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60868
>Category:       ports
>Synopsis:       New port: net/jabber-xdb_ldap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 03 12:00:34 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Martijn Lina
>Release:        FreeBSD 5.2-RC i386
>Organization:
>Environment:
System: FreeBSD 5.2-RC i386


>Description:
	This port is a xdb backend for an LDAP directory for the jabber server.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	net/jabber-xdb_ldap/
#	net/jabber-xdb_ldap/Makefile
#	net/jabber-xdb_ldap/files
#	net/jabber-xdb_ldap/files/patch-Makefile
#	net/jabber-xdb_ldap/pkg-plist
#	net/jabber-xdb_ldap/pkg-descr
#	net/jabber-xdb_ldap/distinfo
#
echo c - net/jabber-xdb_ldap/
mkdir -p net/jabber-xdb_ldap/ > /dev/null 2>&1
echo x - net/jabber-xdb_ldap/Makefile
sed 's/^X//' >net/jabber-xdb_ldap/Makefile << 'END-of-net/jabber-xdb_ldap/Makefile'
X# New ports collection makefile for:	jabber-xdb_ldap
X# Date created:			03 January 2004
X# Whom:				Martijn Lina <martijn@pacno.net>
X#
X# $FreeBSD$
X
XPORTNAME=	xdb_ldap
XPORTVERSION=	1.0
XCATEGORIES=	net
XMASTER_SITES=	http://www.jabberstudio.org/files/xdb_ldap/
XPKGNAMEPREFIX=	jabber-
XDIST_SUBDIR=	jabber
X
XMAINTAINER=	martijn@pacno.net
XCOMMENT=	Jabber xdb backend for an LDAP directory
X
XBUILD_DEPENDS=	${NON_EXISTENT}:${PORTSDIR}/net/jabber:configure
X
X.if defined(WITH_OPENLDAP_VER)
XWITH_OPENLDAP=          yes
XWANT_OPENLDAP_VER=      ${WITH_OPENLDAP_VER}
X.endif
X.if defined(WITH_OPENLDAP)
X.if defined(WANT_OPENLDAP_VER) && ${WANT_OPENLDAP_VER} == 12
XBROKEN=         "this port requires OpenLDAP >= 2.0"
X.endif
XUSE_OPENLDAP=   yes
X#CONFIGURE_ARGS+=--with-ldap=${PREFIX}
X.endif
X
XUSE_GMAKE=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}/src
X
X.include <bsd.port.pre.mk>
X
XJABBER_SRC!=	cd ${PORTSDIR}/net/jabber && make -V WRKSRC
X
XMAKE_ENV=	JABBER_SRC=${JABBER_SRC}
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/xdb_ldap.so ${PREFIX}/lib/jabber/
X	${INSTALL_DATA} ${WRKSRC}/../jabber-xdb.xml ${PREFIX}/etc/jabber-xdb.xml.sample
X	${INSTALL_DATA} ${WRKSRC}/../jabber.schema ${PREFIX}/etc/openldap/schema/jabber.schema.default
X
X.include <bsd.port.post.mk>
END-of-net/jabber-xdb_ldap/Makefile
echo c - net/jabber-xdb_ldap/files
mkdir -p net/jabber-xdb_ldap/files > /dev/null 2>&1
echo x - net/jabber-xdb_ldap/files/patch-Makefile
sed 's/^X//' >net/jabber-xdb_ldap/files/patch-Makefile << 'END-of-net/jabber-xdb_ldap/files/patch-Makefile'
X--- Makefile.orig	Wed Jul 24 17:42:25 2002
X+++ Makefile	Sat Nov 29 18:35:35 2003
X@@ -1,7 +1,7 @@
X-include ../../platform-settings
X+include ${JABBER_SRC}/platform-settings
X 
X-CFLAGS:=$(CFLAGS) -I../../jabberd -I../include
X-LIBS:=$(LIBS) -lresolv -lldap -llber 
X+CFLAGS:=$(CFLAGS) -I${JABBER_SRC}/jabberd -I../include -I/usr/local/include
X+LIBS:=$(LIBS) -L/usr/local/lib  -lldap -llber 
X xdb_ldap_OBJECTS = xdb_ldap.o \
X 		xdb_ldap_common.o \
X 		xdb_ldap_auth.o \
END-of-net/jabber-xdb_ldap/files/patch-Makefile
echo x - net/jabber-xdb_ldap/pkg-plist
sed 's/^X//' >net/jabber-xdb_ldap/pkg-plist << 'END-of-net/jabber-xdb_ldap/pkg-plist'
Xlib/jabber/xdb_ldap.so
Xetc/jabber-xdb.xml.sample
Xetc/openldap/schema/jabber.schema.default
END-of-net/jabber-xdb_ldap/pkg-plist
echo x - net/jabber-xdb_ldap/pkg-descr
sed 's/^X//' >net/jabber-xdb_ldap/pkg-descr << 'END-of-net/jabber-xdb_ldap/pkg-descr'
XThe Jabber server (jabberd) is a daemon for Jabber clients to connect
Xand communicate with. xdb_ldap allows you to store the jabber data in
Xan LDAP directory
X
XYou can learn more about Jabber at:
XWWW: http://www.jabber.org/
END-of-net/jabber-xdb_ldap/pkg-descr
echo x - net/jabber-xdb_ldap/distinfo
sed 's/^X//' >net/jabber-xdb_ldap/distinfo << 'END-of-net/jabber-xdb_ldap/distinfo'
XMD5 (jabber/xdb_ldap-1.0.tar.gz) = 373f0f780c725cc06c824e322fc694ff
END-of-net/jabber-xdb_ldap/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040103195819.41D274115>