View Single Post
  #9   (View Single Post)  
Old 8th November 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by jggimi View Post
[Spoon Feed]

Take the output from make show=pkgnames, and produce a list of packages which are used as input to pkg_add. Here is one possible method:

$ cd /usr/ports/www/gnome
$ pkg_add `make show=pkgname | awk '{if(NF==1) print $1}'`

[/Spoon Feed]

Note: any packages marked broken will obviously not be included in available packages. Rather than routing the output from the "make show" directly into pkg_add, you may wish to place it in a file that you can edit.
when I run
Code:
pkg_add -rv `make show=pkgname | awk '{if(NF==1) print $1}'`
I see this error

Code:
/usr/sbin/pkg_add: Missing pkgname
Usage: pkg_add [-acIinqruvx] [-A arch] [-B pkg-destdir] [-F keywords]
       [-L localbase] [-P type] [-Q quick-destdir] pkg-name [...]
Reply With Quote