summaryrefslogtreecommitdiff
path: root/security/sudo/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-02 15:06:07 +0000
committerjlam <jlam@pkgsrc.org>2008-04-02 15:06:07 +0000
commit38a70df40141965befabeec5d475c5d79693eb2c (patch)
tree0d47d94e66f665c6e8c2129fbcfd4d050a37008d /security/sudo/Makefile
parent7b73eadf0b65356ba31d12ddc3c2d88010c02595 (diff)
downloadpkgsrc-38a70df40141965befabeec5d475c5d79693eb2c.tar.gz
Don't hardcode "0 0" for the root user and group -- use ${REAL_ROOT_USER}
and ${REAL_ROOT_GROUP} instead. The pkginstall framework checks for the name of the user and group, not the uid and gid, when comparing permissions. This fixes the following spurious warning from appearing: The following files are used by sudo-1.6.9p15 and have the wrong ownership and/or permissions: /usr/pkg/etc/sudoers (m=0440, o=0, g=0)
Diffstat (limited to 'security/sudo/Makefile')
-rw-r--r--security/sudo/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index c8e24932eb5..cc6fece0814 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.110 2008/03/29 14:16:58 taca Exp $
+# $NetBSD: Makefile,v 1.111 2008/04/02 15:06:07 jlam Exp $
#
DISTNAME= sudo-1.6.9p15
@@ -42,7 +42,8 @@ CONFIGURE_ARGS+= --with-nbsdops --disable-path-info
DOCDIR= share/doc/${PKGBASE}
EGDIR= share/examples/${PKGBASE}
-CONF_FILES_PERMS= ${EGDIR}/sudoers ${PKG_SYSCONFDIR}/sudoers 0 0 0440
+CONF_FILES_PERMS= ${EGDIR}/sudoers ${PKG_SYSCONFDIR}/sudoers \
+ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0440
SPECIAL_PERMS+= bin/sudo ${SETUID_ROOT_PERMS}
INSTALLATION_DIRS+= ${DOCDIR} ${EGDIR}