Subject: [PATCH] Make www/apache2 build as non-root
To: None <tech-pkg@netbsd.org>
From: Eric Gillespie <epg@netbsd.org>
List: tech-pkg
Date: 11/08/2004 20:00:02
I'd like to commit this change to www/apache2.  I have been using
this for a while now at work, where i have to build packages as
non-root on Red Hat Enterprise systems.  Without this change, the
install crashes when it tries to create /var/log/httpd.

Anyone object?

--- Makefile.~1.49.~    2004-11-07 20:07:41.000000000 -0500
+++ Makefile    2004-11-08 19:57:15.000000000 -0500
@@ -19,6 +19,7 @@
 
 GNU_CONFIGURE=         YES
 CONFIGURE_ARGS+=       --enable-layout=NetBSD
+CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --with-port=80
 CONFIGURE_ARGS+=       --with-mpm=prefork