Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 2018 13:09:08 +0000 (UTC)
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460171 - in head/mail/up-imapproxy: . files
Message-ID:  <201801281309.w0SD98WN097278@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dbaio
Date: Sun Jan 28 13:09:08 2018
New Revision: 460171
URL: https://svnweb.freebsd.org/changeset/ports/460171

Log:
  mail/up-imapproxy: Add dovecot unconditionally in rcfile
  
  This helps users that are using default packages and installing
  dovecot manually in having the startup order correctly.
  
  While here, switch to options helper and reorder Makefile.
  
  PR:		225432
  Submitted by:	topical@gmx.net

Modified:
  head/mail/up-imapproxy/Makefile
  head/mail/up-imapproxy/files/imapproxyd.in

Modified: head/mail/up-imapproxy/Makefile
==============================================================================
--- head/mail/up-imapproxy/Makefile	Sun Jan 28 13:01:03 2018	(r460170)
+++ head/mail/up-imapproxy/Makefile	Sun Jan 28 13:09:08 2018	(r460171)
@@ -3,7 +3,7 @@
 
 PORTNAME=	imapproxy
 PORTVERSION=	1.2.7
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	mail
 MASTER_SITES=	SF/squirrelmail/imap_proxy/${PORTVERSION}
 PKGNAMEPREFIX=	up-
@@ -15,10 +15,13 @@ COMMENT=	Caching IMAP proxy server
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+USES=		autoreconf tar:bzip2 ncurses pathfix ssl
+
 OPTIONS_DEFINE=	DOVECOT DOCS
+
 DOVECOT_DESC=	Use with dovecot2
+DOVECOT_RUN_DEPENDS=	dovecot:mail/dovecot
 
-USES=		autoreconf tar:bzip2 ncurses pathfix ssl
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-openssl=${OPENSSLBASE}
 
@@ -29,26 +32,17 @@ SUB_FILES=	pkg-message
 DOCS=		ChangeLog README README.debian README.known_issues README.ssl
 SBIN=		in.imapproxyd pimpstat
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOVECOT}
-SUB_LIST+=	DOVECOT="dovecot"
-RUN_DEPENDS+=	dovecot:mail/dovecot
-.else
-SUB_LIST+=	DOVECOT=""
-.endif
-
 do-install:
 .for i in ${SBIN}
 	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/sbin)
 .endfor
 	(cd ${WRKSRC}/scripts && ${INSTALL_DATA} imapproxy.conf \
 		${STAGEDIR}${PREFIX}/etc/imapproxyd.conf.sample)
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${DOCS}
 	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/mail/up-imapproxy/files/imapproxyd.in
==============================================================================
--- head/mail/up-imapproxy/files/imapproxyd.in	Sun Jan 28 13:01:03 2018	(r460170)
+++ head/mail/up-imapproxy/files/imapproxyd.in	Sun Jan 28 13:09:08 2018	(r460171)
@@ -3,7 +3,7 @@
 # $FreeBSD$
 #
 # PROVIDE: imapproxyd
-# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd inetd %%DOVECOT%%
+# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd dovecot inetd
 # KEYWORD: shutdown
 
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801281309.w0SD98WN097278>