aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2017-08-22 21:19:49 +0800
committermadpilot <madpilot@FreeBSD.org>2017-08-22 21:19:49 +0800
commitcebfaddf169b1718be5c0c9fd3ad897044c9837b (patch)
tree9584a6506989d2e9ded146a25abd5a463761b028
parent90d03c94f83bafc1acef64ff597a4c5e609dfcac (diff)
downloadfreebsd-ports-gnome-cebfaddf169b1718be5c0c9fd3ad897044c9837b.tar.gz
freebsd-ports-gnome-cebfaddf169b1718be5c0c9fd3ad897044c9837b.tar.zst
freebsd-ports-gnome-cebfaddf169b1718be5c0c9fd3ad897044c9837b.zip
- 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
-rw-r--r--mail/courier-imap/Makefile54
-rw-r--r--mail/courier-imap/distinfo6
-rw-r--r--mail/courier-imap/files/pkg-message.in11
3 files changed, 29 insertions, 42 deletions
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 2be42ce68f6b..937fad4946bf 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -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-authlib-base \
${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,13 +60,14 @@ 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>
@@ -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}|' \
@@ -133,17 +122,4 @@ post-install:
${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>
diff --git a/mail/courier-imap/distinfo b/mail/courier-imap/distinfo
index 477dd0e92ffd..fa20acfe0729 100644
--- a/mail/courier-imap/distinfo
+++ b/mail/courier-imap/distinfo
@@ -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
diff --git a/mail/courier-imap/files/pkg-message.in b/mail/courier-imap/files/pkg-message.in
new file mode 100644
index 000000000000..01679054157a
--- /dev/null
+++ b/mail/courier-imap/files/pkg-message.in
@@ -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%%.