From owner-freebsd-questions@FreeBSD.ORG Tue Jul 31 05:27:56 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F39D16A417 for ; Tue, 31 Jul 2007 05:27:56 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id E975913C45B for ; Tue, 31 Jul 2007 05:27:55 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-13839.home.otenet.gr [87.202.54.123]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l6V5RnDh024450; Tue, 31 Jul 2007 08:27:50 +0300 Message-ID: <46AEC854.3070508@otenet.gr> Date: Tue, 31 Jul 2007 08:27:48 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: freebsd-questions@auscert.org.au References: <200707310307.l6V378Ca028454@app.auscert.org.au> In-Reply-To: <200707310307.l6V378Ca028454@app.auscert.org.au> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: make install a port, but with a package? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 05:27:56 -0000 freebsd-questions@auscert.org.au wrote: > Hi, > > I have a bad feeling that this has been asked already, and not that long > ago, but I can't find it in my mailbox. Is there a variable I can set so > that running 'make install' in a port directory will cause it to download > the package, if available, and install that instead of building from > source? In other words, the equivalent of 'portupgrade -NPP'. I have > looked at the .mk files and nothing in there seems to do that. > > This is for the situation where portupgrade isn't installed yet, and I'd > like to install it quickly from packages so I don't have to wait for Ruby > to build. Sure, I could do it with pkg_add or sysinstall but it would be > neat to be able to do everything from the ports tree. > > thanks, > joel > _______________________________________________ > 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" > > > Make install will always compile from source. You could however use: setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ or export PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ (if you use bash) and then do pkg_add, will get you latest packages build from the -STABLE ports. You don't even have to worry about specific version numbers (i.e. pkg_add -r bash instead of pkg_add -r bash-3.2.17_1) so this is a close to a "port tree simulation" as possible. The package may still be lagging a few versions behind the port however (or in some cases may not even exist).