From bb2507ee9768f7dbf5718c5e592ffd6fc3c1d831 Mon Sep 17 00:00:00 2001 From: bapt Date: Sat, 1 Jun 2013 23:18:19 +0000 Subject: Convert to new options framework --- mail/greylite/Makefile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'mail/greylite') diff --git a/mail/greylite/Makefile b/mail/greylite/Makefile index c2281a453623..85eb8906bb3f 100644 --- a/mail/greylite/Makefile +++ b/mail/greylite/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: greylite -# Date created: 2007-12-11 -# Whom: Mij -# +# Created by: Mij # $FreeBSD$ -# PORTNAME= greylite PORTVERSION= 2.3 @@ -25,18 +21,20 @@ PLIST_FILES= bin/greylite \ MAN8= greylite.8 MANCOMPRESSED= yes -OPTIONS= GEOIP "Support for GeoIP in suspicion rules" On \ - DNSBLENV "Module for interfacing with DNS blacklists" On \ - UCSPI2SOCKET "Module for using greylite as SMTP proxy" On +OPTIONS_DEFINE= GEOIP DNSBLENV UCSPI2SOCKET +OPTIONS_DEFAULT= GEOIP DNSBLENV UCSPI2SOCKET +GEOIP_DESC= Support for GeoIP in suspicion rules +DNSBLENV_DESC= Module for interfacing with DNS blacklists +UCSPI2SOCKET_DESC= Module for using greylite as SMTP proxy .include -.if !defined(WITHOUT_GEOIP) +.if ${PORT_OPTIONS:MGEOIP} LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP MAKE_ARGS+= WITH_GEOIP=yep .endif -.if !defined(WITHOUT_DNSBLENV) +.if ${PORT_OPTIONS:MDNSBLENV} LIB_DEPENDS+= cares:${PORTSDIR}/dns/c-ares MAKE_ARGS+= WITH_DNSBLENV=yep PLIST_SUB+= DNSBLENV="" @@ -44,7 +42,7 @@ PLIST_SUB+= DNSBLENV="" PLIST_SUB+= DNSBLENV="@comment " .endif -.if !defined(WITHOUT_UCSPI2SOCKET) +.if ${PORT_OPTIONS:MUCSPI2SOCKET} MAKE_ARGS+= WITH_UCSPI2SOCKET=yep PLIST_SUB+= UCSPI2SOCKET="" .else -- cgit