From owner-svn-ports-all@FreeBSD.ORG Sun May 18 17:05:13 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F57BDF5; Sun, 18 May 2014 17:05:13 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B75029BE; Sun, 18 May 2014 17:05:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4IH5DiR042237; Sun, 18 May 2014 17:05:13 GMT (envelope-from ohauer@svn.freebsd.org) Received: (from ohauer@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4IH5Ced042233; Sun, 18 May 2014 17:05:12 GMT (envelope-from ohauer@svn.freebsd.org) Message-Id: <201405181705.s4IH5Ced042233@svn.freebsd.org> From: Olli Hauer Date: Sun, 18 May 2014 17:05:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r354439 - in head/mail/dovecot: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2014 17:05:13 -0000 Author: ohauer Date: Sun May 18 17:05:12 2014 New Revision: 354439 URL: http://svnweb.freebsd.org/changeset/ports/354439 QAT: https://qat.redports.org/buildarchive/r354439/ Log: - add stage support - bump PORTREVISION - add USES=libtool:keepla - sort pkg-plist - use USER/GROUP support from framework (remove pkg-install) PR: ports/188868 Submitted by: ohauer Approved by: maintainer timeout (4 weeks) Deleted: head/mail/dovecot/files/pkg-install.in Modified: head/mail/dovecot/Makefile head/mail/dovecot/files/pkg-deinstall.in head/mail/dovecot/pkg-plist Modified: head/mail/dovecot/Makefile ============================================================================== --- head/mail/dovecot/Makefile Sun May 18 17:03:40 2014 (r354438) +++ head/mail/dovecot/Makefile Sun May 18 17:05:12 2014 (r354439) @@ -3,16 +3,18 @@ PORTNAME= dovecot PORTVERSION= 1.2.17 +PORTREVISION= 1 CATEGORIES= mail ipv6 -MASTER_SITES= http://www.dovecot.org/releases/${DOVECOTVERSION}/ \ - http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/ +MASTER_SITES= http://www.dovecot.org/releases/${PORTVERSION:R}/ \ + http://www.rename-it.nl/dovecot/${PORTVERSION:R}/ MAINTAINER= yds@CoolRat.org COMMENT= Secure and compact IMAP and POP3 servers -CONFLICTS= dovecot2-* +LICENSE= LGPL21 MIT +LICENSE_COMB= dual -DOVECOTVERSION= 1.2 +CONFLICTS= dovecot2-2.[0-9].* ###################################################################### # Anytime PORTVERSION changes please bump PORTREVISIONs of # @@ -26,48 +28,85 @@ DOVECOTVERSION= 1.2 # consult the maintainer of those ports before updating this one. # ###################################################################### -USES= iconv +USES= iconv libtool:keepla USE_RC_SUBR= dovecot GNU_CONFIGURE= yes -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --localstatedir=/var \ - --with-statedir=/var/db/dovecot \ - --without-shadow +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ARGS= --localstatedir=/var \ + --with-statedir=/var/db/dovecot \ + --without-shadow + CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib + USE_LDCONFIG= ${PREFIX}/lib/dovecot \ ${PREFIX}/lib/dovecot/imap \ ${PREFIX}/lib/dovecot/pop3 \ ${PREFIX}/lib/dovecot/lda -.if defined(NOPORTDOCS) -CONFIGURE_ARGS+= --without-docs -.else -DOCS= AUTHORS COPYING COPYING.LGPL COPYING.MIT INSTALL NEWS TODO README -PORTDOCS= *.txt wiki ${DOCS} -.endif - -DOVECOT_UID?= 143 -DOVECOT_GID?= 143 +USERS= dovecot +GROUPS= ${USERS} PROTOCOLS= imap pop3 +# Default requirement for dovecot rc script +_REQUIRE= LOGIN + OPTIONS_DEFINE= KQUEUE SSL MANAGESIEVE GSSAPI VPOPMAIL BDB LDAP PGSQL MYSQL SQLITE OPTIONS_DEFAULT= KQUEUE SSL MANAGESIEVE KQUEUE_DESC= kqueue(2) support MANAGESIEVE_DESC= ManageSieve support VPOPMAIL_DESC= VPopMail support -NO_STAGE= yes -.include +OPTIONS_SUB= yes +BDB_CFLAGS= -I${BDB_INCLUDE_DIR} -L${BDB_LIB_DIR} +BDB_CONFIGURE_WITH= db +BDB_USE= BDB=48+ +DOCS_CONFIGURE_WITH= docs +GSSAPI_CONFIGURE_WITH= gssapi +GSSAPI_LDFLAGS= -lgssapi_krb5 +KQUEUE_CONFIGURE_ON= --with-ioloop=kqueue +LDAP_CONFIGURE_WITH= ldap +LDAP_USE= OPENLDAP=yes +MYSQL_CONFIGURE_WITH= mysql +MYSQL_USE= MYSQL=yes +PGSQL_CONFIGURE_WITH= pgsql +PGSQL_USE= PGSQL=yes +SQLITE_CONFIGURE_WITH= sqlite +SQLITE_USE= SQLITE=3 +SSL_CONFIGURE_OFF= --without-ssl +SSL_CONFIGURE_ON= --with-ssl=openssl +VPOPMAIL_BUILD_DEPENDS= ${LOCALBASE}/vpopmail/bin/vchkpw:${PORTSDIR}/mail/vpopmail +VPOPMAIL_CONFIGURE_WITH=vpopmail + +.include .if ${ARCH} == "arm" BROKEN= Does not build on arm .endif -# Default requirement for dovecot rc script -_REQUIRE= LOGIN +DOCS= AUTHORS COPYING COPYING.LGPL COPYING.MIT INSTALL NEWS TODO README +PORTDOCS= * + +.if ${PORT_OPTIONS:MSSL} +PROTOCOLS+= imaps pop3s +.endif + +.if ${PORT_OPTIONS:MLDAP} +_REQUIRE+= slapd +.endif + +.if ${PORT_OPTIONS:MPGSQL} +_REQUIRE+= postgresql +.endif + +.if ${PORT_OPTIONS:MMYSQL} +_REQUIRE+= mysql +.endif + +SUB_LIST+= REQUIRE="${_REQUIRE}" +SUB_FILES+= pkg-deinstall pkg-message # sed script for dovecot.conf REINPLACE= s!%%PROTOCOLS%%!${PROTOCOLS}!g;\ @@ -78,22 +117,10 @@ REINPLACE= s!%%PROTOCOLS%%!${PROTOCOLS}! s![[:<:]]doc/(dovecot-[^-]+)-example.conf[[:>:]]!${EXAMPLESDIR}/\1.conf!g;\ s!\#sendmail_path = /usr/.*!sendmail_path = /usr/sbin/sendmail!g; -## kqueue(2) support -# -.if ${PORT_OPTIONS:MKQUEUE} -CONFIGURE_ARGS+= --with-ioloop=kqueue -.endif - -## SSL support -# -.if ${PORT_OPTIONS:MSSL} -PROTOCOLS+= imaps pop3s -.else -CONFIGURE_ARGS+= --without-ssl +.if ${PORT_OPTIONS:MBDB} +REINPLACE+= s!^\#(dict_db_config)!\1!; .endif -## ManageSieve support -# .if ${PORT_OPTIONS:MMANAGESIEVE} MANAGESIEVEVERSION!= ${MAKE} -C ${.CURDIR}/../dovecot-managesieve -V PORTVERSION PATCH_SITES!= ${MAKE} -C ${.CURDIR}/../dovecot-managesieve -V MASTER_SITES @@ -103,87 +130,12 @@ PROTOCOLS+= managesieve DOCS+= README.managesieve .endif -## GSSAPI support -# -.if ${PORT_OPTIONS:MGSSAPI} -CONFIGURE_ARGS+= --with-gssapi -LDFLAGS+= -lgssapi_krb5 -.else -CONFIGURE_ARGS+= --without-gssapi -.endif - -## VPopMail Support -# -.if ${PORT_OPTIONS:MVPOPMAIL} -VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw -BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail -CONFIGURE_ARGS+= --with-vpopmail -.else -CONFIGURE_ARGS+= --without-vpopmail -.endif - -## BDB Support -# -.if ${PORT_OPTIONS:MBDB} -USE_BDB= 42+ -CONFIGURE_ARGS+= --with-db -CFLAGS+= -I${BDB_INCLUDE_DIR} -L${BDB_LIB_DIR} -PLIST_SUB+= BDB="" -REINPLACE+= s!^\#(dict_db_config)!\1!; -.else -PLIST_SUB+= BDB="@comment " -.endif - -## OpenLDAP Support -# -.if ${PORT_OPTIONS:MLDAP} -USE_OPENLDAP= yes -CONFIGURE_ARGS+= --with-ldap -PLIST_SUB+= LDAP="" -_REQUIRE+= slapd -.else -CONFIGURE_ARGS+= --without-ldap -PLIST_SUB+= LDAP="@comment " -.endif - -## PostgreSQL Support -# -.if ${PORT_OPTIONS:MPGSQL} -USE_PGSQL= yes -CONFIGURE_ARGS+= --with-pgsql -PLIST_SUB+= SQL="" -_REQUIRE+= postgresql -.else -CONFIGURE_ARGS+= --without-pgsql -PLIST_SUB+= SQL="@comment " -.endif - -## MySQL Support -# -.if ${PORT_OPTIONS:MMYSQL} -USE_MYSQL= yes -CONFIGURE_ARGS+= --with-mysql -PLIST_SUB+= SQL="" -_REQUIRE+= mysql -.else -CONFIGURE_ARGS+= --without-mysql -PLIST_SUB+= SQL="@comment " -.endif - -## SQLite Support -# -.if ${PORT_OPTIONS:MSQLITE} -USE_SQLITE= 3 -CONFIGURE_ARGS+= --with-sqlite -PLIST_SUB+= SQL="" +.if ${PORT_OPTIONS:MPGSQL} || ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MSQLITE} +PLIST_SUB+= SQL="" .else -CONFIGURE_ARGS+= --without-sqlite -PLIST_SUB+= SQL="@comment " +PLIST_SUB+= SQL="@comment " .endif -SUB_LIST+= REQUIRE="${_REQUIRE}" DOVECOT_UID=${DOVECOT_UID} DOVECOT_GID=${DOVECOT_GID} -SUB_FILES+= pkg-install pkg-deinstall pkg-message - post-patch: @${REINPLACE_CMD} -E -e '${REINPLACE}' \ ${WRKSRC}/dovecot-example.conf @@ -197,27 +149,18 @@ post-patch: @${LN} -f ${WRKSRC}/doc/dovecot-ldap-example.conf ${WRKSRC}/doc/dovecot-ldap.conf @${LN} -f ${WRKSRC}/doc/dovecot-sql-example.conf ${WRKSRC}/doc/dovecot-sql.conf -pre-su-install: - @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: - ${INSTALL_DATA} ${WRKSRC}/dovecot.conf ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-db.conf ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-dict-sql.conf ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-ldap.conf ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-sql.conf ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${EXAMPLESDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${EXAMPLESDIR} - @${GREP} '^@exec ' ${TMPPLIST} \ - | ${SED} -e 's:^@exec ::; s:%D:${PREFIX}:g;' \ - > ${WRKDIR}/.PLIST.exec \ - && ${SH} ${WRKDIR}/.PLIST.exec + ${FIND} ${STAGEDIR}${PREFIX}/lib/ -name \*.so | ${XARGS} strip + ${INSTALL_DATA} ${WRKSRC}/dovecot.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-db.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-dict-sql.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-ldap.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-sql.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${STAGEDIR}${EXAMPLESDIR} + .if ${PORT_OPTIONS:MDOCS} -.for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} -.endfor + ${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .endif - @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} -.include +.include Modified: head/mail/dovecot/files/pkg-deinstall.in ============================================================================== --- head/mail/dovecot/files/pkg-deinstall.in Sun May 18 17:03:40 2014 (r354438) +++ head/mail/dovecot/files/pkg-deinstall.in Sun May 18 17:05:12 2014 (r354439) @@ -3,62 +3,8 @@ # $FreeBSD: /tmp/pcvs/ports/mail/dovecot/files/pkg-deinstall.in,v 1.2 2008-11-28 14:38:26 wxs Exp $ # -PKG_PREFIX=${PKG_PREFIX:=/usr/local} - -ask() { - local question default answer - - question=$1 - default=$2 - if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then - read -p "${question} [${default}]? " answer - fi - echo ${answer:-${default}} -} - -yesno() { - local question default answer - - question=$1 - default=$2 - while :; do - answer=$(ask "${question}" "${default}") - case "${answer}" in - [Yy]*) return 0;; - [Nn]*) return 1;; - esac - echo "Please answer yes or no." - done -} - -delete_account() { - local port user uid group gid - - port=$1 - user=${2%:*} - uid=${2#*:} - group=${3%:*} - gid=${3#*:} - - echo "If you do not intend to reinstall ${port}, you should manually" - echo "remove user '${user}' (uid='${uid}') and group '${group}' (gid='${gid}')." -} - case $2 in - DEINSTALL) - if ps -axc | grep -qw dovecot; then - if yesno "Dovecot is still running. Shall I stop it?" y; then - ${PKG_PREFIX}/etc/rc.d/dovecot stop - sleep 2 - else - echo "OK ... I hope you know what you are doing." - fi - fi - - delete_account Dovecot dovecot:${DOVECOT_UID:-%%DOVECOT_UID%%} dovecot:${DOVECOT_GID:-%%DOVECOT_GID%%} - - echo "Also manually 'rm -rf /var/db/dovecot' if anything was stored there." + echo "If you don't intend on reinstalling this port you should manually 'rm -rf /var/db/dovecot' if anything was stored there." ;; - esac Modified: head/mail/dovecot/pkg-plist ============================================================================== --- head/mail/dovecot/pkg-plist Sun May 18 17:03:40 2014 (r354438) +++ head/mail/dovecot/pkg-plist Sun May 18 17:05:12 2014 (r354439) @@ -1,8 +1,7 @@ -@dirrmtry include/dovecot lib/dovecot/imap/lib01_acl_plugin.so -lib/dovecot/imap/lib02_imap_acl_plugin.so -lib/dovecot/imap/lib02_imap_acl_plugin.la lib/dovecot/imap/lib02_imap_acl_plugin.a +lib/dovecot/imap/lib02_imap_acl_plugin.la +lib/dovecot/imap/lib02_imap_acl_plugin.so lib/dovecot/imap/lib02_lazy_expunge_plugin.so lib/dovecot/imap/lib10_quota_plugin.so lib/dovecot/imap/lib11_imap_quota_plugin.a @@ -19,7 +18,6 @@ lib/dovecot/imap/lib20_mbox_snarf_plugin lib/dovecot/imap/lib20_virtual_plugin.so lib/dovecot/imap/lib20_zlib_plugin.so lib/dovecot/imap/lib21_fts_squat_plugin.so -@dirrm lib/dovecot/imap lib/dovecot/lda/lib01_acl_plugin.so lib/dovecot/lda/lib10_quota_plugin.so lib/dovecot/lda/lib11_trash_plugin.so @@ -31,22 +29,6 @@ lib/dovecot/lda/lib20_listescape_plugin. lib/dovecot/lda/lib20_mail_log_plugin.so lib/dovecot/lda/lib20_virtual_plugin.so lib/dovecot/lda/lib21_fts_squat_plugin.so -@dirrmtry lib/dovecot/lda -lib/dovecot/pop3/lib20_autocreate_plugin.so -lib/dovecot/pop3/lib02_lazy_expunge_plugin.so -lib/dovecot/pop3/lib10_quota_plugin.so -lib/dovecot/pop3/lib20_convert_plugin.so -lib/dovecot/pop3/lib20_expire_plugin.so -lib/dovecot/pop3/lib20_fts_plugin.so -lib/dovecot/pop3/lib20_listescape_plugin.so -lib/dovecot/pop3/lib20_mail_log_plugin.so -lib/dovecot/pop3/lib20_mbox_snarf_plugin.so -lib/dovecot/pop3/lib20_virtual_plugin.so -lib/dovecot/pop3/lib20_zlib_plugin.so -lib/dovecot/pop3/lib21_fts_squat_plugin.so -@dirrm lib/dovecot/pop3 -@exec install -o root -g wheel -m 0755 -d %D/lib/dovecot/auth -@dirrm lib/dovecot/auth lib/dovecot/lib01_acl_plugin.a lib/dovecot/lib01_acl_plugin.la lib/dovecot/lib01_acl_plugin.so @@ -59,9 +41,9 @@ lib/dovecot/lib10_quota_plugin.so lib/dovecot/lib11_trash_plugin.a lib/dovecot/lib11_trash_plugin.la lib/dovecot/lib11_trash_plugin.so -lib/dovecot/lib20_autocreate_plugin.so -lib/dovecot/lib20_autocreate_plugin.la lib/dovecot/lib20_autocreate_plugin.a +lib/dovecot/lib20_autocreate_plugin.la +lib/dovecot/lib20_autocreate_plugin.so lib/dovecot/lib20_convert_plugin.a lib/dovecot/lib20_convert_plugin.la lib/dovecot/lib20_convert_plugin.so @@ -71,25 +53,36 @@ lib/dovecot/lib20_expire_plugin.so lib/dovecot/lib20_fts_plugin.a lib/dovecot/lib20_fts_plugin.la lib/dovecot/lib20_fts_plugin.so -lib/dovecot/lib20_listescape_plugin.so -lib/dovecot/lib20_listescape_plugin.la lib/dovecot/lib20_listescape_plugin.a +lib/dovecot/lib20_listescape_plugin.la +lib/dovecot/lib20_listescape_plugin.so lib/dovecot/lib20_mail_log_plugin.a lib/dovecot/lib20_mail_log_plugin.la lib/dovecot/lib20_mail_log_plugin.so lib/dovecot/lib20_mbox_snarf_plugin.a lib/dovecot/lib20_mbox_snarf_plugin.la lib/dovecot/lib20_mbox_snarf_plugin.so -lib/dovecot/lib20_virtual_plugin.so -lib/dovecot/lib20_virtual_plugin.la lib/dovecot/lib20_virtual_plugin.a -lib/dovecot/lib20_zlib_plugin.so +lib/dovecot/lib20_virtual_plugin.la +lib/dovecot/lib20_virtual_plugin.so lib/dovecot/lib20_zlib_plugin.a lib/dovecot/lib20_zlib_plugin.la +lib/dovecot/lib20_zlib_plugin.so lib/dovecot/lib21_fts_squat_plugin.a lib/dovecot/lib21_fts_squat_plugin.la lib/dovecot/lib21_fts_squat_plugin.so -@dirrmtry lib/dovecot +lib/dovecot/pop3/lib02_lazy_expunge_plugin.so +lib/dovecot/pop3/lib10_quota_plugin.so +lib/dovecot/pop3/lib20_autocreate_plugin.so +lib/dovecot/pop3/lib20_convert_plugin.so +lib/dovecot/pop3/lib20_expire_plugin.so +lib/dovecot/pop3/lib20_fts_plugin.so +lib/dovecot/pop3/lib20_listescape_plugin.so +lib/dovecot/pop3/lib20_mail_log_plugin.so +lib/dovecot/pop3/lib20_mbox_snarf_plugin.so +lib/dovecot/pop3/lib20_virtual_plugin.so +lib/dovecot/pop3/lib20_zlib_plugin.so +lib/dovecot/pop3/lib21_fts_squat_plugin.so libexec/dovecot/authtest libexec/dovecot/checkpassword-reply libexec/dovecot/convert-tool @@ -110,12 +103,8 @@ libexec/dovecot/pop3-login libexec/dovecot/rawlog libexec/dovecot/ssl-build-param libexec/dovecot/threadview -@dirrmtry libexec/dovecot sbin/dovecot sbin/dovecotpw -@unexec if cmp -s %D/%%EXAMPLESDIR%%/dovecot.conf %D/etc/dovecot.conf; then rm -f %D/etc/dovecot.conf; fi -%%EXAMPLESDIR%%/dovecot.conf -@exec if [ ! -f %D/etc/dovecot.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dovecot.conf %D/etc/dovecot.conf; fi %%BDB%%@unexec if cmp -s %D/%%EXAMPLESDIR%%/dovecot-db.conf %D/etc/dovecot-db.conf; then rm -f %D/etc/dovecot-db.conf; fi %%EXAMPLESDIR%%/dovecot-db.conf %%BDB%%@exec if [ ! -f %D/etc/dovecot-db.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dovecot-db.conf %D/etc/dovecot-db.conf; fi @@ -125,9 +114,20 @@ sbin/dovecotpw %%LDAP%%@unexec if cmp -s %D/%%EXAMPLESDIR%%/dovecot-ldap.conf %D/etc/dovecot-ldap.conf; then rm -f %D/etc/dovecot-ldap.conf; fi %%EXAMPLESDIR%%/dovecot-ldap.conf %%LDAP%%@exec if [ ! -f %D/etc/dovecot-ldap.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dovecot-ldap.conf %D/etc/dovecot-ldap.conf; fi +%%EXAMPLESDIR%%/dovecot-openssl.cnf %%SQL%%@unexec if cmp -s %D/%%EXAMPLESDIR%%/dovecot-sql.conf %D/etc/dovecot-sql.conf; then rm -f %D/etc/dovecot-sql.conf; fi %%EXAMPLESDIR%%/dovecot-sql.conf %%SQL%%@exec if [ ! -f %D/etc/dovecot-sql.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dovecot-sql.conf %D/etc/dovecot-sql.conf; fi -%%EXAMPLESDIR%%/dovecot-openssl.cnf +@unexec if cmp -s %D/%%EXAMPLESDIR%%/dovecot.conf %D/etc/dovecot.conf; then rm -f %D/etc/dovecot.conf; fi +%%EXAMPLESDIR%%/dovecot.conf +@exec if [ ! -f %D/etc/dovecot.conf ]; then cp -p %D/%%EXAMPLESDIR%%/dovecot.conf %D/etc/dovecot.conf; fi %%EXAMPLESDIR%%/mkcert.sh +@dirrmtry include/dovecot +@dirrmtry lib/dovecot/auth +@dirrmtry lib/dovecot/imap +@dirrmtry lib/dovecot/lda +@dirrmtry lib/dovecot/pop3 +@dirrmtry lib/dovecot +@dirrmtry libexec/dovecot @dirrm %%EXAMPLESDIR%% +@exec install -o root -g wheel -m 0755 -d %D/lib/dovecot/auth