apr ports devrandom option
RW
rwmaillists at googlemail.com
Thu Jun 17 00:00:35 UTC 2010
On Wed, 16 Jun 2010 16:07:34 -0700
Chuck Swiger <cswiger at mac.com> wrote:
> On Jun 16, 2010, at 4:01 PM, RW wrote:
> > The devel/apr* ports have an option to use /dev/random, which is on
> > by default.
> >
> > I was wondering under what circumstances anyone would turn that
> > off. As far as I can see switching it off doesn't
> > replace /dev/random with anything else.
>
> On some platforms, /dev/random and /dev/urandom used to provide
> different quality of random numbers-- FreeBSD simply uses Yarrow or a
> hardware RNG source if available. Even if you disable it, it's
> likely to just fall back to OpenSSL's source of random numbers, which
> probably is /dev/random anyway....
Right, but I'm asking about the "make config" port option, not the
configure options to apr itself.
OPTIONS= ...
DEVRANDOM "Use /dev/random or compatible in apr" on \
...
.if defined(WITHOUT_DEVRANDOM)
CONFIGURE_ARGS+= --without-devrandom
.else
CONFIGURE_ARGS+= --with-devrandom
.if defined(PKGNAMESUFFIX)
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-devrandom
.else
PKGNAMESUFFIX= -devrandom
.endif
.endif
More information about the freebsd-ports
mailing list