From 9eb21dc2e7b945dfeb5549cf1d760db5270975cb Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Tue, 15 Mar 2011 17:36:21 +0000 Subject: Allow building as root. PR: 155553 --- archivers/gtar/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archivers') diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile index 1caa5df5662b..6b1334d3e40b 100644 --- a/archivers/gtar/Makefile +++ b/archivers/gtar/Makefile @@ -56,4 +56,11 @@ regression-test: build RUN_DEPENDS+= xz:${PORTSDIR}/archivers/xz .endif +# supply result to skip a test that will abort configure if run as root +.if ${OSVERSION} < 800040 +CONFIGURE_ENV+= gl_cv_func_mknod_works=no +.else +CONFIGURE_ENV+= gl_cv_func_mknod_works=yes +.endif + .include -- cgit v1.2.3