From owner-svn-ports-all@FreeBSD.ORG Mon Sep 8 21:58:21 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6C025B5D; Mon, 8 Sep 2014 21:58:21 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BC1D12CC; Mon, 8 Sep 2014 21:58:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s88LwLAt029643; Mon, 8 Sep 2014 21:58:21 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s88LwKsv029639; Mon, 8 Sep 2014 21:58:20 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201409082158.s88LwKsv029639@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Mon, 8 Sep 2014 21:58:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r367705 - in head/mail/courier: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 21:58:21 -0000 Author: tijl Date: Mon Sep 8 21:58:19 2014 New Revision: 367705 URL: http://svnweb.freebsd.org/changeset/ports/367705 QAT: https://qat.redports.org/buildarchive/r367705/ Log: - Convert to USES=libtool - Avoid USE_AUTOTOOLS - Fix build with clang - Add missing -lcourierauth [1] Reported by: antoine [1] Added: head/mail/courier/files/patch-courier__cdmsgq.C (contents, props changed) head/mail/courier/files/patch-courier__cmlmfetch.C (contents, props changed) head/mail/courier/files/patch-courier__webmlmd.H (contents, props changed) Deleted: head/mail/courier/files/patch-courier__configure.in Modified: head/mail/courier/Makefile Modified: head/mail/courier/Makefile ============================================================================== --- head/mail/courier/Makefile Mon Sep 8 21:24:07 2014 (r367704) +++ head/mail/courier/Makefile Mon Sep 8 21:58:19 2014 (r367705) @@ -3,7 +3,7 @@ PORTNAME= courier PORTVERSION= 0.65.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail ipv6 MASTER_SITES= SF @@ -56,18 +56,12 @@ CALENDIR= /var/spool/calendar MIMETYPES= ${LOCALBASE}/etc/mime.types WITH_TRANSPORT= local esmtp dsn -AUTOMAKE_ARGS= --add-missing -USE_AUTOTOOLS= libtool aclocal automake +USES= fam gettext gmake libtool perl5 pkgconfig tar:bzip2 USE_OPENSSL= yes USE_SUBMAKE= yes -USES= fam gettext gmake perl5 pkgconfig tar:bzip2 - USE_RC_SUBR= courier -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV:= ${CONFIGURE_ENV} - +GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-root-check \ --with-db=db \ --enable-syslog=1 --enable-use-flock \ @@ -92,8 +86,9 @@ CONFIGURE_ARGS= --disable-root-check \ --with-transport='${WITH_TRANSPORT}' \ --with-default-maildrop=${MAILDROPDEFAULT} \ --with-paranoid-smtpext \ - --enable-workarounds-for-imap-client-bugs \ - --cache-file=${WRKDIR}/courier.cache + --enable-workarounds-for-imap-client-bugs +CPPFLAGS+= -I${LOCALBASE}/include +LIBS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip install-perms @@ -138,10 +133,6 @@ PERIODIC_DESC= modify/create periodic.co .include "${.CURDIR}/Makefile.doc" .include "${.CURDIR}/Makefile.own" -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 -USE_GCC= 4.6 -.endif - .if ${PORT_OPTIONS:MLDAP} USE_OPENLDAP= yes WITH_AUTH_LDAP= yes @@ -298,16 +289,8 @@ post-patch: ${WRKSRC}/*/*/*/configure @${REINPLACE_CMD} -E -e 's/(root|bin)[[:space:]]*bin/root wheel/g' \ ${WRKSRC}/courier/perms.sh.in - -pre-configure: - @if [ -f "${WRKDIR}/courier.cache" -a -s "${WRKDIR}/courier.cache" ]; then \ - ${RM} -f "${WRKDIR}/courier.cache"; \ - fi - @cp ${LOCALBASE}/share/gettext/po/Makefile.in.in ${WRKSRC}/pcp/po - @cp ${LOCALBASE}/share/libtool/config/ltmain.sh ${WRKSRC} -.for oldlt in . bdbobj cgi courier courier/libs courier/filters courier/filters/perlfilter courier/module.dsn courier/module.esmtp courier/module.local courier/module.uucp gdbmobj gpglib http11 imap ldapaddressbook libhmac liblock maildir maildrop makedat md5 numlib pcp random128 rfc822 rfc1035 rfc2045 sha1 tcpd unicode webmail - @cd ${WRKSRC}/${oldlt} && ${SETENV} ${SCRIPTS_ENV} ${SH} /usr/local/bin/aclocal -.endfor + @${REINPLACE_CMD} '/^courieresmtp_LDADD =/s/$$/ -lcourierauth/' \ + ${WRKSRC}/courier/module.esmtp/Makefile.in post-build: @${PERL} -pi -e 's|^(auth)\s+(required).*|$$1\t\t$$2\tpam_unix.so\ttry_first_pass|g;' \ Added: head/mail/courier/files/patch-courier__cdmsgq.C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/courier/files/patch-courier__cdmsgq.C Mon Sep 8 21:58:19 2014 (r367705) @@ -0,0 +1,10 @@ +--- courier/cdmsgq.C.orig 2009-05-02 15:11:56 UTC ++++ courier/cdmsgq.C +@@ -38,6 +38,7 @@ + #include + #include "numlib/numlib.h" + ++#include + #include + #include + #include Added: head/mail/courier/files/patch-courier__cmlmfetch.C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/courier/files/patch-courier__cmlmfetch.C Mon Sep 8 21:58:19 2014 (r367705) @@ -0,0 +1,11 @@ +--- courier/cmlmfetch.C.orig 2009-11-08 18:14:47 UTC ++++ courier/cmlmfetch.C +@@ -334,7 +334,7 @@ int doindex(const char *n) + ack << std::setiosflags(std::ios::right) + << std::setw(10) + << msgs[i] +- << resetiosflags(std::ios::right) << " " ++ << std::resetiosflags(std::ios::right) << " " + << std::setw(0) << msginfo[i].msgsubj << std::endl; + ack << std::setiosflags(std::ios::right) + << std::setw(10) Added: head/mail/courier/files/patch-courier__webmlmd.H ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/courier/files/patch-courier__webmlmd.H Mon Sep 8 21:58:19 2014 (r367705) @@ -0,0 +1,11 @@ +--- courier/webmlmd.H.orig 2007-12-17 12:09:18 UTC ++++ courier/webmlmd.H +@@ -49,7 +49,7 @@ namespace webmlmd { + T t; + + t.reserve(s.size() * 6 / 5); +- class T::iterator b=s.begin(), e=s.end(), p=b; ++ typename T::iterator b=s.begin(), e=s.end(), p=b; + + while (b != e) + {