From owner-svn-ports-head@FreeBSD.ORG Tue Mar 26 07:43:15 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E95BE84E; Tue, 26 Mar 2013 07:43:15 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id DAE89393; Tue, 26 Mar 2013 07:43:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2Q7hFwq062555; Tue, 26 Mar 2013 07:43:15 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2Q7hFAx062552; Tue, 26 Mar 2013 07:43:15 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201303260743.r2Q7hFAx062552@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 26 Mar 2013 07:43:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r315266 - in head/dns: bind97-sdb djbdns powerdns-recursor X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 07:43:16 -0000 Author: bapt Date: Tue Mar 26 07:43:14 2013 New Revision: 315266 URL: http://svnweb.freebsd.org/changeset/ports/315266 Log: Finish converting dns to new options framework Modified: head/dns/bind97-sdb/Makefile head/dns/djbdns/Makefile head/dns/powerdns-recursor/Makefile Modified: head/dns/bind97-sdb/Makefile ============================================================================== --- head/dns/bind97-sdb/Makefile Tue Mar 26 07:35:22 2013 (r315265) +++ head/dns/bind97-sdb/Makefile Tue Mar 26 07:43:14 2013 (r315266) @@ -1,7 +1,4 @@ -# New ports collection makefile for: bind97-sdb-postgresql -# Date created: 2011-06-10 -# Whom: Josh Carroll -# +# Created by: Josh Carroll # $FreeBSD$ PORTNAME= bind97-sdb @@ -15,9 +12,12 @@ CONFLICTS= bind9? host-* # the user may pick one and only one SDB driver. Depending on which # option the user picks, the appropriate patches will be applied # so bind is built with the proper driver -OPTIONS= PGSQL "Build with PostgreSQL SDB support" on \ - LDAP "Build with LDAP SDB support" off - +OPTIONS_SINGLE= SDB +OPTIONS_SINGLE_SDB= PGSQL LDAP +OPTIONS_DEFAULT= PGSQL +PGSQL_DESC= PostgreSQL SDB support +LDAP_DESC= LDAP SDB support +# # Future use # DIRDB "Build with dirdb SDB support" off \ # BDB "Build with bdb SDB support" off \ @@ -32,9 +32,7 @@ OUR_PATCHDIR:=${.CURDIR}/files # check that one and ONLY one of the SDB options is set # the value of SDB_DRIVER should match the name of the # contrib/sdb dir -num_sdb_types:=SDB -.if defined(WITH_PGSQL) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes EXTRA_PATCHES+= ${OUR_PATCHDIR}/patch-pgsql-bin__named__Makefile.in \ ${OUR_PATCHDIR}/patch-pgsql-bin__named__main.c \ @@ -43,8 +41,7 @@ SDB_DRIVER=pgsql SDB_DRIVER_FILES=pgsqldb.c pgsqldb.h .endif -.if defined(WITH_LDAP) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MLDAP} USE_OPENLDAP= yes EXTRA_PATCHES+= ${OUR_PATCHDIR}/patch-ldap-bin__named__Makefile.in \ ${OUR_PATCHDIR}/patch-ldap-bin__named__main.c @@ -52,51 +49,36 @@ SDB_DRIVER=ldap SDB_DRIVER_FILES=ldapdb.c .endif -.if defined(WITH_DIRDB) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MDIRDB} SDB_DRIVER=dir SDB_DRIVER_FILES= IGNORE=This port does not yet support SDB DIRDB .endif -.if defined(WITH_BDB) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MBDB} SDB_DRIVER=bdb SDB_DRIVER_FILES= IGNORE=This port does not yet support SDB BDB .endif -.if defined(WITH_SQLITE) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MSQLITE} SDB_DRIVER=sqlite SDB_DRIVER_FILES= IGNORE=This port does not yet support SDB SQLITE .endif -.if defined(WITH_TCL) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MTCL} SDB_DRIVER=tcldb SDB_DRIVER_FILES= IGNORE=This port does not yet support SDB TCLDB .endif -.if defined(WITH_TIMEDB) -num_sdb_types+=1 +.if ${PORT_OPTIONS:MTIMEDB} SDB_DRIVER=timedb SDB_DRIVER_FILES= IGNORE=This port does not yet support SDB TIMEDB .endif -# if one and only 1 of the SDB options is set -# then the value of ${num_sdb_types} will be "SDB 1" -.if ${num_sdb_types} == "SDB" -IGNORE=You must select one SDB database type : DEBUG 1: ->${num_sdb_types}<- -.else -. if ${num_sdb_types} != "SDB 1" -IGNORE=You have selected more than one SDB database type : DEBUG 2: ->${num_sdb_types}<- -. endif -.endif - pre-patch: .for FILE in ${SDB_DRIVER_FILES} @${CP} ${WRKSRC}/contrib/sdb/${SDB_DRIVER}/${FILE} ${WRKSRC}/bin/named Modified: head/dns/djbdns/Makefile ============================================================================== --- head/dns/djbdns/Makefile Tue Mar 26 07:35:22 2013 (r315265) +++ head/dns/djbdns/Makefile Tue Mar 26 07:43:14 2013 (r315266) @@ -1,9 +1,5 @@ -# New ports collection makefile for: dnscache -# Date created: 24 Jan 2000 -# Whom: Neil Blakey-Milner -# +# Created by: Neil Blakey-Milner # $FreeBSD$ -# PORTNAME?= djbdns PORTVERSION?= ${DJBDNS_VER} @@ -20,20 +16,22 @@ COMMENT?= A collection of secure and rel RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools \ tcpserver:${PORTSDIR}/sysutils/ucspi-tcp -OPTIONS= DUMPCACHE "persistent cache for dnscache" off \ - IPV6 "IPv6 support by Felix von Leitner" off \ - IGNOREIP "ignoreip2 patch by Russell Nelson" off \ - JUMBO "jumbo patch by Claudiu Costin" off \ - MAN "manual pages by Gerritt Pape" on \ - PERSISTENT_MMAP "persistent mmap patch by Lennert Buytenhek" off \ - SRV "SRV record patch by Michael Handler" off \ - DNSCURVE "DNSCurve support by Matthew Dempsky" off - -.include - -.if defined(WITH_JUMBO) -.if defined(WITH_IPV6) || defined(WITH_IGNOREIP) || defined(WITH_SRV) || \ - defined(WITH_DNSCURVE) +OPTIONS_DEFINE= DUMPCACHE IPV6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE +OPTIONS_DEFAULT= MAN +DUMPCACHE_DESC= persistent cache for dnscache +IPV6_DESC= IPv6 support by Felix von Leitner +IGNOREIP_DESC= ignoreip2 patch by Russell Nelson +JUMBO_DESC= jumbo patch by Claudiu Costin +MAN_DESC= manual pages by Gerritt Pape +PERSISTENT_MMAP_DESC= persistent mmap patch by Lennert Buytenhek +SRV_DESC= SRV record patch by Michael Handler +DNSCURVE_DESC= DNSCurve support by Matthew Dempsky + +.include + +.if ${PORT_OPTIONS:MJUMBO} +.if ${PORT_OPTIONS:MIPV6} || ${PORT_OPTIONS:MIGNOREIP} || ${PORT_OPTIONS:MSRV} || \ + ${PORT_OPTIONS:MDNSCURVE} BROKEN= The jumbo patch currently conflicts with the IPv6, ignoreip2, SRV and DNSCURVE patches .endif @@ -41,12 +39,12 @@ PATCH_SITES+= http://people.FreeBSD.org/ ${MASTER_SITE_LOCAL:S/%SUBDIR%\//roam\/dns\/djbdns\/:jumbo/} PATCHFILES+= jumbo-p13.patch.gz:jumbo PATCH_DIST_STRIP= -p1 -.if defined(WITH_DUMPCACHE) +.if ${PORT_OPTIONS:MDUMPCACHE} CFLAGS+= -DDUMPCACHE .endif .endif -.if defined(WITH_MAN) +.if ${PORT_OPTIONS:MMAN} MANDATE= -20031023 MASTER_SITES+= http://smarden.org/pape/djb/manpages/:manpages DISTFILES+= ${DISTNAME}-man${MANDATE}.tar.gz:manpages @@ -61,7 +59,7 @@ MAN8= axfr-get.8 axfrdns.8 axfrdns-conf MANCOMPRESSED= no .endif -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIPV6} PKGNAMESUFFIX= -ipv6 PORTVERSION= ${DJBDNS_VER}.${DJBDNS_V6_VER:S/test/b/:S/diff//} PATCH_SITES+= http://www.fefe.de/dns/:ipv6 @@ -70,8 +68,8 @@ PATCH_DIST_STRIP= -p1 EXTRA_PATCHES+= ${FILESDIR}/uint32.patch ${FILESDIR}/djbdns-ipv6-ooyama.patch .endif -.if defined(WITH_DUMPCACHE) && !defined(WITH_JUMBO) -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MDUMPCACHE} && ! ${PORT_OPTIONS:MJUMBO} +.if ${PORT_OPTIONS:MIPV6} BROKEN= The IPv6 and dnscache-dumpcache patches are currently in conflict .endif PATCH_SITES+= http://efge.free.fr/djbdns/:dumpcache @@ -80,8 +78,8 @@ PATCH_DIST_STRIP= -p1 CFLAGS+= -DDUMPCACHE .endif -.if defined(WITH_IGNOREIP) -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIGNOREIP} +.if ${PORT_OPTIONS:MIPV6} BROKEN= The IPv6 patch already includes the ignoreip2 functionality .endif PATCH_SITES+= http://tinydns.org/:ignoreip @@ -89,20 +87,20 @@ PATCHFILES+= djbdns-1.05-ignoreip2.patch PATCH_DIST_STRIP= -p1 .endif -.if defined(WITH_PERSISTENT_MMAP) +.if ${PORT_OPTIONS:MPERSISTENT_MMAP} PATCH_SITES+= http://people.FreeBSD.org/~roam/ports/patches/dns/:persistent PATCHFILES+= tinydns-persistmmap-20040418.patch:persistent PATCH_DIST_STRIP= -p1 .endif -.if defined(WITH_SRV) +.if ${PORT_OPTIONS:MSRV} PATCH_SITES+= http://tinydns.org/:srv PATCHFILES+= srv-patch:srv PATCH_DIST_STRIP= -p1 .endif -.if defined(WITH_DNSCURVE) -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MDNSCURVE} +.if ${PORT_OPTIONS:MIPV6} BROKEN= The IPv6 and DNSCurve patches are currently in conflict .endif PATCH_SITES+= http://shinobi.dempsky.org/~matthew/patches/:dnscurve @@ -119,7 +117,7 @@ DJBDNS_V6_VER= test23 ALL_TARGET= it INSTALL_TARGET= setup check -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIPV6} PLIST_SUB+= WITH_IPV6="" .else PLIST_SUB+= WITH_IPV6="@comment " @@ -130,10 +128,10 @@ post-patch: @echo "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld @echo "${PREFIX}" > ${WRKSRC}/conf-home -.if defined(WITH_MAN) +.if ${PORT_OPTIONS:MMAN} post-install: @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.1 ${PREFIX}/man/man1/ @${INSTALL_MAN} ${WRKDIR}/djbdns-man/*.8 ${PREFIX}/man/man8/ .endif -.include +.include Modified: head/dns/powerdns-recursor/Makefile ============================================================================== --- head/dns/powerdns-recursor/Makefile Tue Mar 26 07:35:22 2013 (r315265) +++ head/dns/powerdns-recursor/Makefile Tue Mar 26 07:43:14 2013 (r315266) @@ -1,9 +1,5 @@ -# New ports collection makefile for: powerdns-recursor -# Date Created: 14.Nov 2006 -# Whom: sten@blinkenlights.nl -# +# Created by: sten@blinkenlights.nl # $FreeBSD$ -# PORTNAME= powerdns-recursor PORTVERSION= 3.3 @@ -21,9 +17,10 @@ BUILD_DEPENDS= bjam:${PORTSDIR}/devel/bo USE_BZIP2= yes USE_GMAKE= yes -OPTIONS= SETUID "Run as pdns_recursor user" on \ - LUA "Enable Lua bindings" off \ - STATIC "Build static binaries" off +OPTIONS_DEFINE= SETUID LUA STATIC +OPTIONS_DEFAULT= SETUID +SETUID_DESC= Run as pdns_recursor user +STATIC_DESC= Build static binaries CXXFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -31,7 +28,7 @@ LDFLAGS+= -L${LOCALBASE}/lib MAN8= rec_control.8 pdns_recursor.8 SUB_FILES= pkg-message -.include +.include .if ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64 @@ -39,13 +36,13 @@ BROKEN= Does not compile on sparc64 USE_RC_SUBR+= pdns-recursor -.if defined(WITH_SETUID) +.if ${PORT_OPTIONS:MSETUID} EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-setuid USERS= pdns_recursor GROUPS= pdns .endif -.if defined(WITH_LUA) +.if ${PORT_OPTIONS:MLUA} USE_LUA=5.1 LUA_COMPS=lua MAKE_ENV+=LUA=1 @@ -53,7 +50,7 @@ MAKE_ENV+=LUA_CPPFLAGS_CONFIG=-I${LOCALB MAKE_ENV+="LUA_LIBS_CONFIG=-L${LOCALBASE}/lib/lua51/ -llua" .endif -.if defined(WITH_STATIC) +.if ${PORT_OPTIONS:MSTATIC} MAKE_ENV+=STATIC=full .endif @@ -81,4 +78,4 @@ post-install: @${INSTALL_MAN} ${WRKSRC}/*.8 ${PREFIX}/man/man8/ @${CAT} ${PKGMESSAGE} -.include +.include