FreeBSD Bugzilla – Attachment 36412 Details for
Bug 58387
[PATCH] security/sudo: Utilize EXAMPLESDIR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.66 KB, created by
Hideyuki KURASHINA
on 2003-10-22 16:10:19 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Hideyuki KURASHINA
Created:
2003-10-22 16:10:19 UTC
Size:
1.66 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/security/sudo/Makefile,v >retrieving revision 1.58 >diff -u -r1.58 Makefile >--- Makefile 17 Jul 2003 04:49:47 -0000 1.58 >+++ Makefile 22 Oct 2003 14:26:20 -0000 >@@ -49,6 +49,7 @@ > @${REINPLACE_CMD} -e 's|^|#|g' ${WRKSRC}/sample.sudoers > > post-install: >- ${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample >+ @${MKDIR} ${EXAMPLESDIR} >+ ${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${EXAMPLESDIR}/sudoers > > .include <bsd.port.post.mk> >Index: pkg-install >=================================================================== >RCS file: /home/ncvs/ports/security/sudo/pkg-install,v >retrieving revision 1.2 >diff -u -r1.2 pkg-install >--- pkg-install 21 Nov 2001 02:09:13 -0000 1.2 >+++ pkg-install 22 Oct 2003 14:26:20 -0000 >@@ -5,6 +5,6 @@ > 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 ${EXAMPLESDIR}/sudoers ${PKG_PREFIX}/etc/sudoers > chmod 440 ${PKG_PREFIX}/etc/sudoers > fi >Index: pkg-plist >=================================================================== >RCS file: /home/ncvs/ports/security/sudo/pkg-plist,v >retrieving revision 1.7 >diff -u -r1.7 pkg-plist >--- pkg-plist 18 Sep 2001 22:50:50 -0000 1.7 >+++ pkg-plist 22 Oct 2003 14:26:20 -0000 >@@ -1,4 +1,5 @@ >-@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 %%EXAMPLESDIR%%/sudoers; then rm -f %D/etc/sudoers; fi > bin/sudo >-etc/sudoers.sample > sbin/visudo >+%%EXAMPLESDIR%%/sudoers >+@dirrm %%EXAMPLESDIR%%
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58387
: 36412