summaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-02 15:06:07 +0000
committerjlam <jlam>2008-04-02 15:06:07 +0000
commit97c8a8560dfe752b6aeffd85c14be07c0459f5b7 (patch)
tree0d47d94e66f665c6e8c2129fbcfd4d050a37008d /security/sudo
parent9d628ee7961e8fc43133409d0d941207d0789deb (diff)
downloadpkgsrc-97c8a8560dfe752b6aeffd85c14be07c0459f5b7.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')
-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}