pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ntp4 Build with chroot jail support on platforms t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e62ae40b94f2
branches:  trunk
changeset: 398766:e62ae40b94f2
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Sep 08 10:06:50 2009 +0000

description:
Build with chroot jail support on platforms that support it.

diffstat:

 net/ntp4/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r d09f77eb3a1a -r e62ae40b94f2 net/ntp4/Makefile
--- a/net/ntp4/Makefile Tue Sep 08 10:06:35 2009 +0000
+++ b/net/ntp4/Makefile Tue Sep 08 10:06:50 2009 +0000
@@ -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.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



Home | Main Index | Thread Index | Old Index