Re: Create tgz packages

2005-01-12 Thread Parv
in message [EMAIL PROTECTED],
wrote Parv thusly...
 
   find  /var/db/pkg -mindepth 1 -type d  \
  ^ ^ ^ ^ ^ ^
  ^ ^ ^ ^ ^ ^
   | while read port; do pkg_create -b $(basename $port); done

I made a gross mistake in my above reply related to -mindepth
option of find(1).  I wanted to find all the directories in
/var/db/pkg w/o recursion in the directories found.  From find(1)
...

  -mindepth n
Always true; do not apply any tests or actions at levels less than
n.  If any -mindepth primary is specified, it applies to the
entire expression even if it would not normally be evaluated.
-mindepth 1 processes all but the command line arguments.


If there happened to be a sub-directory -- not the case right now --
in one of the ports, then it too would have been passed to the
pkg_create(1) command given the quoted text above.  Same problem
exits in my previous reply in this thread.

-mindepth needs to be changed to -maxdepth, as in ...

  find  /var/db/pkg -maxdepth 1 -type d  \
  | while read port; do pkg_create -b $(basename $port); done


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-09 Thread Christer Solskogen
On Thu, 06 Jan 2005 19:24:02 +0100, albi wrote:

 Albert Shih wrote:
 
 Suppose I have two computer, one very fast and one very slow, I want
 compile some application (with ports) on the fast and put in slow computer.
 But I can not use some tar or rsync (hard to explain why but trust me I can)
 
 I want to create a tgz file and transfert it to slow computer to
 install. How can I do that or where can I find some documentation for that.
 
 example :
 cd /usr/ports/audio/aumix
 make package
 
 copy /usr/ports/audio/aumix/aumix-gtk-2.8_2.tbz to your slower machine
 and use pkg_add on it

Is there a easy way of making packages of all installed ports?
(I guess it every port will get recompiled, but that doesnt matter to me.)

-- 
cso

Sow your wild oats on Saturday night - then on
Sunday pray for crop failure.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-09 Thread Parv
in message [EMAIL PROTECTED],
wrote Christer Solskogen thusly...

 Is there a easy way of making packages of all installed ports?  (I
 guess it every port will get recompiled, but that doesnt matter to
 me.)

You may or may not need to escape some characters from your shell;
assuming sh ...

  for port in $( find  /var/db/pkg -mindepth 1 -type d )
  do
echo pkg_create -b $(basename $port)
  done


  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-09 Thread Parv
in message [EMAIL PROTECTED],
wrote Parv thusly...

 in message [EMAIL PROTECTED],
 wrote Christer Solskogen thusly...
 
  Is there a easy way of making packages of all installed ports?
 
 assuming sh ...
 
   for port in $( find  /var/db/pkg -mindepth 1 -type d )
   do
 echo pkg_create -b $(basename $port)
  ^ ^ ^ ^ ^ ^ ^ ^
  ^ ^ ^ ^ ^ ^ ^ ^
Oops, forgot to undo the echo after testing; please remove it when
one is ready to create the packages.


   done


Below is another way ...

  find  /var/db/pkg -mindepth 1 -type d  \
  | while read port
do
  pkg_create -b $(basename $port)
done



  - Parv

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-09 Thread Christer Solskogen
Parv wrote:
 for port in $( find  /var/db/pkg -mindepth 1 -type d )
 do
   echo pkg_create -b $(basename $port)
  ^ ^ ^ ^ ^ ^ ^ ^
  ^ ^ ^ ^ ^ ^ ^ ^
Oops, forgot to undo the echo after testing; please remove it when
one is ready to create the packages.
Thanks for your reply. I figured out the 'echo' part myself :)
--
cso
http://carebears.mine.nu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Create tgz packages

2005-01-06 Thread Albert Shih
Hi

Happy new year (I known i'm late).

Suppose I have two computer, one very fast and one very slow, I want
compile some application (with ports) on the fast and put in slow computer.
But I can not use some tar or rsync (hard to explain why but trust me I can)

I want to create a tgz file and transfert it to slow computer to
install. How can I do that or where can I find some documentation for that.

Lots of thanks.




--
Albert SHIH
Universite de Paris 7 (Denis DIDEROT)
U.F.R. de Mathematiques.
7 ième étage, plateau D, bureau 10
Tel  : 01 44 27 86 88
FAX  : 01 44 27 69 35
GSM(UFR) : 06 85 05 58 43
Heure local/Local time:
Thu Jan 6 15:19:37 CET 2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-06 Thread Oliver Boris Fischer
Albert Shih wrote:
I want to create a tgz file and transfert it to slow computer to
install. How can I do that or where can I find some documentation for that.
Go to your ports directory and type make package. make will build your 
port and a portsname.tag in portsdir/packages.

For more information please read the ports manpage (man ports).
MfG
Oliver Fischer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Create tgz packages

2005-01-06 Thread albi
Albert Shih wrote:
Suppose I have two computer, one very fast and one very slow, I want
compile some application (with ports) on the fast and put in slow computer.
But I can not use some tar or rsync (hard to explain why but trust me I can)
I want to create a tgz file and transfert it to slow computer to
install. How can I do that or where can I find some documentation for that.
example :
cd /usr/ports/audio/aumix
make package
copy /usr/ports/audio/aumix/aumix-gtk-2.8_2.tbz to your slower machine
and use pkg_add on it
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]