Re: Determining what a port will install... (more than pretty-print-*) [Soln]

From: Eric Schuele (e.schuele_at_computer.org)
Date: 10/03/05

  • Next message: Efren Bravo: "Re: Interfaces doesn't appear"
    Date: Mon, 03 Oct 2005 11:57:47 -0500
    To: Eric Schuele <e.schuele@computer.org>
    
    

    hmm... apologies on the poor formating.

    Eric Schuele wrote:
    > Hello,
    >
    > Some time back I posted a question regarding how to determine what
    > ports/packages would need to be installed on my machine when I install a
    > new (new to the local machine) port.
    >
    > For example, if I do not presently have openoffice installed... what
    > will get installed when I 'make install clean' it? Note that I want the
    > differences between what is needed to build/run the port and what is
    > already present on the machine.
    >
    > At the time no one responded with a clear way to do this... so I finally
    > had a few minutes to write a script to do it for me. I thought someone
    > else might find it useful... So I'm posting it here for comments and
    > thoughts (be gentle, I'm new to awk).
    >
    > I find it useful, especially for laptops... which may have a small HDD
    > and little memory. I generally try to install the minimum necessary to
    > do my work.
    >
    > #! /bin/sh
    >
    > # Script to determine the differences between what is necessary for
    > # a port, and what is already present on the local machine.
    >
    > make pretty-print-build-depends-list | \
    > awk '{
    > count = 0
    > pkgs = ""
    > for(i=5; i<=NF-2; i++) {
    > pkg = $i
    >
    > if (index(pkg, "\"") == 1)
    > {pkg = substr(pkg, 2, length(pkg)-1)}
    > if (index(pkg, "\"") > 1)
    > {pkg = substr(pkg, 1, length(pkg)-1)}
    >
    > if ( system("pkg_info -e " pkg) == 1) {
    > pkgs = pkgs " " pkg
    > count++
    > }
    > }
    >
    > if ( count ) {
    > print "You need the following (build) perequisites:"
    > print pkgs
    > }
    > else {
    > print "All (build) prerequisites are present."
    > }
    >
    > }'
    >
    > make pretty-print-run-depends-list | \
    > awk '{
    > count = 0
    > pkgs = ""
    > for(i=5; i<=NF-2; i++) {
    > pkg = $i
    >
    > if (index(pkg, "\"") == 1)
    > {pkg = substr(pkg, 2, length(pkg)-1)}
    > if (index(pkg, "\"") > 1)
    > {pkg = substr(pkg, 1, length(pkg)-1)}
    >
    > if ( system("pkg_info -e " pkg) == 1) {
    > pkgs = pkgs " " pkg
    > count++
    > }
    > }
    >
    > if ( count ) {
    > print "You need the following (run) perequisites:"
    > print pkgs
    > }
    > else {
    > print "All (run) prerequisites are present."
    > }
    >
    > }'
    >

    -- 
    Regards,
    Eric
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Efren Bravo: "Re: Interfaces doesn't appear"

    Relevant Pages

    • Re: LPT1 Redirection
      ... You mean a printer server box or a printer with an ethernet interface? ... Then you have to install a printer on your local machine and when you ... port, where you type the ip address etc for the printer. ...
      (microsoft.public.win2000.general)
    • Re: Software only runs for Admin
      ... I'm assuming that on the local machine he's trying to run in "user mode" ... Install the program and then reapply ... Since this computer must be in workgroup mode to be ... > run a test, figure how what registry needs to be wacked open, edit the ...
      (microsoft.public.windows.server.sbs)
    • Re: Software only runs for Admin
      ... I'm assuming that on the local machine he's trying to run in "user mode" ... Install the program and then reapply ... Since this computer must be in workgroup mode to be ... > run a test, figure how what registry needs to be wacked open, edit the ...
      (microsoft.public.windows.server.sbs)
    • Re: pam, ssh, user account vulnerability
      ... md5sums match those on record in the BerkeleyDB files in /var/lib/rpm. ... caused by normal sysadmin-created local machine configuration data. ... data files, manually rebuild local machine state by reference to (but ... And I'd also install & configure a file-based IDS, ...
      (comp.os.linux.setup)
    • iis 5.0 on win2k professional : Not able to connect to localhost
      ... I have a system running Win2k professional and I have ... applied SP4 also. ... I do not have any id on the local machine. ... install all the humpteen software we have installed so far. ...
      (microsoft.public.inetserver.iis.security)