summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-07-28 20:07:42 +0000
committerjperkin <jperkin@pkgsrc.org>2014-07-28 20:07:42 +0000
commit0dbc395686023bbfa6f3de27e9245df27786abed (patch)
tree3645d7c4e7196d24b35e57af13d3f8eaba3dc61f /security/sudo
parent8815e0e6ee14cb112f8fac2b7462b8df0072b51b (diff)
downloadpkgsrc-0dbc395686023bbfa6f3de27e9245df27786abed.tar.gz
Darwin doesn't build sudo_noexec.so, patch from Sevan Janiyan.
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile10
-rw-r--r--security/sudo/PLIST4
2 files changed, 10 insertions, 4 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 4af1edf6cf0..f544fb6e527 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.142 2014/03/08 11:51:56 kim Exp $
+# $NetBSD: Makefile,v 1.143 2014/07/28 20:07:42 jperkin Exp $
#
DISTNAME= sudo-1.7.10p8
@@ -21,7 +21,7 @@ USE_LIBTOOL= yes
OWN_DIRS+= ${VARBASE}/run
GNU_CONFIGURE= yes
BUILD_DEFS+= VARBASE
-PLIST_VARS+= ldap
+PLIST_VARS+= ldap noexec
.include "../../mk/bsd.prefs.mk"
@@ -34,6 +34,12 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-timedir=${VARBASE}/run/sudo
CONFIGURE_ARGS+= --with-logpath=${VARBASE}/log/sudo.log
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= --with-noexec=no
+.else
+PLIST.noexec= yes
+.endif
+
.include "options.mk"
CONFIGURE_ARGS+= --with-nbsdops --disable-path-info
diff --git a/security/sudo/PLIST b/security/sudo/PLIST
index 6e7c84deaec..fb0e9061b8d 100644
--- a/security/sudo/PLIST
+++ b/security/sudo/PLIST
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.6 2010/09/21 03:05:27 taca Exp $
+@comment $NetBSD: PLIST,v 1.7 2014/07/28 20:07:42 jperkin Exp $
bin/sudo
bin/sudoedit
bin/sudoreplay
-libexec/sudo_noexec.so
+${PLIST.noexec}libexec/sudo_noexec.so
man/man5/sudoers.5
${PLIST.ldap}man/man5/sudoers.ldap.5
man/man8/sudo.8