aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorzeising <zeising@FreeBSD.org>2012-07-18 19:04:42 +0800
committerzeising <zeising@FreeBSD.org>2012-07-18 19:04:42 +0800
commitfd900593d8e6167c51576f7061bbe54483c8f306 (patch)
tree5757aad2bc51a659609124ae330db2fc1e08dfc9 /mail
parente198ec6c0bb6c282794b8a05631a7fdc9f22f4ad (diff)
downloadfreebsd-ports-gnome-fd900593d8e6167c51576f7061bbe54483c8f306.tar.gz
freebsd-ports-gnome-fd900593d8e6167c51576f7061bbe54483c8f306.tar.zst
freebsd-ports-gnome-fd900593d8e6167c51576f7061bbe54483c8f306.zip
Add an optional dependency on libwrap, using option LIBWRAP.
PR: ports/169932 (minor modifications) Submitted by: vfx9as <vfx9as [AT] gmail.com> Approved by: maintainer, kwm (mentor)
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot2/Makefile13
-rw-r--r--mail/dovecot2/pkg-plist1
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/dovecot2/Makefile b/mail/dovecot2/Makefile
index c23f13b0b4d0..23e30564adb2 100644
--- a/mail/dovecot2/Makefile
+++ b/mail/dovecot2/Makefile
@@ -48,7 +48,8 @@ PROTOCOLS= imap pop3
# Default requirement for dovecot rc script
_REQUIRE= LOGIN
-OPTIONS_DEFINE= KQUEUE SSL GSSAPI VPOPMAIL LDAP PGSQL MYSQL SQLITE SOLR DOCS EXAMPLES
+OPTIONS_DEFINE= KQUEUE SSL GSSAPI VPOPMAIL LDAP PGSQL MYSQL SQLITE SOLR DOCS \
+ EXAMPLES LIBWRAP
OPTIONS_DEFAULT= KQUEUE SSL
KQUEUE_DESC= kqueue(2) support
@@ -169,6 +170,16 @@ CONFIGURE_ARGS+=--without-solr
PLIST_SUB+= SOLR="@comment "
.endif
+## libwrap support
+#
+.if ${PORT_OPTIONS:MLIBWRAP}
+CONFIGURE_ARGS+=--with-libwrap
+PLIST_SUB+= LIBWRAP=""
+.else
+CONFIGURE_ARGS+=--without-libwrap
+PLIST_SUB+= LIBWRAP="@comment "
+.endif
+
SUB_LIST= REQUIRE="${_REQUIRE}"
SUB_FILES= pkg-deinstall pkg-message
diff --git a/mail/dovecot2/pkg-plist b/mail/dovecot2/pkg-plist
index 57342d33ad5b..5adb4ac81370 100644
--- a/mail/dovecot2/pkg-plist
+++ b/mail/dovecot2/pkg-plist
@@ -489,6 +489,7 @@ libexec/dovecot/script
libexec/dovecot/script-login
libexec/dovecot/ssl-params
libexec/dovecot/stats
+%%LIBWRAP%%libexec/dovecot/tcpwrap
libexec/dovecot/xml2text
sbin/dovecot
share/aclocal/dovecot.m4