From ac818fc7df67839053a8b7e6c0139da668b9c2d2 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 4 Jun 2013 06:34:05 +0000 Subject: Convert to new options framework While here trim parts related to unsupported FreeBSD versions --- net/mpd5/Makefile | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'net/mpd5') diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile index 1888b9cdb2bd..c85811d9bebf 100644 --- a/net/mpd5/Makefile +++ b/net/mpd5/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: mpd -# Date created: 20 Sep 2005 -# Whom: Archie Cobbs -# +# Created by: Archie Cobbs # $FreeBSD$ -# PORTNAME= mpd DISTVERSION= 5.6 @@ -16,26 +12,17 @@ COMMENT= Multi-link PPP daemon based on netgraph(4) LATEST_LINK= mpd5 -OPTIONS= NG_CAR "Use ng_car kernel module from port (< 7.0 only)" off\ - NG_IPACCT "Use ng_ipacct kernel module from port" off +OPTIONS_DEFINE= NG_IPACCT +NG_IPACCT_DESC= Use ng_ipacct kernel module from port HAS_CONFIGURE= YES CONFIGURE_WRKSRC= "${WRKSRC}/src" USE_OPENSSL= yes -.include +.include -.if ${OSVERSION} < 700041 && defined(WITH_NG_CAR) -BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_car.h:${PORTSDIR}/net/ng_car -.if exists(${KMODDIR}/ng_car.ko) -RUN_DEPENDS+= ${KMODDIR}/ng_car.ko:${PORTSDIR}/net/ng_car -.else -RUN_DEPENDS+= /boot/modules/ng_car.ko:${PORTSDIR}/net/ng_car -.endif -.endif - -.if defined(WITH_NG_IPACCT) +.if ${PORT_OPTIONS:MNG_IPACCT} BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_ipacct.h:${PORTSDIR}/net-mgmt/ng_ipacct .if exists(${KMODDIR}/ng_ipacct.ko) RUN_DEPENDS+= ${KMODDIR}/ng_ipacct.ko:${PORTSDIR}/net-mgmt/ng_ipacct @@ -55,4 +42,4 @@ PORTDOCS= ${HTMLNUM:S/^/mpd/:S/$/.html/} mpd.html mpd.ps README \ PLIST_DIRS= etc/mpd5 PLIST_FILES= ${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5 -.include +.include -- cgit v1.2.3