From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 06:48:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D5E016A4CE for ; Wed, 26 Nov 2003 06:48:04 -0800 (PST) Received: from note.orchestra.cse.unsw.EDU.AU (note.orchestra.cse.unsw.EDU.AU [129.94.242.24]) by mx1.FreeBSD.org (Postfix) with SMTP id 7133043FA3 for ; Wed, 26 Nov 2003 06:48:02 -0800 (PST) (envelope-from akok440@cse.unsw.edu.au) Received: From weill With LocalMail ; Thu, 27 Nov 2003 01:47:37 +1100 From: Andri Kok To: Odhiambo Washington Date: Thu, 27 Nov 2003 01:47:37 +1100 (EST) X-X-Sender: akok440@weill.orchestra.cse.unsw.EDU.AU In-Reply-To: <20031126074752.GA55349@ns2.wananchi.com> Message-ID: References: <20031126074752.GA55349@ns2.wananchi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FBSD-Q Subject: Re: Package dependencies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 14:48:04 -0000 ok then. i'll start reading the porters handbook :) thx a lot for the reply Regards, Andri Kok On Wed, 26 Nov 2003, Odhiambo Washington wrote: > * Andri Kok [20031126 10:40]: wrote: > > Hi guys, > > > > I know that the ports system that FreeBSD has takes care of dependencies, > > but I'd like to write my own shell/perl script for finding out which > > dependencies a package need. So I guess the 1 million dollar question is > > "How do the ports programmer know what dependencies a package need?" that > > is all :) thx guys. > > I believe they just get the application and then do the reading. The developer > of every application will say what other apps it will require to run. If you > write a perl program, you do say what modules it will require for it to perform > a certain operation, don't you? > > #!/usr/bin/perl > > use strict; > use Digest::MD5; > use bla::blah; > > Same thing as what the application developer says. > > So for starters, > > cd /usr/ports/net/gaim > make all-depends-list > > Try to investigate what the target 'all-depends-list' does. > > For more details, get the Porter's Handbook. Look for it at www.freebsd.org > > > -Wash > > http://www.netmeister.org/news/learn2quote.html > > -- > +======================================================================+ > |\ _,,,---,,_ | Odhiambo Washington > Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com > |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 > '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 > +======================================================================+ > The first Great Steward, Parrafin the Climber, was employed in King > Chloroplast's kitchen as second scullery boy when the old King met a > tragic death. He apparently fell backward by accident on a dozen salad > forks. Simultaneously the true heir, his son Carotene, mysteriously > fled the city, complaining of some sort of plot and a lot of > threatening notes left on his breakfast tray. At the time, this looked > suspicious what with his father's death, and Carotene was suspected of > foul play. Then the rest of the King's relatives began to drop dead > one after the other in an odd fashion. Some were found strangled with > dishrags and some succumbed to food poisoning. A few were found > drowned in the soup vats, and one was attacked by assailants unknown > and beaten to death with a pot roast. At least three appear to have > thrown themselves backward on salad forks, perhaps in a noble gesture > of grief over the King's untimely end. Finally there was no one left > in Minas Troney who was either eligible or willing to wear the accursed > crown, and the rule of Twodor was up for grabs. The scullery slave > Parrafin bravely accepted the Stewardship of Twodor until that day when > a lineal descendant of Carotene's returns to reclaim his rightful > throne, conquer Twodor's enemies, and revamp the postal system. > -- Harvard Lampoon, "Bored of the Rings" >