[sudo] Flip sudoers2ldif bit after make install, since it was making it executable again.

Bill Nottingham notting at fedoraproject.org
Tue Jul 24 18:49:52 UTC 2012


commit 0247beae7174b0706e270dc3e94005ee94e0ba06
Author: Bill Nottingham <notting at redhat.com>
Date:   Tue Jul 24 14:48:31 2012 -0400

    Flip sudoers2ldif bit after make install, since it was making it executable again.

 sudo.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/sudo.spec b/sudo.spec
index 5e69b52..8132bf4 100644
--- a/sudo.spec
+++ b/sudo.spec
@@ -1,7 +1,7 @@
 Summary: Allows restricted root access for specified users
 Name: sudo
 Version: 1.8.5
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: ISC
 Group: Applications/System
 URL: http://www.courtesan.com/sudo/
@@ -62,8 +62,6 @@ plugins that use %{name}.
 %patch4 -p1 -b .pipelist
 %patch5 -p1 -b .sssd-support
 
-# Remove execute permission on this script so we don't pull in perl deps
-chmod -x plugins/sudoers/sudoers2ldif
 
 %build
 autoreconf -fv --install
@@ -107,6 +105,9 @@ install -p -d -m 700 $RPM_BUILD_ROOT/var/db/sudo
 install -p -d -m 750 $RPM_BUILD_ROOT/etc/sudoers.d
 install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
 
+# Remove execute permission on this script so we don't pull in perl deps
+chmod -x $RPM_BUILD_ROOT%{_docdir}/sudo-*/sudoers2ldif
+
 %find_lang sudo
 %find_lang sudoers
 
@@ -170,6 +171,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/sudo_plugin.8*
 
 %changelog
+* Tue Jul 24 2012 Bill Nottingham <notting at redhat.com> - 1.8.5-3
+- flip sudoers2ldif executable bit after make install, not in setup
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.8.5-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list