summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/ntp4/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/ntp4/Makefile b/net/ntp4/Makefile
index ed8761dfc95..fd514e9e385 100644
--- a/net/ntp4/Makefile
+++ b/net/ntp4/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.62 2009/09/08 08:40:26 tnn Exp $
+# $NetBSD: Makefile,v 1.63 2009/09/08 10:06:50 tnn Exp $
#
DISTNAME= ntp-4.2.4p7
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net time
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
ftp://ftp.udel.edu/pub/ntp/ntp4/
@@ -50,6 +50,15 @@ PLIST.timetrim= yes
PLIST.ntptime= yes
.endif
+# chroot jail support
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --enable-clockctl
+.elif ${OPSYS} == "Linux" && exists(/usr/include/sys/capability.h)
+CONFIGURE_ARGS+= --enable-linuxcaps
+.else
+# no chroot/privilege drop supported
+.endif
+
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl-incdir=${SSLBASE}/include