From owner-freebsd-ports@FreeBSD.ORG Wed Jan 28 11:24:44 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C85FD67B for ; Wed, 28 Jan 2015 11:24:44 +0000 (UTC) Received: from mail.as41113.net (mail.as41113.net [91.208.177.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8AE863B6 for ; Wed, 28 Jan 2015 11:24:44 +0000 (UTC) Received: from [172.21.87.41] (193.98.9.212.in-addr.arpa [212.9.98.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by mail.as41113.net (Postfix) with ESMTPSA id 3kXMjH5CCYz1N22s; Wed, 28 Jan 2015 11:17:23 +0000 (GMT) Message-ID: <54C8C540.3060602@rewt.org.uk> Date: Wed, 28 Jan 2015 11:17:20 +0000 From: Joe Holden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Chris H , freebsd-ports@freebsd.org Subject: Re: powerdns meta packages? References: <54B3E3D4.7040509@rewt.org.uk> , <54B3F985.5060409@rewt.org.uk> <892623d04091975c961021b46049243c@ultimatedns.net> In-Reply-To: <892623d04091975c961021b46049243c@ultimatedns.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 11:24:44 -0000 On 12/01/2015 16:53, Chris H wrote: > On Mon, 12 Jan 2015 16:42:45 +0000 Joe Holden wrote > >> On 12/01/2015 16:05, Chris H wrote: >>> On Mon, 12 Jan 2015 15:10:12 +0000 Joe Holden wrote >>> >>>> Hi guys, >>>> >>>> What is the process for adding/submitting "meta" packages for ports for >>>> example powerdns that have multiple backend options and the default >>>> isn't suitable, or failing that have the ability to install powerdns >>>> with default backend but allow the installation of others? >>>> >>>> Currently the port defaults to postgres, in this case I'd like sqlite >>>> backend for some servers (slaves), at the moment I'm just building that >>>> manually but it does mean I can't just do 'pkg upgrade' >>> As I understand it, you want to create a custom "meta-port". >>> You might do well to have a look at some of the other meta-ports >>> available, for the best way to accomplish it for your needs; >>> >>> x11/xorg >>> x11/xorg-minimal >>> x11/xorg-apps >>> lang/php5-extensions >>> >>> are some that come to mind. >>> Best wishes. >>> >> This is what I'd normally do but I was hoping with the new pkg stuff we >> could have some sort of virtual packages but this will do I guess! >> >> Will need to read up on package building now - seems a bit silly to have >> my own repo just for -mysql, -sqlite type packages though > Well, I thought you might want to make the (meta)port, and submit it. > Then other like-minded people could also benefit from your > contribution. :) If you submit it as a port, the pkg(8) business takes > care of itself. > So, I made an attempt on my poudriere box, package builds - powerdns-backend-sqlite3, just includes the .so and the schema in plist however pkg says it conflicts. My interpretation from the handbook is that the % option stuff in plist is only used if that option is selected, so I can't see why powerdns (without any backends) and my slave port would conflict... I used mysql server/client ports as a base: Makefile :- PORTNAME= powerdns PKGNAMESUFFIX= -backend-sqlite3 COMMENT= PowerDNS sqlite3 backend MASTERDIR= ${.CURDIR}/../powerdns PKGMESSAGE= mustnotexist PLIST= ${.CURDIR}/pkg-plist OPTIONS_SET= SQLITE3 .include "${MASTERDIR}/Makefile" pkg-plist :- %%LUA_LIBDIR%%/pdns/%%LUA_LIBDIR%%gsqlite3backend.so %%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.sqlite3.sql %%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql %%PORTDOCS%%%%DOCSDIR%%/schema.sqlite3.sql ##### I also made powerdns port not have PGSQL set by default. Is there something obvious I'm doing wrong? Cheers > All the best. > > --Chris >> >> Cheers >> >>> --Chris >>>> >>>> Cheers, >>>> J