kn 4a044aaefe Fix CopyArrivalDate for timestamps with single digit day of the month
On timestamps such as " 4-Mar-2018 16:49:25 -0500", mbsync would abort if
the Channel option `CopyArrivalDate' was set.

The IMAP protocol specifies a date format beginning with a day-of-month
space-padded to two characters.  The "%d" specifier in glibc's strptime(3)
will consume a space-padded day of month, but OpenBSD's "%d" only accepts
leading zeroes.

Prodded by this issue, our strptime(3) now strips leading spaces with "%e"
as of lib/libc/time/strptime.c r1.25.

Found, analysed and patch (using "%n%d" instead of "%e") from
Evan Silberman <evan at jklol dot net>, thanks!
2019-02-21 19:22:27 +00:00

37 lines
815 B
Makefile

# $OpenBSD: Makefile,v 1.39 2019/02/21 19:22:27 kn Exp $
COMMENT= synchronize IMAP4 and maildir mailboxes
DISTNAME= isync-1.3.0
REVISION= 5
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=isync/}
HOMEPAGE= http://isync.sourceforge.net/
MAINTAINER= Klemens Nanni <kn@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
# uses pledge()
WANTLIB= c crypto db sasl2 ssl z
COMPILER= base-clang ports-clang ports-gcc
LIB_DEPENDS= databases/db/v4 \
security/cyrus-sasl2
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/db4" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
mv ${PREFIX}/share/doc/isync/examples ${PREFIX}/share/examples/isync
.include <bsd.port.mk>