From owner-freebsd-ports@FreeBSD.ORG Sat Jul 5 07:53:08 2008 Return-Path: Delivered-To: ports@FreeBSD.org Received: from straylight.ringlet.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with SMTP id B032D1065688 for ; Sat, 5 Jul 2008 07:53:07 +0000 (UTC) (envelope-from roam@ringlet.net) Received: (qmail 6305 invoked by uid 1000); 5 Jul 2008 07:52:49 -0000 Date: Sat, 5 Jul 2008 10:52:49 +0300 From: Peter Pentchev To: Mikhail Goriachev Message-ID: <20080705075249.GA1145@straylight.m.ringlet.net> References: <20080704132215.36754y85s8y8kisk@www.san.navalradio.cl> <20080704221500.GA1118@straylight.m.ringlet.net> <20080704223432.49566vn60rygljk8@www.san.navalradio.cl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20080704223432.49566vn60rygljk8@www.san.navalradio.cl> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ports@FreeBSD.org, delphij@FreeBSD.org Subject: Re: FreeBSD Port: openldap-server-2.4.10 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2008 07:53:08 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 04, 2008 at 10:34:32PM -0400, Mikhail Goriachev wrote: > Quoting Peter Pentchev : >=20 > > On Fri, Jul 04, 2008 at 01:22:15PM -0400, Mikhail Goriachev wrote: > >> Hi, > > [snip] > >> I slapped together a workaround. Here's a "patch", maybe the idea of > >> it will be of some use. > > > > Just a minor comment on the patch: > > > >> +DBDIR=3D`grep directory /usr/local/etc/openldap/slapd.conf | awk '{ > >> print $2 }'` > > > > This is better written as > > > > awk '/directory/ {print $2}' /usr/local/etc/openldap/slapd.conf >=20 > Nice one! >=20 > > or possibly (I'm not quite familiar with the slapd.conf syntax) even: > > > > awk '$1 =3D=3D "directory" {print $2}' /usr/local/etc/openldap/slapd.= conf >=20 > They both work but I like the first one more. Actually the second one might be better - the first one may be confused by the string "directory" appearing either in a comment or in the string value of some other parameter or even in the *name* of some other parameter. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence was in the past tense. --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhvKFEACgkQ7Ri2jRYZRVNzEACfWRTm9GracCOPHrDMl4KY1e7S yrYAoLZ8UchLH8WK8n8d263Y+V8HARkn =JKQy -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--