Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 1998 13:40:46 +0000
From:      Tom Hukins <tom@eborcom.com>
To:        freebsd-doc@FreeBSD.ORG
Subject:   Suggestion for "Making a port yourself" in the Handbook
Message-ID:  <19981229134046.A2455@eborcom.com>

next in thread | raw e-mail | index | archive | help
I've found the "Making a port yourself" section of the Handbook very
useful recently, as I've started contributing ports.

I didn't like the idea of building a packing list by hand, so I
figured out a way of creating packing lists semi-automatically.
There is currently no mention of any such technique in the handbook,
so I suggest this (or something better) is included:


Creating a packing list manually can be a very tedious task. It is
often best to create the PLIST file using the "find" program.

First, make sure your port is almost complete, with only the PLIST
file missing. Create an empty PLIST with:
% touch files/PLIST

then do:
% make install PREFIX=/var/tmp/MY-PORT

If your port honours the PREFIX variable (which it should), it will
install everything within /var/tmp/MY-PORT. To create the packing
list do:
% cd /var/tmp/MY-PORT && find * \! -type d -print

You should also check for any directories within /var/tmp/MY-PORT
which have been added by the port. Edit the packing list placing
@dirrm commands at the end for each of these directories.

Finally, clear up your installation area with:
% rm -fr /var/tmp/MY-PORT


Regards,
Tom

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981229134046.A2455>