aboutsummaryrefslogtreecommitdiffstats
path: root/mail/milter-greylist/Makefile
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-03-17 05:53:35 +0800
committerswills <swills@FreeBSD.org>2013-03-17 05:53:35 +0800
commit4338851a20e83b934fa56887135370732b70916e (patch)
treea0f640910619bcdfec405dc2def0927b3a929169 /mail/milter-greylist/Makefile
parentb5de110bb65cc2ba2f82b0c33cc7b15ef11b5c0f (diff)
downloadfreebsd-ports-gnome-4338851a20e83b934fa56887135370732b70916e.tar.gz
freebsd-ports-gnome-4338851a20e83b934fa56887135370732b70916e.tar.zst
freebsd-ports-gnome-4338851a20e83b934fa56887135370732b70916e.zip
- Update the port to 4.4.1
- Convert to OptionsNG - Use new Makefile header format PR: ports/176734 Submitted by: "Mikhail T." <m.tsatsenko@gmail.com> (maintainer)
Diffstat (limited to 'mail/milter-greylist/Makefile')
-rw-r--r--mail/milter-greylist/Makefile49
1 files changed, 22 insertions, 27 deletions
diff --git a/mail/milter-greylist/Makefile b/mail/milter-greylist/Makefile
index 1a58de932bdd..f808a5b03146 100644
--- a/mail/milter-greylist/Makefile
+++ b/mail/milter-greylist/Makefile
@@ -1,15 +1,11 @@
-# New ports collection makefile for: milter-greylist
-# Date created: 27 Apr 2004
-# Whom: Cyril Guibourg
-#
+# Created by: Cyril Guibourg
# $FreeBSD$
#
PORTNAME= milter-greylist
-PORTVERSION= 4.2.7
+PORTVERSION= 4.4.1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/
-DISTNAME= milter-greylist-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= m.tsatsenko@gmail.com
@@ -18,15 +14,7 @@ COMMENT= Easy-to-use greylist milter for sendmail and postfix
CONFLICTS= milter-greylist-devel-[1-9]*.*
PKGMESSAGE= ${WRKDIR}/pkg-message
-OPTIONS= MANPAGES "Install manpages" on\
- LIBSPF2 "Include SPF support" off\
- GEOIP "Include GeoIP support" off\
- CURL "Include curl support" off\
- OPENLDAP "Include OpenLDAP support" off\
- P0F "Include P0F support" off\
- POSTFIX "Use Postfix instead of Sendmail" off
-
-.include <bsd.port.pre.mk>
+MAKE_JOBS_UNSAFE= yes
##
# Use the following quirks to choose which sendmail to use (ports or system):
@@ -39,35 +27,42 @@ OPTIONS= MANPAGES "Install manpages" on\
# installed port preference over it.
##
-.if defined (WITH_MANPAGES)
+OPTIONS_DEFINE= SPF GEOIP CURL OPENLDAP P0F POSTFIX
+OPTIONS_DEFAULT= MANPAGES
+MANPAGES_DESC= Install manpages
+SPF_DESC= Include SPF support
+GEOIP_DESC= Include GeoIP support
+OPENLDAP_DESC= Include OpenLDAP support
+P0F_DESC= Include P0F support
+POSTFIX_DESC= Use Postfix instead of Sendmail
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MMANPAGES}
MAN5= greylist.conf.5
MAN8= milter-greylist.8
.endif
-
-##
-# If you have a reentrant resolver (starting with RELENG_5_2) you can use SPF
-##
-.if defined(WITH_LIBSPF2)
+.if ${PORT_OPTIONS:MSPF}
BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
CONFIGURE_ARGS+= --with-libspf2=${LOCALBASE}
.endif
-.if defined(WITH_GEOIP)
+.if ${PORT_OPTIONS:MGEOIP}
BUILD_DEPENDS+= GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
CONFIGURE_ARGS+= --with-libGeoIP=${LOCALBASE}
.endif
-.if defined(WITH_CURL)
+.if ${PORT_OPTIONS:MCURL}
BUILD_DEPENDS+= curl>=7.18:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-libcurl=${LOCALBASE}
.endif
-.if defined(WITH_OPENLDAP)
+.if ${PORT_OPTIONS:MOPENLDAP}
USE_OPENLDAP=yes
CONFIGURE_ARGS+= --with-openldap
.endif
-.if defined(WITH_P0F)
+.if ${PORT_OPTIONS:MP0F}
RUN_DEPENDS+= p0f:${PORTSDIR}/net-mgmt/p0f
CONFIGURE_ARGS+= --enable-p0f
.endif
-.if defined(WITH_POSTFIX)
+.if ${PORT_OPTIONS:MPOSTFIX}
CONFIGURE_ARGS+= --enable-postfix
.else
LDFLAGS+= ${SENDMAIL_LDFLAGS}
@@ -101,7 +96,7 @@ do-install:
post-install:
@${MKDIR} /var/milter-greylist
@${CHOWN} -R mailnull:mailnull /var/milter-greylist
-.if !defined(NOPORTDOCS)
+.if !${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif