svn commit: r448528 - in head/mail/courier-imap: . files

Guido Falsi madpilot at FreeBSD.org
Tue Aug 22 13:19:50 UTC 2017


Author: madpilot
Date: Tue Aug 22 13:19:49 2017
New Revision: 448528
URL: https://svnweb.freebsd.org/changeset/ports/448528

Log:
  - Update mail/courier-imap to 4.18.1
  - Convert to USES=localbase
  - Convert to OPTION helpers (where safe)
  - Use a pkg-message in place of ECHO_MSG

Added:
  head/mail/courier-imap/files/pkg-message.in   (contents, props changed)
Modified:
  head/mail/courier-imap/Makefile
  head/mail/courier-imap/distinfo

Modified: head/mail/courier-imap/Makefile
==============================================================================
--- head/mail/courier-imap/Makefile	Tue Aug 22 13:07:26 2017	(r448527)
+++ head/mail/courier-imap/Makefile	Tue Aug 22 13:19:49 2017	(r448528)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	courier-imap
-PORTVERSION=	4.18.0
+PORTVERSION=	4.18.1
 PORTEPOCH=	2
 CATEGORIES=	mail ipv6
 MASTER_SITES=	SF/courier/imap/${PORTVERSION}
@@ -15,18 +15,19 @@ RUN_DEPENDS=	courierauthconfig:security/courier-authli
 		${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool
 LIB_DEPENDS=	libcourier-unicode.so:devel/courier-unicode
 
-USES=		gmake perl5 ssl tar:bzip2
+USES=		gmake localbase:ldflags perl5 ssl tar:bzip2
 GNU_CONFIGURE=	yes
 USE_RC_SUBR=	courier-imap-imapd courier-imap-imapd-ssl \
 		courier-imap-pop3d courier-imap-pop3d-ssl
 
-CPPFLAGS+=	-I${LOCALBASE}/include -I${PREFIX}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -L${PREFIX}/lib
 CONFIGURE_ENV=	REHASH=${SCRIPTDIR}/c_rehash
 
 MAKE_ENV:=	${CONFIGURE_ENV}
 ALL_TARGET=	all makeimapaccess makedat
 
+SUB_FILES=	pkg-message
+SUB_LIST=	CONFDIR=${CONFDIR}
+
 #
 # options available:
 #
@@ -59,14 +60,15 @@ CONFIGURE_ARGS=	--sysconfdir=${CONFDIR} \
 		--with-locking-method=fcntl \
 		COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig
 
-.include <bsd.port.options.mk>
+GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls \
+			libgcrypt.so:security/libgcrypt
+GNUTLS_CONFIGURE_WITH=	gnutls
+GNUTLS_USES=		pkgconfig
 
-.if ${PORT_OPTIONS:MGNUTLS}
-CONFIGURE_ARGS+=--with-gnutls
-LIB_DEPENDS+=	libgnutls.so:security/gnutls
-USES+=		pkgconfig
-.endif
+IPV6_CONFIGURE_OFF=	--without-ipv6
 
+TRASHQUOTA_CONFIGURE_ON=--with-trashquota
+
 .include <bsd.port.pre.mk>
 
 .if exists(${.CURDIR}/../../security/courier-authlib/Makefile.dep)
@@ -86,19 +88,6 @@ CONFIGURE_ARGS+=--with-db=db  --with-userdb=${USERDB}
 .endif
 .endif
 
-.if ! ${PORT_OPTIONS:MIPV6}
-CONFIGURE_ARGS+=--without-ipv6
-.endif
-
-.if ${PORT_OPTIONS:MTRASHQUOTA}
-CONFIGURE_ARGS+=--with-trashquota
-.endif
-
-.if ${PORT_OPTIONS:MFAM}
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-.endif
-
 EXTRA_DOCS=	AUTHORS INSTALL NEWS \
 		libs/imap/ChangeLog \
 		libs/imap/README \
@@ -109,11 +98,11 @@ EXTRA_DOCS=	AUTHORS INSTALL NEWS \
 		libs/maildir/README.sharedfolders.txt \
 		libs/tcpd/README.couriertls \
 
-post-patch:
-.if ! ${PORT_OPTIONS:MFAM}
+post-patch-FAM-off:
 	@${REINPLACE_CMD} -e 's|$$LIBFAM||g; s|HAVE_FAM|DO_NOT_HAVE_FAM|g' \
 		${WRKSRC}/libs/maildir/configure
-.endif
+
+post-patch:
 	@${REINPLACE_CMD} -e 's|^case x$$lockmethod in|${TEST} \&\& &|g' \
 		${WRKSRC}/libs/liblock/configure
 	@${REINPLACE_CMD} -e 's|%%INSTALL_MAN%%|${INSTALL_MAN}|' \
@@ -132,18 +121,5 @@ post-install:
 .for a in ${EXTRA_DOCS}
 	${INSTALL_DATA} ${WRKSRC}/${a} ${STAGEDIR}${DOCSDIR}
 .endfor
-
-	@${ECHO_MSG} "In case you use authpam, you should put the following lines"
-	@${ECHO_MSG} "in your /etc/pam.d/imap"
-	@${ECHO_MSG} "auth    required    pam_unix.so         try_first_pass"
-	@${ECHO_MSG} "account required    pam_unix.so         try_first_pass"
-	@${ECHO_MSG} "session required    pam_permit.so"
-
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "You will have to run ${DATADIR}/mkimapdcert to create"
-	@${ECHO_MSG} "a self-signed certificate if you want to use imapd-ssl."
-	@${ECHO_MSG} "And you will have to copy and edit the *.dist files to *"
-	@${ECHO_MSG} "in ${CONFDIR}."
-	@${ECHO_MSG} ""
 
 .include <bsd.port.post.mk>

Modified: head/mail/courier-imap/distinfo
==============================================================================
--- head/mail/courier-imap/distinfo	Tue Aug 22 13:07:26 2017	(r448527)
+++ head/mail/courier-imap/distinfo	Tue Aug 22 13:19:49 2017	(r448528)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1499031625
-SHA256 (courier-imap-4.18.0.tar.bz2) = fa8c2e3b71295c9fa124dfad350f688263ddf7f2b15709f2d44d0f9722de7c52
-SIZE (courier-imap-4.18.0.tar.bz2) = 3202389
+TIMESTAMP = 1503327728
+SHA256 (courier-imap-4.18.1.tar.bz2) = 371b95b29cf6aae3c5967cb92a52c018059950ffb46b540d187b29d57f2f9a0b
+SIZE (courier-imap-4.18.1.tar.bz2) = 3203392

Added: head/mail/courier-imap/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/courier-imap/files/pkg-message.in	Tue Aug 22 13:19:49 2017	(r448528)
@@ -0,0 +1,11 @@
+In case you use authpam, you should put the following lines
+in your /etc/pam.d/imap:
+
+auth    required    pam_unix.so         try_first_pass
+account required    pam_unix.so         try_first_pass
+session required    pam_permit.so
+
+You will have to run %%DATADIR%%/mkimapdcert to create
+a self-signed certificate if you want to use imapd-ssl.
+And you will have to copy and edit the *.dist files to *
+in %%CONFDIR%%.


More information about the svn-ports-all mailing list