From owner-freebsd-ports Thu Jan 23 13:20: 8 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FB3037B401 for ; Thu, 23 Jan 2003 13:20:07 -0800 (PST) Received: from analog.databits.net (analog.databits.net [198.78.65.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C09843E4A for ; Thu, 23 Jan 2003 13:20:07 -0800 (PST) (envelope-from petef@analog.databits.net) Received: (qmail 37412 invoked by uid 1000); 23 Jan 2003 21:16:16 -0000 Date: Thu, 23 Jan 2003 15:16:16 -0600 From: Pete Fritchman To: "James E. Flemer" Cc: freebsd-ports@freebsd.org Subject: Re: Determining the correct pkg-plist Message-ID: <20030123211616.GD65443@absolutbsd.org> References: <20030120103044.127a30ea.corecode@corecode.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ++ 23/01/03 15:58 -0500 - James E. Flemer: | Has anyone looked into using FFS snapshots to help automate | plist generation? Clearly this only applies to 5.x, until | (if) snapshots are backported to -STABLE. I think that might be a bit overkill. I do something sort of similiar to what you're envisioning, I think. I do a find ${PREFIX} > prefix.0, install the port, and then a find ${PREFIX} > prefix.1. Diff them, run it through some sed/sort/grep/whatever magic and generate an initial stab at a PLIST. Then make the manpages manually (or if there are a bunch, more shell magic to generate something useful to paste into the Makefile, etc). Reinstall/package/deinstall, find ${PREFIX} > prefix.2, and verify that prefix.0 == prefix.2 (in doing so, you've verified the state of your system is returned to that of prefix.0). Make sure you do a "make depends" before generating prefix.0, otherwise the problems are obvious. It doesn't detect things like changes to permissions mtree specifies, or files installed outside of ${PREFIX}, but it's quick & easy... any other problems will show up on bento, worst case scenario. --pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message