From owner-freebsd-ports@FreeBSD.ORG Wed Jan 28 15:13:16 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 AE4161E4 for ; Wed, 28 Jan 2015 15:13:16 +0000 (UTC) Received: from udns.ultimatedns.net (ultimatedns.net [209.180.214.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83D4DFF9 for ; Wed, 28 Jan 2015 15:13:16 +0000 (UTC) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t0SEouL3064766; Wed, 28 Jan 2015 06:50:56 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: freebsd-ports@freebsd.org, Joe Holden In-Reply-To: <54C8C540.3060602@rewt.org.uk> References: <54B3E3D4.7040509@rewt.org.uk> , <54B3F985.5060409@rewt.org.uk> <892623d04091975c961021b46049243c@ultimatedns.net>, <54C8C540.3060602@rewt.org.uk> From: "Chris H" Subject: Re: powerdns meta packages? Date: Wed, 28 Jan 2015 06:51:04 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <97cd46a3d23678d88302480c08b0122e@ultimatedns.net> Content-Transfer-Encoding: 8bit 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 15:13:16 -0000 On Wed, 28 Jan 2015 11:17:20 +0000 Joe Holden wrote > 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? Off the top of my pointy head; I'm going to guess it's wanting to install PowerBSD, but it's already installed? Because you haven't already said so; the following may help shed some light: in /etc/make.conf: DEVELOPER=yes When testing your port make -DBATCH check-plist portlint(1) is your friend - ports-mgmt/portlint HTH > > Cheers > > > All the best. > > > > --Chris > >> > >> Cheers > >> > >>> --Chris > >>>> > >>>> Cheers, > >>>> J --Chris --