From owner-freebsd-ports Wed Oct 11 7: 4:23 2000 Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (blizzard.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 925F737B66C for ; Wed, 11 Oct 2000 07:04:03 -0700 (PDT) Received: from vic.sabbo.net (root@vic.sabbo.net [193.193.218.109]) by blizzard.sabbo.net (8.9.1/8.9.3) with ESMTP id RAA23896; Wed, 11 Oct 2000 17:03:37 +0300 (EEST) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.0/8.9.3) with ESMTP id e9BE3dF58995; Wed, 11 Oct 2000 17:03:39 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <39E47337.A085FD80@FreeBSD.org> Date: Wed, 11 Oct 2000 17:03:35 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: James Housley Cc: Carlos A M dos Santos , FreeBSD ports mailing list Subject: Re: Script to genarate PLIST? References: <39E47200.7125F0BF@thehousleys.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org James Housley wrote: > Carlos A M dos Santos wrote: > > > > Hello > > > > Have someone written a script to generate a PLIST from an installation > > directory tree? I'd like to make something like > > > > % make install DESTDIR=/var/tmp/pkg-name > > % mk_plist /var/tmp/pkg-name > PLIST > > > The porters handbook show how to do this. > > http://www.freebsd.org/porters-handbook/porting-autoplist.html > > However it could use some improvements. I usually have the following in my .profile: alias uplist='find `make -V PREFIX` \( -type f -or -type l \) -cmin -10 | sort | sed "s|`make -V PREFIX`/||"' alias duplist='find `make -V PREFIX` -type d -cmin -10 | sort -r | sed "s|`make -V PREFIX`/|@dirrm |"' -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message