From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 21:53:02 2008 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 2ACF010656AB for ; Mon, 6 Oct 2008 21:53:02 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id EBD3C8FC1B for ; Mon, 6 Oct 2008 21:53:01 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id E343BAFBC01; Mon, 6 Oct 2008 13:53:00 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 6 Oct 2008 23:52:59 +0200 User-Agent: KMail/1.9.7 References: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> In-Reply-To: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810062352.59473.fbsd.questions@rachie.is-a-geek.net> Cc: Kelly Jones Subject: Re: Installing multiple ports quietly and efficiently 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: Mon, 06 Oct 2008 21:53:02 -0000 On Monday 06 October 2008 21:28:25 Kelly Jones wrote: > Here's one way to install multiple FreeBSD ports "unattended" on a > machine: > > cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make install > > and so on (perhaps even in a shell script). Two problems: > > % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..." > > % "make install" often pops up windows asking me to choose > configuration options, and hangs until I do so. As others said, BATCH turns off config target. But don't clutter /etc/make.conf with stuff like that, cause you will forget you put it there. make -DBATCH is short enough to type. It is however useful to inspect pkg-install files and set variables in either /etc/make.conf or /etc/(profile|login.conf). For example POSTFIX_DEFAULT_MTA will replace /etc/mail/mailer.conf when -DBATCH is set. Over time you'll pick up quite a few of these that save you doing the same thing all over. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.