From owner-freebsd-current@FreeBSD.ORG Wed Sep 17 08:26:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F6CE16A4B3; Wed, 17 Sep 2003 08:26:48 -0700 (PDT) Received: from freddy.inty.net (freddy.inty.net [195.224.93.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 787C043FB1; Wed, 17 Sep 2003 08:26:47 -0700 (PDT) (envelope-from paul@freebsd-services.com) x-previous-hop: 212.50.178.178 Received: from inty.hq.inty.net (inty-untrusted-aztec-west.inty.net [212.50.178.178]) by freddy.inty.net (8.12.9/8.12.9) with ESMTP id h8HFQgT6013664; Wed, 17 Sep 2003 16:26:42 +0100 (BST) Received: from [10.0.1.111] ([10.0.1.111]) by inty.hq.inty.net (8.12.1/8.12.1) with ESMTP id h8HFQfSX002618; Wed, 17 Sep 2003 16:26:41 +0100 (BST) From: Paul Richards To: Mark Murray In-Reply-To: <200309171445.h8HEjrh6065898@grimreaper.grondar.org> References: <200309171445.h8HEjrh6065898@grimreaper.grondar.org> Content-Type: text/plain Message-Id: <1063812422.33631.104.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Wed, 17 Sep 2003 16:27:03 +0100 Content-Transfer-Encoding: 7bit X-Sender-IP: 10.0.1.111 X-INT-DeliveryDone: h8HFQfSX002618 cc: ports@freebsd.org cc: current@freebsd.org Subject: Re: Base packaging X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2003 15:26:48 -0000 On Wed, 2003-09-17 at 15:45, Mark Murray wrote: > Paul Richards writes: > > I've got a prototype setup that packages the base tree. It turned out to > > be very simple. It needs a lot more polishing and testing but it looks > > like this can definitely be made to work with just some tidying up and > > re-arranging of our existing make files. I've succesfully created > > packages of /sbin by adding the following to /usr/src/sbin/Makefile > > > > -- > > PORTNAME= FreeBSD-sbin > > PORTVERSION= 1.0 > > COMMENT=sbin > > CATEGORIES=misc > > -- > > ... etc. > > This is excellent! > > However, I suspect that a marginally better place to use these would be > in the "make distribute" target that "make release" uses. This way, the > files are already separated out into directory structures, and it may be > easier to build complex pkg-plist's with find(1). ALSO, it may be easier > to make more fine-grained packages (DISTRIBUTION=foo) with this. I looked into this originally so that I could use the standard BSD make includes for a project in work but I needed some way to have "install" wrappered so that any files installed by my project were registered in a package. Therefore, I wouldn't want it restricted to just FreeBSD release scripts since I want to be able to use it outside of the FreeBSD tree. I was thinking of adding an option to install so it registers the file in a plist rather than actually doing the install. A seperate "make plist" target could then be used as a helper target to automate the generation of plists. If we want to get even more resilient, we could pass a plist file to install and have install abort if the file to install is missing from the plist e.g. return an "out of date package" error or something. Paul.