From owner-freebsd-ports@FreeBSD.ORG Sun Jul 20 03:37:01 2008 Return-Path: Delivered-To: ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9619B1065671; Sun, 20 Jul 2008 03:37:01 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2C6EA8FC08; Sun, 20 Jul 2008 03:37:01 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 4BD8C2844E; Sun, 20 Jul 2008 11:37:00 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 028EAEB9186; Sun, 20 Jul 2008 11:37:00 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id xRNen9Z5Bw9c; Sun, 20 Jul 2008 11:36:53 +0800 (CST) Received: from charlie.delphij.net (c-69-181-135-56.hsd1.ca.comcast.net [69.181.135.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 42D03EB91F8; Sun, 20 Jul 2008 11:36:52 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=qGkevRf7Tha3N/4koMHt6ZktBqoKrnUiRZJtKGdkWCoJTQL4HSfkwEyvrz8mHhCbX 12J6R5wVbM3iVhNabpftw== Message-ID: <4882B2D2.40605@delphij.net> Date: Sat, 19 Jul 2008 20:36:50 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Mikhail Goriachev References: <20080704132215.36754y85s8y8kisk@www.san.navalradio.cl> <20080704221500.GA1118@straylight.m.ringlet.net> <20080704223432.49566vn60rygljk8@www.san.navalradio.cl> <20080705075249.GA1145@straylight.m.ringlet.net> <20080707164339.10063b9lns9zqh2c@www.san.navalradio.cl> <487282F9.9020701@delphij.net> <20080710182243.17876qn09y73fs84@www.san.navalradio.cl> In-Reply-To: <20080710182243.17876qn09y73fs84@www.san.navalradio.cl> X-Enigmail-Version: 0.95.6 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.ORG, delphij@FreeBSD.ORG, d@delphij.net, Peter Pentchev Subject: Re: FreeBSD Port: openldap-server-2.4.10 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 03:37:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mikhail Goriachev wrote: | Quoting Xin LI : | |> I have just committed it as openldap-server-2.4.10_1. We may want to |> revise the way we handle DATABASEDIR, which we used to create |> automatically upon installation. Using values from configuration file |> would be definitely better, thanks for your submission! | | Thanks a lot for that! | | I revised a few things in regard with the DATABASEDIR which led to some | modifications. It goes like this: | | 1.- When installing from ports, the DATABASEDIR will be always created | no matter what the pkg-plist says. However, when installing a packaged | version, then it is possible to control the creation of the directory. | | Patch for "patch-servers::slapd::Makefile.in" disables the automatic | installation of the DATABASEDIR and makes installation from ports and | package consistent with one another. | | 2.- Since automatic creation of the DATABASEDIR has been disabled, then | the slapd script uses the value of directory from slapd.conf, creates | the folder, populates it (puts DB_CONFIG) and starts slap daemon. | | Patch for "slapd.sh.in" automatically handles the DATABASEDIR from the | "directory" entry located in slapd.conf. Also it quenches the following | error by placing DB_CONFIG: | | bdb_db_open: warning - no DB_CONFIG file found in directory | /var/db/openldap-data: (2). Expect poor performance for suffix | "dc=my-domain,dc=com". | | 3.- When un-installing, a message is shown about deleting the database | permanently and an example of the "rm" command is displayed. | | Patch for "pkg-deinstall.in" detects if alternative or default | DATABASEDIR is active, formats and displays the message accordingly. | | 4.- After above modifications, there's no need of creating and removing | automatically the DATABASEDIR. | | Patch for "pkg-plist" disables the creation and deletion of the | DATABASEDIR. I have committed these changes as part of OpenLDAP 2.4.11, thanks for your submission! - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiCstEACgkQi+vbBBjt66AfugCgghzVsDRpsAjgzQTD+mhCF5MF 9QoAmgO1/ed8fnXKsOh/T5YzLWwNAiHJ =g39l -----END PGP SIGNATURE-----