From owner-freebsd-current@FreeBSD.ORG Wed Sep 17 05:39:08 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 3D0E116A4B3; Wed, 17 Sep 2003 05:39:08 -0700 (PDT) Received: from freddy.inty.net (freddy.inty.net [195.224.93.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62B1543FCB; Wed, 17 Sep 2003 05:39:06 -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 h8HCcw29088543; Wed, 17 Sep 2003 13:39:01 +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 h8HCcvSX086876; Wed, 17 Sep 2003 13:38:57 +0100 (BST) From: Paul Richards To: current@freebsd.org, ports@freebsd.org Content-Type: text/plain Message-Id: <1063802358.33631.44.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Wed, 17 Sep 2003 13:39:19 +0100 Content-Transfer-Encoding: 7bit X-Sender-IP: 10.0.1.111 X-INT-DeliveryDone: h8HCcvSX086876 X-suppress-rcpt-virus-notify: yes X-Virus-Checked: 15991 X-Skip-Virus-Check: yes Subject: 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 12:39:08 -0000 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 -- host# pkg_info -Im FreeBSD\* FreeBSD-sbin-1.0 sbin host# Patches below: Similar patches are needed in bsd.lib.mk and bsd.prog.mk if you need to create packages in leaf directories. I've tested that but not included the diffs here since it's more likely a package would be at a higher directory level. *** bsd.subdir.mk Wed Sep 17 12:47:11 2003 --- new.subdir.mk Wed Sep 17 13:07:01 2003 *************** *** 90,95 **** .if !target(afterinstall) afterinstall: .endif ! install: beforeinstall realinstall afterinstall ! .ORDER: beforeinstall realinstall afterinstall .endif --- 90,99 ---- .if !target(afterinstall) afterinstall: .endif ! .if defined(PORTNAME) ! .include ! .else ! install: beforeinstall realinstall afterinstall fake-pkg ! .ORDER: beforeinstall realinstall afterinstall fake-pkg ! .endif .endif ----------------------- # bsd.syspkg.mk LOCALBASE=/ WRKDIR=${.OBJDIR} NO_WRKSUBDIR=YES NO_CHECKSUM=YES NO_BUILD=YES fetch: extract: patch: configure: install: beforeinstall realinstall afterinstall generate-plist fake-pkg .include .include "${PORTSDIR}/Mk/bsd.port.mk" intY has scanned this email for all known viruses (www.inty.com)