summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorsevan <sevan@pkgsrc.org>2015-07-11 15:12:27 +0000
committersevan <sevan@pkgsrc.org>2015-07-11 15:12:27 +0000
commit71fe2ed5e0e7dff35950235bed894d58ff2b01cf (patch)
tree7bf167d043293dcc01548c1db12dbf32a1a385b2 /security/sudo
parent48db6efdcf6894d987816de7739c8e9965db4879 (diff)
downloadpkgsrc-71fe2ed5e0e7dff35950235bed894d58ff2b01cf.tar.gz
Enable PAM option by default on OS X as sudo does not work without it otherwise.
Reported by @kusalananda on twitter, confirmed by comparing the output of sudo -V as root between Apple bundled version & pkgsrc version. It's not possible to use sudo from a unprivileged build as sudo expects to be setuid to root so mark it as NOT_FOR_UNPRIVILEGED. Reviewed by wiz@
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile3
-rw-r--r--security/sudo/options.mk6
2 files changed, 7 insertions, 2 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index e463f8fcf00..f71f765482f 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.145 2015/02/11 09:11:59 spz Exp $
+# $NetBSD: Makefile,v 1.146 2015/07/11 15:12:27 sevan Exp $
#
DISTNAME= sudo-1.7.10p9
@@ -51,6 +51,7 @@ SPECIAL_PERMS+= bin/sudo ${SETUID_ROOT_PERMS}
SPECIAL_PERMS+= bin/sudoreplay ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 511
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}
+NOT_FOR_UNPRIVILEGED= yes
post-install:
${INSTALL_DATA} ${WRKSRC}/UPGRADE ${DESTDIR}${PREFIX}/${DOCDIR}
diff --git a/security/sudo/options.mk b/security/sudo/options.mk
index b5224c73bc0..9963f845ad8 100644
--- a/security/sudo/options.mk
+++ b/security/sudo/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.17 2009/02/14 19:30:33 tonnerre Exp $
+# $NetBSD: options.mk,v 1.18 2015/07/11 15:12:27 sevan Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.sudo
@@ -10,6 +10,10 @@ PKG_OPTIONS_GROUP.auth= kerberos pam skey
PKG_SUGGESTED_OPTIONS= skey
.endif
+.if ${OPSYS} == "Darwin"
+PKG_SUGGESTED_OPTIONS= pam
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)