Subject: Re: "package" target
To: None <pkgsrc-users@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-users
Date: 03/30/2007 13:04:25
On Thu, Mar 29, 2007 at 10:24:16PM +0200, Jan Danielsson wrote:
>    However, this fails if the package has already been installed.
> Although I can understand why, I would really like to be able to create
> packages of already installed packages. Is is doable?

Yes, install the "pkg_tarup" package and use "make tarup" afterwards in
"pkgsrc/category/pkgname" afterwards.

To create binary packages for all installed package you could use a
script like this:

#!/bin/sh
pkg_info -Q PKGPATH '*' |
while read DIR
do
	cd /usr/pkgsrc/$DIR
	make tarup
done

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/