creating /usr/ports/packages

Let's say I decided to make packages from all installed ports:
# pkg_info | cut -f1 -d" " | xargs -n 1 pkg_create -j -b
Which is ok, but this gives list of all packages in one spot.

My question is, is it possible to do this in a way so that it resembles the structure in /usr/ports/packages, with All, Latest directories, symlinks, etc? I was looking at portmaster, but I don't think it can do this.
 
Create the packages as you build your ports. Then the structure will get created automatically.

I normally use portmaster -dg <category>/<portname>. The -g switch creates the package when the port is finished building.
 
Thanks for reply.

I understand that and -g switch; the problem is this - what if I already have latest ports installed and don't have packages, but, I want to recreate the /usr/ports/packages structure from it?

I don't think pkg_create or portmaster can do it.
 
Back
Top