Date: Sat, 19 Jul 2008 20:36:50 -0700 From: Xin LI <delphij@delphij.net> To: Mikhail Goriachev <mikhailg@webanoide.org> Cc: ports@FreeBSD.ORG, delphij@FreeBSD.ORG, d@delphij.net, Peter Pentchev <roam@ringlet.net> Subject: Re: FreeBSD Port: openldap-server-2.4.10 Message-ID: <4882B2D2.40605@delphij.net> In-Reply-To: <20080710182243.17876qn09y73fs84@www.san.navalradio.cl> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mikhail Goriachev wrote: | Quoting Xin LI <delphij@delphij.net>: | |> 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 <delphij@delphij.net> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4882B2D2.40605>