Date: Tue, 12 Mar 2002 14:02:02 +0100 From: Jochem Kossen <j.kossen@home.nl> To: doc@FreeBSD.org Subject: porters handbook chapter 17 - Automated package list creation Message-ID: <20020312130202.GA87740@jochem.dyndns.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020312130202.GA87740>