Bug 50694 - mail/qmail-ldap edit mismatch causes CLEARTEXTPASSWD not to be set
Summary: mail/qmail-ldap edit mismatch causes CLEARTEXTPASSWD not to be set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mario Sergio Fujikawa Ferreira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-07 20:50 UTC by Chris Shenton
Modified: 2004-03-20 01:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Shenton 2003-04-07 20:50:17 UTC
Port is mail/qmail-ldap, with versions from Makefile like:

  PORTNAME=	qmail
  PORTVERSION=	${QMAIL_VERSION}.${LDAP_PATCH_DATE}
  CATEGORIES=	mail
  PKGNAMESUFFIX=	-ldap

  PATCH_SITES=	http://www.nrg4u.com/qmail/:ldap
  PATCHFILES=	qmail-ldap-1.03-${LDAP_PATCH_DATE}.patch.gz:ldap
  PATCH_DIST_STRIP+=	-p1
  LDAP_PATCH_DATE=	20020901

Build port with flags to turn on CLEARTEXTPASSWD (which I need),
invoked like:

  make -D WITH_LDAP2 -D WITHOUT_LDAP_CLUSTER WITH_LDAP_DEBUG=yes  WITH_CLEARTEXTPASSWD=yes WITH_DASH_EXT=yes 

The Makefile invokes perl to edit the qmail work/qmail-1.03/Makefile:

  .if defined(WITH_CLEARTEXTPASSWD)
	  @${PERL} -pi -ne "s|# -DCLEARTEXTPASSWD to the LDAPFLAGS|LDAPFLAGS\+=-DCLEARTEXTPASSWD|" \
		  ${WRKSRC}/Makefile
  .endif # WITH_CLEARTEXTPASSWD

But the work/qmail-1.03/Makefile line is:

  # -DCLEARTEXTPASSWD to use cleartext passwords (a bad idea on production
  # systems)

So the port Makefile edit fails and CLEARTEXTPASSWD is NOT set.

Fix: 

Change the perl edit to match the current qmail-ldap patch Makefile text.

Would probably be wise to upgrade this port to a modern version of
qmail-ldap patch too.
How-To-Repeat: 
As above "make" invocations.
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2003-04-09 18:28:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to Maintainer
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2004-03-20 01:40:33 UTC
State Changed
From-To: open->closed

Committed, thanks!