From owner-freebsd-ports Tue Apr 27 11:23:16 1999 Delivered-To: freebsd-ports@freebsd.org Received: from cfcl.com (unknown [205.158.144.193]) by hub.freebsd.org (Postfix) with ESMTP id 6573514D77 for ; Tue, 27 Apr 1999 11:23:14 -0700 (PDT) (envelope-from rdm@cfcl.com) X-Sent-To: Received: from Untitled (cerberus [205.158.144.205]) by cfcl.com (8.9.2/8.9.2) with ESMTP id LAA15056 for ; Tue, 27 Apr 1999 11:25:20 -0700 (PDT) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: In-Reply-To: <199904270051.RAA21908@silvia.hip.berkeley.edu> References: (message from Rich Morin on Mon, 26 Apr 1999 12:10:28 -0700) Date: Tue, 27 Apr 1999 11:25:47 -0700 To: freebsd-ports@FreeBSD.ORG From: Rich Morin Subject: Re: retrieving and unpacking archives Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 5:51 PM -0700 4/26/99, Satoshi - Ports Wraith - Asami wrote: >Well, I'm fairly conversant I think but I'm certainly not helpful. Actually, you have been; hope that's OK! (:-) >That said, a couple of hints: > >make NO_DEPENDS=t extract > >from /usr/ports should extract pretty much everything, and > >make NO_DEPENDS=t WRKDIRPREFIX=/someplace extract > >will put them all under /someplace/usr/ports/category/port/work That's approximately what I've been doing, albeit a lot more simply. Here is the Perl calling code I've been using: $flags = "BATCH=1 NO_BUILD=1 NO_DEPENDS=1 NO_INSTALL=1"; $parms = "DISTDIR=$distdir WRKDIR=$wrkdir"; $tasks = 'fetch checksum extract'; system("cd $mdir; make $flags $parms $tasks"); I put in the NO_BUILD and NO_INSTALL flags in an effort to kill off the building and installation of antecedant packages. It also looks like I don't need to specify fetch and checksum if I specify extract. OTOH, I _am_ running this unattended, so BATCH is still required: $flags = 'BATCH=1 NO_DEPENDS=1' $parms = "DISTDIR=$distdir WRKDIR=$wrkdir"; $tasks = 'extract'; system("cd $mdir; make $flags $parms $tasks"); I still have a question, however, wrt dependencies. In my current way of doing things, the extract for a package stops if make thinks there are dependencies to resolve. Can you suggest a good way to get make to extract anyway? -r -- Rich Morin: rdm@cfcl.com, +1 650-873-7841, http://www.ptf.com/~rdm Prime Time Freeware: info@ptf.com, +1 408-433-9662, http://www.ptf.com MacPerl: http://www.macperl.com, http://www.ptf.com/ptf/products/MPPE MkLinux: http://www.mklinux.apple.com, http://www.ptf.com/ptf/products/MKLP To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message