Date: Mon, 31 Mar 2003 11:15:04 -0759 From: David Thiel <lx@redundancy.redundancy.org> To: ports@freebsd.org Subject: dealing with ports that need a root build Message-ID: <20030331191441.GA82178@redundancy.redundancy.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030331191441.GA82178>