From fd900593d8e6167c51576f7061bbe54483c8f306 Mon Sep 17 00:00:00 2001 From: zeising Date: Wed, 18 Jul 2012 11:04:42 +0000 Subject: Add an optional dependency on libwrap, using option LIBWRAP. PR: ports/169932 (minor modifications) Submitted by: vfx9as Approved by: maintainer, kwm (mentor) --- mail/dovecot2/Makefile | 13 ++++++++++++- mail/dovecot2/pkg-plist | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'mail') 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 -- cgit