diff options
author | tijl <tijl@FreeBSD.org> | 2014-09-09 05:58:19 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-09-09 05:58:19 +0800 |
commit | c0c6f387acce69ff8f4233a156216f163735358e (patch) | |
tree | a9a9adf7c2bf4d2e9ed4b8f5b800795ae2d4749f /mail/courier | |
parent | 9d15dbe8bce43bf9e1455df83e05fa8880ebcbd8 (diff) | |
download | freebsd-ports-gnome-c0c6f387acce69ff8f4233a156216f163735358e.tar.gz freebsd-ports-gnome-c0c6f387acce69ff8f4233a156216f163735358e.tar.zst freebsd-ports-gnome-c0c6f387acce69ff8f4233a156216f163735358e.zip |
- Convert to USES=libtool
- Avoid USE_AUTOTOOLS
- Fix build with clang
- Add missing -lcourierauth [1]
Reported by: antoine [1]
Diffstat (limited to 'mail/courier')
-rw-r--r-- | mail/courier/Makefile | 33 | ||||
-rw-r--r-- | mail/courier/files/patch-courier__cdmsgq.C | 10 | ||||
-rw-r--r-- | mail/courier/files/patch-courier__cmlmfetch.C | 11 | ||||
-rw-r--r-- | mail/courier/files/patch-courier__configure.in | 13 | ||||
-rw-r--r-- | mail/courier/files/patch-courier__webmlmd.H | 11 |
5 files changed, 40 insertions, 38 deletions
diff --git a/mail/courier/Makefile b/mail/courier/Makefile index 35fa6b4cc68a..58a421887566 100644 --- a/mail/courier/Makefile +++ b/mail/courier/Makefile @@ -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.conf .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;' \ diff --git a/mail/courier/files/patch-courier__cdmsgq.C b/mail/courier/files/patch-courier__cdmsgq.C new file mode 100644 index 000000000000..b1f0f7a08038 --- /dev/null +++ b/mail/courier/files/patch-courier__cdmsgq.C @@ -0,0 +1,10 @@ +--- courier/cdmsgq.C.orig 2009-05-02 15:11:56 UTC ++++ courier/cdmsgq.C +@@ -38,6 +38,7 @@ + #include <utime.h> + #include "numlib/numlib.h" + ++#include <functional> + #include <vector> + #include <list> + #include <algorithm> diff --git a/mail/courier/files/patch-courier__cmlmfetch.C b/mail/courier/files/patch-courier__cmlmfetch.C new file mode 100644 index 000000000000..80a27c2f0156 --- /dev/null +++ b/mail/courier/files/patch-courier__cmlmfetch.C @@ -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) diff --git a/mail/courier/files/patch-courier__configure.in b/mail/courier/files/patch-courier__configure.in deleted file mode 100644 index 972abe3b7a7b..000000000000 --- a/mail/courier/files/patch-courier__configure.in +++ /dev/null @@ -1,13 +0,0 @@ ---- courier/configure.in.orig 2009-09-05 13:59:26.000000000 +0200 -+++ courier/configure.in 2010-02-15 19:44:35.000000000 +0100 -@@ -77,6 +77,10 @@ - esac - AC_SUBST(testmode) - -+AC_ARG_WITH(piddir, [ --with-piddir Directory where imapd.pid is created ], piddir="$withval", piddir=$localstatedir/run) -+ -+AC_SUBST(piddir) -+ - version=`cat ../version` - - COPYRIGHT="Courier $version Copyright 1999-2008 Double Precision, Inc." diff --git a/mail/courier/files/patch-courier__webmlmd.H b/mail/courier/files/patch-courier__webmlmd.H new file mode 100644 index 000000000000..0af669fecaf4 --- /dev/null +++ b/mail/courier/files/patch-courier__webmlmd.H @@ -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) + { |