summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorkim <kim>1999-09-14 02:32:21 +0000
committerkim <kim>1999-09-14 02:32:21 +0000
commit8142fc32102dafbb74dd4804ee3fae1d247cd707 (patch)
treec571b85d580b9bea0de042a463ee35bc7651c0fe /security/sudo
parent31fd05b3892b304f923f609e1b6d97ac98c0ef25 (diff)
downloadpkgsrc-8142fc32102dafbb74dd4804ee3fae1d247cd707.tar.gz
Change how Kerberos support is enabled in pkgsrc.
Quick guide for compiling packages: - set KERBEROS=4 or KERBEROS=5 in /etc/mk.conf Quick guide for configuring Kerberos support in a package Makefile: - test for KERBEROS value and enable the appropriate version with CONFIGURE_ARGS or other means and set USE_KERBEROS=yes - make sure to disable Kerberos support otherwise (especially if using configure, which might automatically detect it) - BUILD_DEFS and RESTRICTED are set automatically in bsd.pkg.mk when USE_KERBEROS=yes is set
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index ff431c8e7a0..0a0cf992524 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 1999/09/13 13:30:45 kim Exp $
+# $NetBSD: Makefile,v 1.18 1999/09/14 02:32:26 kim Exp $
# FreeBSD Id: Makefile,v 1.9 1997/11/12 03:24:41 obrien Exp
#
@@ -15,8 +15,6 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf
.include "../../mk/bsd.prefs.mk"
-BUILD_DEFS+= USE_KERBEROS4 USE_KERBEROS5
-
GNU_CONFIGURE= yes
.if ${OPSYS} == "NetBSD"
@@ -25,12 +23,18 @@ CONFIGURE_ARGS+=--with-skey
CONFIGURE_ARGS+=--without-skey
.endif
-.if defined(USE_KERBEROS4)
+.if defined(KERBEROS) && ${KERBEROS} == 4
+USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerb4
+.else
+CONFIGURE_ARGS+=--without-kerb4
.endif
-.if defined(USE_KERBEROS5)
+.if defined(KERBEROS) && ${KERBEROS} == 5
+USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerb5
+.else
+CONFIGURE_ARGS+=--without-kerb5
.endif
CONFIGURE_ARGS+=--with-C2 --with-nbsdops --disable-path-info