On Friday 11 May 2012 22:12:36 Dimitry T wrote:
> Thanks on shellcode. Ofc i try example in man page >> pkg_create -f
> /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS but that create only one
> xfce4-session package without depends. This shellcode do same as pkg_create -f
> /var/db/pkg/*/+CONTENTS, but i want only xfce4-session.
> 

I think I found a way with pkg_add and PKG_CACHE. Provided that you have made 
all packages installed on your current system. (assuming all needed packages 
are installed)

Please read the pkg_add manual for the explanation of -U and PKG_CACHE. I'm 
doing homework which you could do yourself.

"sudo pkg add -U "your_package"

Before you do that you have set "export PKG_CACHE=/the/packages/you/need/"

After that you find the necesary packages in /the/packages/you/need/.

> > Date: Fri, 11 May 2012 21:29:59 +0200
> > From: es...@nerim.net
> > To: rfabr...@nerdshack.com
> > CC: misc@openbsd.org
> > Subject: Re: making packages
> >
> > On Fri, May 11, 2012 at 07:48:15PM +0200, Renzo Fabriek wrote:
> > > As for pkg_create. The manual explains that very well, it even provides an
> example. I don't repeat it here. Just look a bit further.
> > > But as far as I can see you'll have to do that for every package. Still
> much faster than compiling.
> >
> > Well, shell is good, e.g.,
> > for f in /var/db/pkg/*/+CONTENTS
> > do
> >     pkg_create -f $f
> > done
> >
> > (generally done as root if any file in any package may be unreadable as
> normal
> > user).

Reply via email to