From owner-freebsd-ports Fri May 10 12:37: 5 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mail.quantified.com (ns2.quantified.com [63.212.171.3]) by hub.freebsd.org (Postfix) with ESMTP id 7AACD37B401 for ; Fri, 10 May 2002 12:37:01 -0700 (PDT) Received: from danzig.sd.quantified.net (web.quantified.com [63.212.171.5]) by mail.quantified.com (8.12.1/8.12.1) with ESMTP id g4AJatiS073686; Fri, 10 May 2002 12:36:59 -0700 (PDT) (envelope-from dsilver@urchin.com) Date: Fri, 10 May 2002 12:36:58 -0700 (PDT) From: Doug Silver X-Sender: dsilver@danzig.sd.quantified.net To: "Gregory (Grisha) Trubetskoy" Cc: ports@FreeBSD.ORG Subject: Re: How to make packages and dependency packages In-Reply-To: <3CDC1E3F.F581848@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filter-Version: 1.7 (mail.quantified.com) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 10 May 2002, Maxim Sobolev wrote: > "Gregory (Grisha) Trubetskoy" wrote: > > > > Is there a way to tell "make package" also make packages for depndencies? > > > > By default, if /usr/ports/pckages directory exists, then "make package" > > will place the packages there. I am trying to make use of this by NFS > > mounting this directory from multiple servers, so that I can build a port > > on only one machine, then do pkg_add on all the others. > > > > The problem is that "make package" will not make packages for > > dependencies. > > > > As an example, I'm looking for the following functionality: > > > > # mkdir /usr/ports/packages # now packages will be put here > > > > # cd /usr/ports/misc/amanda-client > > # make package > > > > ....this will also build gtar-1.13.25_1, gettext-0.11.1_2 > > and libiconv-1.7_4... > > > > # cd /usr/ports/packages/ALL > > # ls -l > > total 336 > > -rw-r--r-- 1 root wheel 319301 May 10 13:12 amanda-client-2.4.3b2.tgz > > # > > So why aren't gtar, gettext and liibiconv packages in there too, and is > > there a simple way to make them go there, or I would need write my own > > script for this? > > # cd /usr/ports/somecat/someport ; for dir in `make package-depends | > awk '{print $2}'`; do cd $dir; make package; done > > -Maxim > If you're doing this across NFS, why don't you simple run 'make install' on one box and 'make reinstall' on the others? I'm doing that and it takes care of the dependencies. I see that having it as a package makes it easier, but I've found my method to be pretty easy with or without using the portupgrade utility. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Doug Silver Network Manager Urchin Corporation http://www.urchin.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message