Commit graph

213 commits

Author SHA1 Message Date
Doug Barton
29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00
Xin LI
2c8388d913 inet_ntoa is not thread-safe as it uses a static store, which may
result in a race condition, where for instance an IP based ACL
might result in a denial decision.

Fix this by changing these inet_ntoa's to inet_ntop with on-stack
store.

Reported by:	Damian Hazen <dhazen lbl.gov>
2011-05-02 19:22:41 +00:00
Xin LI
15a52eb805 Make OpenLDAP libraries link against libfetch when requested and not only
binaries linking against liblutil.  This should fix build issue when FETCH
is enabled.

Prompted by:	kib
2011-04-02 23:00:51 +00:00
Xin LI
42187a24f9 Disable FETCH support by default, as it adds a new requirement to fetch(3)
library which is unexpected by most applications.
2011-03-28 20:45:41 +00:00
Xin LI
f2a2258d9d Update to 2.4.25. 2011-03-28 08:34:39 +00:00
Xin LI
a4592da8ce Add a patch from OpenLDAP ITS 6832 to fix build when the user uses a custom
GCC version.

PORTREVISION intentionally not bumped because this does not affect compiled
binary.

PR:		ports/155743
Submitted by:	mm
2011-03-21 12:36:12 +00:00
Xin LI
ca858ffb67 Update OpenLDAP to 2.4.24.
Unfortunately this version requires a shared library version bump again.
2011-02-24 21:50:08 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +00:00
Xin LI
16a7ce183e WITH_SMBPWD should apply only when building servers.
PR:		ports/148936
2010-08-02 19:25:26 +00:00
Xin LI
58a443aa82 Update to 2.4.23. This is a pure bugfix release that addresses several
reliability issues.

Feature safe:	yes
2010-07-01 19:04:42 +00:00
Xin LI
561386e500 - SASL is not default since 2007 so remove an unneeded test about WITHOUT_SASL
which causes confusion that defining WITHOUT_SASL as building
   openldap24-sasl-client would get you openldap24-client.
 - Add an option to build without fetch(3) library, which in turn depends on
   base OpenSSL. [1]
 - Promote SASL and FETCH options to be on both client and library ports.
 - Both SASL and FETCH remains their defaults (no and yes) so no PORTREVISION
   bump.

PR:		ports/145337 [1]
Feature safe:	yes
2010-06-30 07:20:39 +00:00
Xin LI
8d4d806278 Mark Berkeley DB 5.0 as invalid combination for now. OpenLDAP does not
officially supports this (yet).

Note that BDB 5.0 do work with OpenLDAP with some trivial tweaks to the
configure scripts.
2010-05-15 00:27:20 +00:00
Xin LI
46912ba00c Update to 2.4.22 2010-04-27 20:11:03 +00:00
Doug Barton
86922094aa RC_SUBR_SUFFIX has not been needed for a long time now, all supported
versions of FreeBSD now use /etc/rc.subr and rc.d scripts without .sh
appended to the script name.
2010-03-27 06:14:03 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Xin LI
d45eb42f86 Update to 2.4.21.
Sponsored by:	iXsystems, Inc.
2009-12-23 23:40:46 +00:00
Xin LI
c54c0d5140 Update to 2.4.20.
Sponsored by:	iXsystems, Inc.
2009-11-30 19:12:42 +00:00
Xin LI
14e531e2d0 Update to 2.4.19. 2009-10-06 18:19:18 +00:00
Xin LI
44414fa4a6 Use same logic when creating the name for client package, as what we have
used in building 'em.

PR:		ports/135622
Submitted by:	Christian Ullrich <chris+freebsd chrullrich net>
2009-10-01 00:08:02 +00:00
Xin LI
79bd2252a7 Add a missing / or otherwise the generated script would point to wrong
directory.

PR:		ports/138618
Reported by:	Alexander Wittig <alexander wittig name>
2009-09-07 22:27:13 +00:00
Xin LI
b72bc7011a o Update to 2.4.18.
o Add support to slapd_krb5_ktname, which exports an environment variable
   KRB5_KTNAME so that user can specify alternative Kerberos key table. [1]
 o Add support to run slapd with cn=config style configuration. [2]

Reported by:	Matthew Hambley <matthew at aether demon co uk> [1]
		Ulrich Spoerlein <uspoerlein at gmail com> [2]
Submitted by:	Nikolai Nespor <nikolai nespor at basis-wein at> [2]
2009-09-07 09:46:19 +00:00
Jeremy Messenger
789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00
Xin LI
2f8440aaf9 Update to OpenLDAP 2.4.17. Unfortunately a shared library bump is needed.
UPDATING to follow.
2009-07-20 08:13:12 +00:00
Doug Barton
0175383f0a Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.

1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).

No PORTREVISION bumps because all of these changes are noops.
2009-07-15 16:56:10 +00:00
Xin LI
371354522f Disable the detection of uuid/uuid.h, which brings an unwanted dependency
which is not always being installed.

