Ok, I obviously made bba mess. I know how to install packages, but don't know how to make it. This is full story. On one computer i compile from ports xfce4-session and some other ports. I want to make package for xfce4-session, exaile and few another who are already compiled from ports with "make install". After that i will copy packages to usb and install on another computers. Because i wanted to practice and make packages I deleted all existing in /usr/ports/packages.
If i try with >> make package or >> pkg_create -f /var/db/pkg/xfce4-session-4.8.2p2/+CONTENTS I get just one package xfce4-session-4.8.2p2.tgz without depends. Sorry and thanks on homework i try to learn, but only a few days ago i arrived in bsd world. > From: rfabr...@nerdshack.com > To: misc@openbsd.org > Subject: Re: making packages > Date: Fri, 11 May 2012 23:21:28 +0200 > > 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).