aboutsummaryrefslogtreecommitdiff
path: root/mail/dbmail22
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2012-10-11 16:42:58 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2012-10-11 16:42:58 +0000
commit7e64593a9b5f8e8b3bd02b5dac53997d7b8b898b (patch)
tree73de8dddd8f509ded71d447d110f6102a9958683 /mail/dbmail22
parent21238265dfd785f2f5d729b7e651c94ced1afadb (diff)
downloadports-7e64593a9b5f8e8b3bd02b5dac53997d7b8b898b.tar.gz
ports-7e64593a9b5f8e8b3bd02b5dac53997d7b8b898b.zip
Notes
Diffstat (limited to 'mail/dbmail22')
-rw-r--r--mail/dbmail22/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/mail/dbmail22/Makefile b/mail/dbmail22/Makefile
index fe3f45300cac..6bb784e9ce7d 100644
--- a/mail/dbmail22/Makefile
+++ b/mail/dbmail22/Makefile
@@ -15,8 +15,10 @@ LIB_DEPENDS= gmime-2.0:${PORTSDIR}/mail/gmime2
CONFLICTS= dbmail-3.*
-OPTIONS_DEFINE= MYSQL PGSQL SQLITE SIEVE LDAP
+OPTIONS_DEFINE= SIEVE LDAP
OPTIONS_DEFAULT=MYSQL
+OPTIONS_MULTI= DB
+OPTIONS_MULTI_DB=MYSQL PGSQL SQLITE
SIEVE_DESC= Support for Sieve mail sorting language
LATEST_LINK= dbmail22
@@ -46,7 +48,7 @@ MAN8= dbmail-export.8 dbmail-imapd.8 dbmail-lmtpd.8 \
SUB_FILES= pkg-message
PLIST_SUB+= PORTNAME=${PORTNAME}
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
PLIST_SUB+= PORTDOCS="@comment "
.else
PLIST_SUB+= PORTDOCS=""
@@ -97,10 +99,6 @@ PLIST_SUB+= LDAP=""
PLIST_SUB+= LDAP="@comment "
.endif
-.if empty(${PORT_OPTIONS:MMYSQL}) && empty(${PORT_OPTIONS:MPGSQL}) && empty(${PORT_OPTIONS:MSQLITE})
-IGNORE="requires at least one database backend selected. Run 'make config'"
-.endif
-
post-patch:
@${FIND} ${WRKSRC} -name CVS -type d | ${XARGS} ${RM} -fr
@${FIND} ${WRKSRC} -name *.orig -type f -delete
@@ -128,7 +126,7 @@ post-install:
${MKDIR} ${DATADIR}/$$f ; \
${INSTALL_DATA} ${WRKSRC}/sql/$$f/* ${DATADIR}/$$f; \
done
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif