Date: 7 Jan 1999 21:23:36 -0000 From: Tom Hukins <tom@eborcom.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/9375: Handbook addition: Automated PLIST building for ports Message-ID: <19990107212336.15632.qmail@eborcom.com>
index | next in thread | raw e-mail
>Number: 9375
>Category: docs
>Synopsis: Information on how to build PLIST automatically
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 7 14:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Tom Hukins
>Release: FreeBSD 2.2.8-RELEASE i386
>Organization:
eBORcOM
>Environment:
>Description:
As per the recent thread on the freebsd-doc mailing list (Suggestion
for "Making a port yourself" in the Handbook), here is a patch to
the Handbook which contains information on building a packing list
automatically.
This information should be in the handbook because ports may contain
many files, making manual packing list creation unnecessarily
time-consuming.
I'm not entirely sure whether I've put this in the right section of
the document, but if anyone objects it can easily be moved.
>How-To-Repeat:
>Fix:
--- porting.sgml.orig Sat Jan 2 12:37:34 1999
+++ porting.sgml Thu Jan 7 21:00:30 1999
@@ -154,6 +154,36 @@
sorted alphabetically. It will make verifying the changes
when you upgrade the port much easier.
+ <p>Creating a packing list manually can be a very tedious
+ task. It is often best to generate the packing list
+ automatically.
+
+ <sect2>
+ <heading>Creating the packing list automatically</heading>
+ <p>First, make sure your port is almost complete, with
+ only the <tt>PLIST</tt> file missing. Create an empty
+ <tt>PLIST</tt> with the `<tt>touch files/PLIST</tt>'
+ command.
+
+ <p>Next, create a new set of directories which your port
+ can be installed in with the `<tt>mtree -U -f
+ /etc/mtree/BSD.local.dist -d -e -p /var/tmp/MY-PORT</tt>'
+ command. Store the directory structure in a new file
+ with `<tt>(cd /var/tmp/MY-PORT && find * -type d) >
+ OLD-DIRS</tt>'.
+
+ <p>If your port honours the PREFIX variable (which it
+ should), you can then type `<tt>make install
+ PREFIX=/var/tmp/MY-PORT</tt>'. Once the port has been
+ installed successfully, create the packing list with
+ `<tt>(cd /var/tmp/MY-PORT && find * \! -type d) >
+ pkg/PLIST</tt>'.
+
+ <p>You also need to add any newly created directories to
+ the packing list. To do this, type `<tt>(cd
+ /var/tmp/MY-PORT && find * -type d) | comm -13 OLD-DIRS
+ - | sed -e 's#^#@dirrm #' >> pkg/PLIST</tt>'.
+
<sect2>
<heading>Creating the checksum file</heading>
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990107212336.15632.qmail>
