From owner-freebsd-doc Tue Mar 12 5: 2:10 2002 Delivered-To: freebsd-doc@freebsd.org Received: from CC40670-a.groni1.gr.nl.home.com (cc40670-a.groni1.gr.nl.home.com [217.120.131.23]) by hub.freebsd.org (Postfix) with ESMTP id 3C1A737B400 for ; Tue, 12 Mar 2002 05:02:05 -0800 (PST) Received: (from jochem@localhost) by CC40670-a.groni1.gr.nl.home.com (8.11.6/8.11.6) id g2CD22a87771 for doc@FreeBSD.org; Tue, 12 Mar 2002 14:02:02 +0100 (CET) (envelope-from jochem) Date: Tue, 12 Mar 2002 14:02:02 +0100 From: Jochem Kossen To: doc@FreeBSD.org Subject: porters handbook chapter 17 - Automated package list creation Message-ID: <20020312130202.GA87740@jochem.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, I found the method described to create the pkg-plist not working for most ports. For example, the "make depends PREFIX=/var/tmp/port-name" causes the port for which the pkg-plist is to be generated to be unable to find the required files from the dependencies. Also, the "find -d * -type d ..."-commands puts directories like "share" (which refers to $PREFIX/share) in the pkg-plist while it shouldn't Here is a method which works for every port i've tried: --------------------------------------------------------------------- # touch pkg-plist # mtree -U -f /etc/mtree/BSD.local.dist -d -e -p /var/tmp/port-name # make depends # (cd /var/tmp/port-name && find * -type d) > OLD-DIRS # make install PREFIX=/var/tmp/port-name # (cd /var/tmp/port-name && find * \! -type d) > pkg-plist # (cd /var/tmp/port-name && find * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#\@dirrm #' >> pkg-plist # sort -r pkg-plist -o pkg-plist --------------------------------------------------------------------- Of course the pkg-plist still needs the same hand-editing after this... Is this a better suggestion than what the porter's handbook offers, or am I wrong here? Jochem I'm not subscribed to the doc@ list, so please cc: me...Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message