From owner-freebsd-ports Sun Jan 19 23:48:16 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 3DF0137B401 for ; Sun, 19 Jan 2003 23:48:15 -0800 (PST) Received: from infinitive.futureperfectcorporation.com (infinitive.futureperfectcorporation.com [196.25.137.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id A942B43E4A for ; Sun, 19 Jan 2003 23:48:11 -0800 (PST) (envelope-from nbm@gerund.futureperfectcorporation.com) Received: (qmail 61317 invoked by uid 0); 20 Jan 2003 07:48:02 -0000 Received: from gerund.futureperfectcorporation.com (196.25.137.65) by infinitive.futureperfectcorporation.com with DES-CBC3-SHA encrypted SMTP; 20 Jan 2003 07:48:02 -0000 Received: (qmail 96910 invoked by uid 1001); 20 Jan 2003 07:52:11 -0000 Date: Mon, 20 Jan 2003 09:52:10 +0200 From: Neil Blakey-Milner To: Ade Lovett Cc: Kris Kennaway , Craig Rodrigues , freebsd-ports@FreeBSD.ORG Subject: Re: Determining the correct pkg-plist Message-ID: <20030120075210.GA96550@mithrandr.moria.org> References: <20030120003011.GA90030@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Organization: iTouch Technology and Architectural Services X-Operating-System: FreeBSD 4.3-RELEASE i386 X-URL: http://mithrandr.moria.org/nbm/ 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 On Sun 2003-01-19 (22:25), Ade Lovett wrote: > On 01/19/03 18:30, "Kris Kennaway" wrote: > > There are some scripts in ports/Tools that mostly-automate this > > process. I usually just use (a suitable variation of) "find > > /usr/local -mmin -5 -o -cmin -5" myself, though. > > Actually, I've found the best method (certainly in the early stages of gnome > 1.x port development) was to make judicious use of > PREFIX=/somewhere/to/build in the install, deinstall, along with a wrapper > to touch /somewhere/to/build/STAMP, and also check for files that ended up > in /usr/X11R6 and /usr/local instead of where they should. > > This has the added advantage that if your port passes, not only is the PLIST > correct, it's also PREFIX-safe. I do something of the same, using my "mkptools" in ports/Tools/scripts/mkptools. Running as my own user, mkpinstall will put stuff in /tmp/${USER}.${PORTNAME}/prefix and generate the PLIST (including dirrm). Doesn't do man pages, though. If it tries to put things in /usr/local or /usr/X11R6, it'll fail, since it's run as a non-root user. mkpskel autogenerates a skeleton Makefile (populating MASTER_SITES, if given a URL, and also distinfo), mkpextr is supposed to (but doesn't) detect which of GNU_CONFIGURE, WRKSRC, USE_PYTHON, USE_PYTHON_DISTUTILS, &c. are needed. Neil -- Neil Blakey-Milner nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message