diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-12-17 22:12:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-12-17 22:12:41 +0000 |
commit | e5eaf1bdf09793a6dc401bed7eff39fc0cb3170a (patch) | |
tree | b2acb072b341ba5d5fd1d139a5e5deede6716059 /security/sudo | |
parent | ca806cdbd7597d2db9610112c87a09d5ddeedd1e (diff) |
Notes
Diffstat (limited to 'security/sudo')
-rw-r--r-- | security/sudo/Makefile | 2 | ||||
-rw-r--r-- | security/sudo/pkg-install | 2 | ||||
-rw-r--r-- | security/sudo/pkg-plist | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 7b6418f4393f..6fb85944b27f 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -7,6 +7,7 @@ PORTNAME= sudo PORTVERSION= 1.6.8.12 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.sudo.ws/sudo/dist/ \ http://probsd.org/sudoftp/ \ @@ -56,6 +57,7 @@ post-patch: post-install: ${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample + ${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/etc/sudoers.default ${RM} ${PREFIX}/libexec/sudo_noexec.la .include <bsd.port.post.mk> diff --git a/security/sudo/pkg-install b/security/sudo/pkg-install index bd38791d206e..8848ddc2e5a0 100644 --- a/security/sudo/pkg-install +++ b/security/sudo/pkg-install @@ -5,6 +5,6 @@ fi if [ -e ${PKG_PREFIX}/etc/sudoers ]; then echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file." else - cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers + cp -p ${PKG_PREFIX}/etc/sudoers.default ${PKG_PREFIX}/etc/sudoers chmod 440 ${PKG_PREFIX}/etc/sudoers fi diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist index aac447565035..97a00ff23990 100644 --- a/security/sudo/pkg-plist +++ b/security/sudo/pkg-plist @@ -1,6 +1,7 @@ -@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.sample; then rm -f %D/etc/sudoers; fi +@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.default; then rm -f %D/etc/sudoers; fi bin/sudo bin/sudoedit +etc/sudoers.default etc/sudoers.sample libexec/sudo_noexec.so sbin/visudo |