From owner-freebsd-ports Mon May 1 6:54:59 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id A142E37BC4D for ; Mon, 1 May 2000 06:54:47 -0700 (PDT) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 12mGee-000IXq-00; Mon, 01 May 2000 15:54:32 +0200 Date: Mon, 1 May 2000 15:54:32 +0200 From: Neil Blakey-Milner To: Maxim Sobolev Cc: Satoshi Asami , ports@freebsd.org Subject: Re: lists of files and directories missing from PLIST Message-ID: <20000501155432.A71070@mithrandr.moria.org> References: <200005010154.SAA08504@silvia.hip.berkeley.edu> <390D20FC.6E7FEB8A@altavista.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <390D20FC.6E7FEB8A@altavista.net>; from sobomax@altavista.net on Mon, May 01, 2000 at 09:15:24AM +0300 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon 2000-05-01 (09:15), Maxim Sobolev wrote: > IMHO, there is easiest way to detetmine leftover files. You can use script > to mesure time spent to make install/deinstall, and then find files in > ${PREFIX}, which have been created during this time. This would allow to > easily associate leftovers with appropriate port. > > 1. cd /usr/ports/myport & make all > 2. t1=time > 3. cd /usr/ports/myport & make install deinstall > 4. t2=time > 5. t=t2-t1 > 6. find ${PREFIX} -cmin -(t+1) cd /usr/ports/myport && make install DESTDIR=`pwd`/destdir find destdir/usr/local -type f | cut -d/ -f4- | diff - pkg/PLIST I use something like the above in my ports-building scripts that came after I wrote makeport.pl. I suppose I could/should use PREFIX instead of DESTDIR. Neil -- Neil Blakey-Milner Hacker In Chief, Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message