From owner-freebsd-ports@FreeBSD.ORG Mon Mar 31 11:14:45 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D657A37B401 for ; Mon, 31 Mar 2003 11:14:45 -0800 (PST) Received: from redundancy.redundancy.org (redundancy.redundancy.org [198.144.201.242]) by mx1.FreeBSD.org (Postfix) with SMTP id 0850F43F75 for ; Mon, 31 Mar 2003 11:14:45 -0800 (PST) (envelope-from lx@redundancy.redundancy.org) Received: (qmail 83169 invoked by uid 1000); 31 Mar 2003 19:15:04 -0000 Date: Mon, 31 Mar 2003 11:15:04 -0759 From: David Thiel To: ports@freebsd.org Message-ID: <20030331191441.GA82178@redundancy.redundancy.org> Mail-Followup-To: ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Key-fingerprint: 482A 8C46 C844 7E7C 8CBC 2313 96EE BEE5 1F4B CA13 X-Key-available: http://redundancy.redundancy.org/lx.gpg User-Agent: Mutt/1.5.4i Subject: dealing with ports that need a root build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 19:14:47 -0000 I'm working on updating the the submitted Samhain port to 1.7.4, and trying to resolve a problem in the old one where the port has to be built as root. If the option --with-kcheck is enabled, part of the build will require root privileges to read from /dev/mem. I've disabled this option by default, but wanted to do something like: .if defined(WITH_KCHECK) .if (check to see if user is root) CONFIGURE_ARGS+= --with-kcheck .else echo "blah blah, be root to do this" .endif .endif What's the proper way to do this? Thanks, david