From owner-freebsd-questions@FreeBSD.ORG Tue Mar 13 00:15:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F71C16A407 for ; Tue, 13 Mar 2007 00:15:25 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.freebsd.org (Postfix) with ESMTP id 12AB213C480 for ; Tue, 13 Mar 2007 00:15:22 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070313001522.UFUA2272.mta10.adelphia.net@default.chvlva.adelphia.net>; Tue, 13 Mar 2007 00:15:22 +0000 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id EEF3FB732; Mon, 12 Mar 2007 20:15:20 -0400 (EDT) Date: Mon, 12 Mar 2007 20:15:20 -0400 From: Parv To: Alexander Schlichting Message-ID: <20070313001520.GA7158@holestein.holy.cow> Mail-Followup-To: Alexander Schlichting , freebsd-questions@freebsd.org References: <042d01c76476$b226bc30$16743490$@net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <042d01c76476$b226bc30$16743490$@net> Cc: freebsd-questions@freebsd.org Subject: Re: Recover Make ARG's from a ports Install 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, 13 Mar 2007 00:15:25 -0000 in message <042d01c76476$b226bc30$16743490$@net>, wrote Alexander Schlichting thusly... > > On a server I have a package installed using ports and now I have > to install the package with exactly the same make arguments on > another server. I just don't find a way to see what arguments > where used to install it the first time. With Linux I would look > into config.status is there something similar with FreeBSD? There may be config.status present in $WRKSRC directory (in a port directory, run "make -V WRKSRC" to find the value) if that port's make process generates such a file AND you have not run "make clean" yet. (That also means you have to compile the port yourself.) To save make arguments for future use, you could write a wrapper which would save the arguments in a file|database before running appropriate make target. Use the same wrapper to retrieve the stored arguments. Below is my attempt at such a wrapper (feel free to change) ... http://www103.pair.com/parv/comp/src/sh/pmk ... to see available commands just run "pmk" without any arguments. Provide arguments to a make target as ... pmk [ arg_1 arg_2 arg_3 ... ] - Parv --