ports/57224: [NEW PORT] port net/ldapc++: OpenLDAP C++ API

Oliver Eikemeier eikemeier at fillmore-labs.com
Thu Sep 25 22:30:18 UTC 2003


>Number:         57224
>Category:       ports
>Synopsis:       [NEW PORT] port net/ldapc++: OpenLDAP C++ API
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 25 15:30:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Eikemeier
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
Fillmore Labs - http://www.fillmore-labs.com
>Environment:
System: FreeBSD nuuk.fillmore-labs.com 4.9-PRERELEASE

>Description:

An C++ interface to the OpenLDAP API written by Ralf Haferkamp
<rhafer at suse.de> and found in the contrib/ldapc++ subdirectory
of the OpenLDAP distribution.

category net (the OpenLDAP client is already there)

>How-To-Repeat:
>Fix:

--- ldapc++.shar begins here ---
# 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:
#
#	ldapc++
#	ldapc++/Makefile
#	ldapc++/distinfo
#	ldapc++/files
#	ldapc++/files/patch-Makefile.in
#	ldapc++/files/patch-examples::Makefile.in
#	ldapc++/files/patch-examples::main.cpp
#	ldapc++/files/patch-src::Makefile.in
#	ldapc++/pkg-descr
#	ldapc++/pkg-plist
#
echo c - ldapc++
mkdir -p ldapc++ > /dev/null 2>&1
echo x - ldapc++/Makefile
sed 's/^X//' >ldapc++/Makefile << 'END-of-ldapc++/Makefile'
X# New ports collection makefile for:    ldapc++ 2.2
X# Date created:				10 Jul 2003
X# Whom:					Oliver Eikemeier
X#
X# $FreeBSD$
X#
X
XPORTNAME=		ldapc++
XPORTVERSION=		0.0.1
XCATEGORIES=		net databases devel
XMASTER_SITES=		ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \
X			http://public.planetmirror.com/pub/openldap/%SUBDIR%/ \
X			ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.matrix.com.br/pub/openldap/%SUBDIR%/ \
X			ftp://ftp.ucr.ac.cr/pub/Unix/openldap/%SUBDIR%/ \
X			ftp://ftp.ntua.gr/mirror/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.u-aizu.ac.jp/pub/net/openldap/%SUBDIR%/ \
X			ftp://ftp.holywar.net/pub/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.nl.uu.net/pub/unix/db/openldap/%SUBDIR%/ \
X			ftp://ftp.linux.pt/pub/mirrors/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.rediris.es/mirror/OpenLDAP/%SUBDIR%/ \
X			ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/%SUBDIR%/ \
X			http://openldap.cdpa.nsysu.edu.tw/OpenLDAP/%SUBDIR%/ \
X			ftp://ftp.plig.org/pub/OpenLDAP/%SUBDIR%/
XMASTER_SITE_SUBDIR=	openldap-test
XDISTNAME=		openldap-2.2.1beta
XEXTRACT_SUFX=		.tgz
X
XMAINTAINER=		eikemeier at fillmore-labs.com
XCOMMENT=		OpenLDAP C++ API
X
X.if defined(PACKAGE_BUILDING)
XWITH_DOXYGEN=		yes
X.endif
X
X.if defined(WITH_DOXYGEN)
XBUILD_DEPENDS=		doxygen:${PORTSDIR}/devel/doxygen
X.endif
X
XUSE_OPENLDAP=		yes
XUSE_REINPLACE=		yes
XUSE_LIBTOOL_VER=	14
XGNU_CONFIGURE=		yes
X
XINSTALLS_SHLIB=		yes
X
XWRK_SUBDIR=		contrib/ldapc++
X
XWRKSRC=			${WRKDIR}/${DISTNAME}/${WRK_SUBDIR}
X
XCONFIGURE_ARGS=		--with-libldap=${LOCALBASE}/lib \
X			--with-ldap-includes=${LOCALBASE}/include
X
XCPPFLAGS+=		${PTHREAD_CFLAGS} \
X			-I${LOCALBASE}/include
XLDFLAGS+=		-L${LOCALBASE}/lib
X
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS}" \
X			LDFLAGS="${LDFLAGS}" \
X			LIBS="${LIBS}"
X
X.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
Xpre-everything::
X.if !defined(WITH_DOXYGEN) && !defined(NOPORTDOCS)
X	@${ECHO} "============================================================="
X	@${ECHO}
X	@${ECHO} "You can build ${PKGNAME} with the following options:"
X	@${ECHO}
X	@${ECHO} "WITH_DOXYGEN          with HTML documentation"
X	@${ECHO}
X	@${ECHO} "============================================================="
X	@${ECHO}
X.endif
X.endif
X
Xpre-configure:
X	@${REINPLACE_CMD} -e '/^LIBTOOL=/s,\$$(top_builddir)/libtool,${LIBTOOL},g' \
X		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
X
Xpost-build:
X.if defined(WITH_DOXYGEN)
X	@cd ${BUILD_WRKSRC} && doxygen doxygen.rc
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_DATA} ${INSTALL_WRKSRC}/examples/main.cpp ${EXAMPLESDIR}
X.if defined(WITH_DOXYGEN)
X	@${MKDIR} ${DOCSDIR}
X	@${MKDIR} ${DOCSDIR}/html
X	@${FIND} ${INSTALL_WRKSRC}/srcdoc/html -maxdepth 1 -type f \
X		-exec ${INSTALL_DATA} {} ${DOCSDIR}/html \; -print \
X		| ${SED} -e "s,^${INSTALL_WRKSRC}/srcdoc/,${DOCSDIR:S,^${PREFIX}/,,}/," \
X		>>${TMPPLIST};
X	@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html" >>${TMPPLIST};
X	@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" >>${TMPPLIST}
X.endif
X.endif
X
X.include <bsd.port.mk>
END-of-ldapc++/Makefile
echo x - ldapc++/distinfo
sed 's/^X//' >ldapc++/distinfo << 'END-of-ldapc++/distinfo'
XMD5 (openldap-2.2.1beta.tgz) = cdf4be9b0c9c5003e7ce74f5da56955b
END-of-ldapc++/distinfo
echo c - ldapc++/files
mkdir -p ldapc++/files > /dev/null 2>&1
echo x - ldapc++/files/patch-Makefile.in
sed 's/^X//' >ldapc++/files/patch-Makefile.in << 'END-of-ldapc++/files/patch-Makefile.in'
X--- Makefile.in.orig	Tue Sep 23 18:28:29 2003
X+++ Makefile.in	Tue Sep 23 18:29:02 2003
X@@ -150,19 +150,6 @@
X 
X am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
X  configure.lineno
X-$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
X-	cd $(top_srcdir) && \
X-	  $(AUTOMAKE) --foreign  Makefile
X-Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
X-	cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
X-
X-$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
X-	$(SHELL) ./config.status --recheck
X-$(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
X-	cd $(srcdir) && $(AUTOCONF)
X-
X-$(ACLOCAL_M4):  configure.in 
X-	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
X 
X mostlyclean-libtool:
X 	-rm -f *.lo
END-of-ldapc++/files/patch-Makefile.in
echo x - ldapc++/files/patch-examples::Makefile.in
sed 's/^X//' >ldapc++/files/patch-examples::Makefile.in << 'END-of-ldapc++/files/patch-examples::Makefile.in'
X--- examples/Makefile.in.orig	Tue Sep 23 18:27:36 2003
X+++ examples/Makefile.in	Tue Sep 23 18:27:52 2003
X@@ -161,11 +161,6 @@
X 
X .SUFFIXES:
X .SUFFIXES: .cpp .lo .o .obj
X-$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
X-	cd $(top_srcdir) && \
X-	  $(AUTOMAKE) --foreign  examples/Makefile
X-Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
X-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
X 
X clean-noinstPROGRAMS:
X 	@list='$(noinst_PROGRAMS)'; for p in $$list; do \
END-of-ldapc++/files/patch-examples::Makefile.in
echo x - ldapc++/files/patch-examples::main.cpp
sed 's/^X//' >ldapc++/files/patch-examples::main.cpp << 'END-of-ldapc++/files/patch-examples::main.cpp'
X--- examples/main.cpp.orig	Thu Jun  5 18:10:44 2003
X+++ examples/main.cpp	Sun Jul 20 15:07:34 2003
X@@ -3,8 +3,14 @@
X  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
X  */
X 
X-#include<iostream.h>
X-#include<strstream>
X+/*
X+ * modify this file to suit your needs and compile with:
X+ *   g++ -o ldapcppexample -I/usr/local/include -L/usr/local/lib -lldapcpp main.cpp
X+ */
X+
X+#include <iostream>
X+#include <sstream>
X+
X #include "LDAPConnection.h"
X #include "LDAPConstraints.h"
X #include "LDAPSearchReference.h"
X@@ -16,7 +22,8 @@
X #include "LDAPModification.h"
X #include "LDAPReferralException.h"
X 
X-#include"debug.h"
X+using std::cout;
X+using std::endl;
X 
X int main(){
X     LDAPConstraints* cons=new LDAPConstraints;
END-of-ldapc++/files/patch-examples::main.cpp
echo x - ldapc++/files/patch-src::Makefile.in
sed 's/^X//' >ldapc++/files/patch-src::Makefile.in << 'END-of-ldapc++/files/patch-src::Makefile.in'
X--- src/Makefile.in.orig	Tue Sep 23 18:28:09 2003
X+++ src/Makefile.in	Tue Sep 23 18:29:46 2003
X@@ -294,25 +294,6 @@
X 
X .SUFFIXES:
X .SUFFIXES: .cpp .lo .o .obj
X-$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
X-	cd $(top_srcdir) && \
X-	  $(AUTOMAKE) --foreign  src/Makefile
X-Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
X-	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
X-
X-config.h: stamp-h1
X-	@if test ! -f $@; then \
X-	  rm -f stamp-h1; \
X-	  $(MAKE) stamp-h1; \
X-	else :; fi
X-
X-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
X-	@rm -f stamp-h1
X-	cd $(top_builddir) && $(SHELL) ./config.status src/config.h
X-
X-$(srcdir)/config.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
X-	cd $(top_srcdir) && $(AUTOHEADER)
X-	touch $(srcdir)/config.h.in
X 
X distclean-hdr:
X 	-rm -f config.h stamp-h1
END-of-ldapc++/files/patch-src::Makefile.in
echo x - ldapc++/pkg-descr
sed 's/^X//' >ldapc++/pkg-descr << 'END-of-ldapc++/pkg-descr'
XThis is an unstable development release of a LDAPv3 C++ Class Library
X
XIt is based upon the OpenLDAP C-API
X
XAuthor: Ralf Haferkamp <rhafer at suse.de>
XWWW: http://www.OpenLDAP.org/
X
X- Oliver Eikemeier
Xeikemeier at fillmore-labs.com
END-of-ldapc++/pkg-descr
echo x - ldapc++/pkg-plist
sed 's/^X//' >ldapc++/pkg-plist << 'END-of-ldapc++/pkg-plist'
Xinclude/LDAPAsynConnection.h
Xinclude/LDAPAttrType.h
Xinclude/LDAPAttribute.h
Xinclude/LDAPAttributeList.h
Xinclude/LDAPConnection.h
Xinclude/LDAPConstraints.h
Xinclude/LDAPControl.h
Xinclude/LDAPControlSet.h
Xinclude/LDAPEntry.h
Xinclude/LDAPEntryList.h
Xinclude/LDAPException.h
Xinclude/LDAPExtResult.h
Xinclude/LDAPMessage.h
Xinclude/LDAPMessageQueue.h
Xinclude/LDAPModList.h
Xinclude/LDAPModification.h
Xinclude/LDAPObjClass.h
Xinclude/LDAPRebind.h
Xinclude/LDAPRebindAuth.h
Xinclude/LDAPReferenceList.h
Xinclude/LDAPReferralException.h
Xinclude/LDAPResult.h
Xinclude/LDAPSchema.h
Xinclude/LDAPSearchReference.h
Xinclude/LDAPSearchResult.h
Xinclude/LDAPSearchResults.h
Xinclude/LDAPUrl.h
Xinclude/LDAPUrlList.h
Xinclude/StringList.h
Xlib/libldapcpp.a
Xlib/libldapcpp.so
Xlib/libldapcpp.so.0
X%%PORTDOCS%%%%EXAMPLESDIR%%/main.cpp
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-ldapc++/pkg-plist
exit
--- ldapc++.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list