Date: Sun, 24 Oct 1999 20:26:24 +0200 From: Alexander Langer <alex@cichlids.com> To: freebsd-doc@freebsd.org Subject: http://www.freebsd.org/handbook/porting.html Message-ID: <19991024202624.A72724@cichlids.cichlids.com>
index | next in thread | raw e-mail
Hello!
Last time I read section
#PORTING-AUTOPLIST
everything worked fine.
But now something is wrong, I think.
Let us compare. I will do this in a port that is not maintained by me,
but maintained by a committer. Let's take archivers/bzip2
First, make sure your port is almost complete, with only PLIST
missing. Create an empty PLIST.
# touch PLIST
This is not important, but it should be ``touch pkg/PLIST''
Additionally, this step is obselete...
Next, create a new set of directories which your port can be
installed, and install any dependencies.
# mtree -U -f /etc/mtree/BSD.local.dist -d -e -p
/var/tmp/port-name
# make depends PREFIX=/var/tmp/port-name
Ok. Let us do this. I call the port "test".
root:/usr/ports/archivers/bzip2 $ mkdir /var/tmp/test
root:/usr/ports/archivers/bzip2 $ mtree -U -f
/etc/mtree/BSD.local.dist -d -e -p /var/tmp/test
[...]
root:/usr/ports/archivers/bzip2 $ make depends PREFIX=/var/tmp/test
Store the directory structure in a new file.
^^^^^^^^^^^^^
# (cd /var/tmp/port-name && find * \! -type d) >
OLD-DIRS
ok. Where's the sense? That makes no sense, because there are no files
in it. You WANT the directories, why do you EXCLUDE them??
root:/usr/ports/archivers/bzip2 $ cd /var/tmp/test && find * \! -type
d
root:/usr/ports/archivers/bzip2 $
shouldn't it be:
root:/usr/ports/archivers/bzip2 $ cd /var/tmp/test && find * -type d
[...] all the existing dirs in /var/tmp/test
root:/usr/ports/archivers/bzip2 $
I think it should.
You must also add any newly created
directories to the packing list.
# (cd /var/tmp/port-name && find * -type \
d) | comm -13 OLD-DIRS - | sed -e \
's#^#@dirrm#' >> pkg/PLIST
OLD-DIRS is empty (I showed you), so also "sbin" or "man" is part of
the port's PLIST. That is probably wrong.
The sed stuff is a little weird.
It won't work this way:
root:/usr/ports/archivers $ (cd /var/tmp/test && find * -type d ) | \
sed -e 's#^#@dirrm#'
@dirrmbin
@dirrmetc
....
Please adjust it to 's#^#@dirrm #'
root:/usr/ports/archivers $ (cd /var/tmp/test && find * -type d ) | \
sed -e 's#^#@dirrm #'
@dirrm bin
@dirrm etc
Thanks.
Oh: Well, it is possible that I'm wrong or I missed a point. Please
tell me.
Alex
--
I doubt, therefore I might be.
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?19991024202624.A72724>
