dealing with ports that need a root build
lx at redundancy.redundancy.org
Mon Mar 31 11:14:47 PST 2003
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
.if (check to see if user is root)
.else echo "blah blah, be root to do this"
What's the proper way to do this?
More information about the freebsd-ports