Reported by:	Panagiotis Christias <p.christias noc.ntua.gr>
2009-04-30 18:48:04 +00:00
Xin LI
c462cd8e1d Update to 2.4.16 2009-04-06 01:59:57 +00:00
Xin LI
e860c694c2 Vendor fix to correct incorrect fix of ITS#5849. 2009-03-02 18:12:33 +00:00
Xin LI
cdeda2a7b9 Update to 2.4.15 2009-02-24 23:47:47 +00:00
Xin LI
515e0da150 - Expose DYNACL and ACI options as configuration menu.
- Add knobs to build COLLECT, DEREF[1] overlaies.
 - Remove knob for DENYOP.
 - Add pmi schema.

Reported by:	Piotr Buliński <piotr bulinski pl> [1]
2009-02-17 23:02:15 +00:00
Xin LI
dfab15e826 Update OpenLDAP to 2.4.14. 2009-02-17 02:54:37 +00:00
Xin LI
90dceb1ff4 Update to 2.4.13. Note that this requires a full rebuild of all
packages that depends on openldap24-client due to a shared library
version bump.
2009-01-05 05:49:35 +00:00
Sergey Skvortsov
e6a9937c49 Fix support of multiple database backend definitions.
PR:		ports/127245
Submitted by:	Alexander Kriventsov <akriventsov xx masterhost.ru>
Approved by:	maintainer timeout
2008-09-30 15:38:53 +00:00
Sergey Skvortsov
6c937fdd77 Unbreak install for "smbk5pwd".
Blame to:	me
2008-09-05 16:46:29 +00:00
Sergey Skvortsov
d68f711af0 Add option for smbk5pwd overlay.
PR:		ports/126367
Submitted by:	Alexander Kriventsov <akriventsov xx masterhost.ru>
Approved by:	maintainer timeout
2008-09-04 17:36:25 +00:00
Rong-En Fan
741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00
Xin LI
38231e45ad - Overhaul the way we handle with LDAP data directory, populate
the data directory upon start, not upon install. [1]
 - Update to OpenLDAP 2.4.11.
 - Modify bsd.port.mk to fit with the shared libary version bump [2]
   This has no impact to package building yet as 2.4.x is not the
   default version.

Submitted by:	Mikhail Goriachev <mikhailg webanoide org> [1]
Approved by:	portmgr (marcus) [2]
2008-07-20 03:35:42 +00:00
Xin LI
426507053f Detect OpenLDAP data directory from the configuration and use it for
further operation.

Submitted by:	Mikhail Goriachev <mikhailg webanoide org>
2008-07-07 20:54:21 +00:00
Xin LI
d7595e0cc6 Allow building of 'sock' backend.
PR:		ports/124560
Submitted by:	Stef Walter <stef memberwebs com>
2008-06-18 18:59:44 +00:00
Rong-En Fan
cb7d085915 - Update to 2.4.10
Requested by:	delphij (maintainer)
2008-06-11 05:53:37 +00:00
Xin LI
fd2155bdde Update to 2.4.9. 2008-05-07 21:20:44 +00:00
Xin LI
5c6f1b9f5a Sync overlays with configure script, while I'm there, also sync there
default settings to reflect the reality and sort overlay options.
2008-03-25 18:08:31 +00:00
Mark Linimon
fede29f849 Fix plist of slave ports.
Hat:		portmgr
2008-02-24 03:11:56 +00:00
Xin LI
5258bd4b71 Update to 2.4.9. While there, remove the spurious icu dependency,
which is not used at the moment, and will appear if user has
installed icu on their system.
2008-02-19 22:15:56 +00:00
Xin LI
40897dbea5 Avoid confusion when SASL is enabled for server. 2008-01-16 18:58:12 +00:00
Xin LI
0b798c18d2 Update to 2.4.7. 2007-12-13 21:52:15 +00:00
Xin LI
0bba516c96 Oops, previous patch was committed from a wrong tree. Here is
the correct fix.
2007-12-11 20:57:22 +00:00
Xin LI
97481b4ced Correct slapd_owner case matching.
PR:		ports/117229
Reported by:	Tetsuya Uemura <t_uemura at macome.co.jp>
2007-12-11 20:56:10 +00:00
Xin LI
a924e843ce Update to 2.4.6.
This is the first production release of the OpenLDAP 2.4 series,
and it fixes several security issues, as mentioned in vuln.xml
item db449245-870d-11dc-a3ec-001921ab2fa4.

Note that this is generally a no-op for most users because this
version is not (yet) set as default OpenLDAP implementation.

Security:	db449245-870d-11dc-a3ec-001921ab2fa4
Approved by:	portmgr (linimon)
2007-11-01 06:32:10 +00:00
Xin LI
5cbdf0fa3f Update to 2.4.5 beta. 2007-09-05 06:37:13 +00:00
Xin LI
c27fd2d7ca Mark as incompatible with Berkeley DB 4.6. Next OpenLDAP
alpha release will hopefully support it, though.
2007-08-23 02:09:14 +00:00