From owner-freebsd-doc Sun Oct 24 11:23:38 1999 Delivered-To: freebsd-doc@freebsd.org Received: from mail.rp-plus.de (clubserv.rp-online.de [149.221.232.11]) by hub.freebsd.org (Postfix) with ESMTP id 90F5C150CD for ; Sun, 24 Oct 1999 11:23:30 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from neutron.cichlids.com (as8-pri47.rp-plus.de [149.221.239.175]) by mail.rp-plus.de (8.9.1a/8.9.1) with ESMTP id UAA09941 for ; Sun, 24 Oct 1999 20:23:43 +0200 (METDST) Received: from cichlids.cichlids.com (root@cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (8.9.3/8.9.1) with ESMTP id UAA83235 for ; Sun, 24 Oct 1999 20:24:10 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id UAA72900 for freebsd-doc@freebsd.org; Sun, 24 Oct 1999 20:26:24 +0200 (CEST) (envelope-from alex) From: Alexander Langer Date: Sun, 24 Oct 1999 20:26:24 +0200 To: freebsd-doc@freebsd.org Subject: http://www.freebsd.org/handbook/porting.html Message-ID: <19991024202624.A72724@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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