Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2013 19:47:01 GMT
From:      "Timur I. Bakeyev" <timur@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        aweits@rit.edu
Subject:   ports/175896: update databases/ldb to 1.1.15 version
Message-ID:  <201302061947.r16Jl1N1099138@freefall.freebsd.org>
Resent-Message-ID: <201302061950.r16Jo0ug099263@freefall.freebsd.org>

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

>Number:         175896
>Category:       ports
>Synopsis:       update databases/ldb to 1.1.15 version
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 06 19:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Timur I. Bakeyev
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r245102: Sun Jan 6 15:01:33 UTC 2013 root@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64


>Description:

Please, update databases/ldb port to the most recent version 1.1.15.

Also, I'd appreciate if the maintainership of this port has been passed
to me, as it's an essential part of the Samba4 build and belongs to the
rest of Samba sub-ports, like tdb, talloc and tevent.

>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:
#
#	ldb/Makefile
#	ldb/distinfo
#	ldb/files
#	ldb/pkg-descr
#
echo x - ldb/Makefile
sed 's/^X//' >ldb/Makefile << '51a992e035f98ed80ce84a08fe42e4d0'
X# $FreeBSD$
X
XPORTNAME=		ldb
XPORTVERSION=		1.1.15
XPORTREVISION=		0
XPORTEPOCH=		0
XCATEGORIES=		databases
XMASTER_SITES=		${MASTER_SITE_SAMBA}
XMASTER_SITE_SUBDIR=	${PORTNAME}
X
XMAINTAINER=		timur@FreeBSD.org
XCOMMENT=		LDAP-like embedded database
X
XLICENSE=		GPLv3
X
XCONFLICTS=		*samba3[0-4]-3.*
X
XUSE_PYTHON_BUILD=	-2.7
XUSE_LDCONFIG=		yes
XHAS_CONFIGURE=		yes
XWAF_TOOL=		buildtools/bin/waf
XCONFIGURE_SCRIPT=	${WAF_TOOL} configure
XUSE_PKGCONFIG=		build
X
XUSE_OPENLDAP=		yes
X
XMAKE_JOBS_SAFE=		yes
X
XPKGCONFIGDIR?=		${PREFIX}/libdata/pkgconfig
XPLIST_SUB+=		PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
X
X.include <bsd.port.options.mk>
X
XBUILD_DEPENDS+=		talloc>=2.0.8:${PORTSDIR}/devel/talloc \
X			tevent>=0.9.17:${PORTSDIR}/devel/tevent \
X			tdb>=1.2.11:${PORTSDIR}/databases/tdb \
X			popt>=0:${PORTSDIR}/devel/popt
XRUN_DEPENDS:=		${BUILD_DEPENDS}
X
XCONFIGURE_ARGS+=	--bundled-libraries=!talloc,!tevent,!tdb,!popt \
X			--with-modulesdir=${PREFIX}/lib/shared-modules \
X			--with-privatelibdir=${PREFIX}/lib/ldb
X
XMAN1=			ldbadd.1 \
X			ldbdel.1 \
X			ldbedit.1 \
X			ldbmodify.1 \
X			ldbrename.1 \
X			ldbsearch.1
X
XMAN3=			ldb.3
X
XPLIST_DIRSTRY=		lib/ldb \
X			lib/shared-modules/ldb \
X			lib/shared-modules
X
XPLIST_FILES=		bin/ldbedit \
X			bin/ldbmodify \
X			bin/ldbadd \
X			bin/ldbdel \
X			bin/ldbsearch \
X			bin/ldbrename \
X			include/ldb_version.h \
X			include/ldb_handlers.h \
X			include/ldb_errors.h \
X			include/ldb.h \
X			include/ldb_module.h \
X			lib/libldb.so \
X			lib/libldb.so.1 \
X			lib/ldb/libldb-cmdline.so \
X			lib/shared-modules/ldb/asq.so \
X			lib/shared-modules/ldb/ldap.so \
X			lib/shared-modules/ldb/paged_results.so \
X			lib/shared-modules/ldb/paged_searches.so \
X			lib/shared-modules/ldb/rdn_name.so \
X			lib/shared-modules/ldb/sample.so \
X			lib/shared-modules/ldb/server_sort.so \
X			lib/shared-modules/ldb/skel.so \
X			lib/shared-modules/ldb/tdb.so \
X			%%PKGCONFIGDIR%%/ldb.pc
X
XCONFIGURE_ENV+=		XSLTPROC="/usr/bin/true"
XCONFIGURE_ENV+=		NOCOLOR=yes
XMAKE_ENV+=		NOCOLOR=yes
X
XCONFIGURE_ARGS+=	--mandir=${MANPREFIX}/man
X
X.if !defined(DISABLE_MAKE_JOBS) && !defined(MAKE_JOBS_UNSAFE)
X.if defined(MAKE_JOBS_SAFE) || defined(FORCE_MAKE_JOBS)
XCONFIGURE_ARGS+=	--jobs=${MAKE_JOBS_NUMBER}
X_MAKE_JOBS=		--jobs=${MAKE_JOBS_NUMBER}
X.endif
X.endif
X
XUSE_PYTHON_RUN=		yes
XPLIST_FILES+=		include/pyldb.h \
X			lib/libpyldb-util.so \
X			lib/libpyldb-util.so.1 \
X			%%PYTHON_SITELIBDIR%%/ldb.so \
X			%%PKGCONFIGDIR%%/pyldb-util.pc
XPLIST_DIRSTRY+=		%%PYTHON_SITELIBDIR%% \
X			%%PYTHON_LIBDIR%%
X
XALL_TARGET=		build
XINSTALL_TARGET=		install
X
X.include <bsd.port.pre.mk>
X
XIGNORE_NONTHREAD_PYTHON=needs port lang/python${PYTHON_SUFFIX} to be build with THREADS support
X
Xpost-patch:
X			@${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
X				${BUILD_WRKSRC}/wscript
X
X# Use threading (or multiprocessing) but not thread (renamed in python 3+).
Xpre-configure:
X			@if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \
X				${ECHO_CMD}; \
X				${ECHO_MSG} "===>  ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \
X				${ECHO_CMD}; \
X				${FALSE}; \
X			fi
X
Xpre-build:
X			-${MKDIR} ${BUILD_WRKSRC}/bin/default/man
X.for man in ${MAN1} ${MAN3}
X			${INSTALL_MAN} ${FILESDIR}/${man} ${BUILD_WRKSRC}/bin/default/man
X.endfor
X
Xdo-build:
X			@(cd ${BUILD_WRKSRC}; \
X			if ! ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${BUILD_WRKSRC}/${WAF_TOOL} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}; then \
X				if [ x != x${BUILD_FAIL_MESSAGE} ] ; then \
X					${ECHO_MSG} "===> Compilation failed unexpectedly."; \
X					(${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
X				fi; \
X			${FALSE}; \
X			fi)
X
Xdo-install:
X			@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${INSTALL_WRKSRC}/${WAF_TOOL} ${MAKE_ARGS} ${INSTALL_TARGET})
X
X.include <bsd.port.post.mk>
51a992e035f98ed80ce84a08fe42e4d0
echo x - ldb/distinfo
sed 's/^X//' >ldb/distinfo << '697eb3bdef541b6ced9da4416463f7cd'
XSHA256 (ldb-1.1.15.tar.gz) = 6bd8317e82747461394ab8ad1ee5873589d9a46d12f021571aca9fac45de8997
XSIZE (ldb-1.1.15.tar.gz) = 1121684
697eb3bdef541b6ced9da4416463f7cd
echo c - ldb/files
mkdir -p ldb/files > /dev/null 2>&1
echo x - ldb/pkg-descr
sed 's/^X//' >ldb/pkg-descr << '76331888389dc8d6c8f19ff13d82f9ba'
Xldb is a LDAP-like embedded database.
X
Xldb provides a fast database with an LDAP-like API designed to be used
Xwithin an application.
X
XIn some ways it can be seen as a intermediate solution between key-value
Xpair databases and a real LDAP database.
X
XWWW: http://ldb.samba.org/
76331888389dc8d6c8f19ff13d82f9ba
exit



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



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