/[packages]/updates/8/sudo/current/SPECS/sudo.spec
ViewVC logotype

Diff of /updates/8/sudo/current/SPECS/sudo.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 235868 by luigiwalser, Thu May 17 19:14:10 2012 UTC revision 275808 by luigiwalser, Sun Jul 29 17:42:35 2012 UTC
# Line 1  Line 1 
1  # use fakeroot -ba sudo.spec to build!  # use fakeroot -ba sudo.spec to build!
2    
3  Name:           sudo  Name:           sudo
4  Version:        1.8.3p2  Version:        1.8.5p1
5  Release:        %mkrel 2  Release:        %mkrel 1
6  Epoch:          1  Epoch:          1
7  Summary:        Allows command execution as root for specified users  Summary:        Allows command execution as root for specified users
8  License:        GPLv2+  License:        GPLv2+
# Line 15  Source3:        sudo-1.7.2p2-sudoers Line 15  Source3:        sudo-1.7.2p2-sudoers
15  Patch1:         sudo-1.6.7p5-strip.patch  Patch1:         sudo-1.6.7p5-strip.patch
16  Patch2:         sudo-1.7.2p1-envdebug.patch  Patch2:         sudo-1.7.2p1-envdebug.patch
17  Patch3:         sudo-1.7.4p3-m4path.patch  Patch3:         sudo-1.7.4p3-m4path.patch
18  # http://www.sudo.ws/repos/sudo/rev/172f29597bd2  Patch4:         sudo-1.8.5-pipelist.patch
19  # These two patches removed at version 1.8.2 :-  Patch5:         sudo-1.8.5-sssd-support.patch
 # Patch4:       sudo-1.8.0-fix-n-option.patch  
 # Patch5:       sudo_1.8.1_noexec.patch  
 #  
 # http://www.sudo.ws/sudo/alerts/netmask.html  
 Patch6:         sudo-1.8.3p2-CVE-2012-2337.patch  
20  BuildRequires:  audit-devel  BuildRequires:  audit-devel
21  BuildRequires:  bison  BuildRequires:  bison
22  BuildRequires:  groff-for-man  BuildRequires:  groff-for-man
# Line 31  BuildRequires:  pam-devel Line 26  BuildRequires:  pam-devel
26  Requires(pre):  openldap  Requires(pre):  openldap
27    
28  %description  %description
29  Sudo is a program designed to allow a sysadmin to give limited root  Sudo (superuser do) allows a system administrator to give certain users (or
30  privileges to users and log root activity. The basic philosophy is  groups of users) the ability to run some (or all) commands as root while
31  to give as few privileges as possible but still allow people to get  logging all commands and arguments. Sudo operates on a per-command basis.
32  their work done.  It is not a replacement for the shell. Features include: the ability to
33    restrict what commands a user may run on a per-host basis, copious logging
34    of each command (providing a clear audit trail of who did what), a
35    configurable timeout of the sudo command, and the ability to use the same
36    configuration file (sudoers) on many different machines.
37    
38  %package devel  %package devel
39  Summary:        Development files for sudo plugins  Summary:        Development files for sudo plugins
40  Group:          Development/C  Group:          Development/C
41  Requires:       %{name} = %{EVRD}  Requires:       %{name} = %{epoch}:%{version}-%{release}
42    
43  %description    devel  %description    devel
44  Development files for compiling sudo plugins.  Development files for compiling sudo plugins.
# Line 49  Development files for compiling sudo plu Line 48  Development files for compiling sudo plu
48  %patch1 -p1 -b .strip  %patch1 -p1 -b .strip
49  %patch2 -p1 -b .envdebug  %patch2 -p1 -b .envdebug
50  %patch3 -p1 -b .m4path  %patch3 -p1 -b .m4path
51  %patch6 -p1 -b .netmask  %patch4 -p1 -b .pipelist
52    %patch5 -p1 -b .sssd-support
53    
54    # fix attribs
55    find -name "Makefile.*" | xargs perl -pi -e "s|-m 0444|-m 0644|g"
56    
57    
58  %build  %build
59  # handle newer autoconf  # handle newer autoconf
# Line 132  chmod 755 %{buildroot}%{_sbindir}/* Line 136  chmod 755 %{buildroot}%{_sbindir}/*
136  # (tpg) create the missing log file  # (tpg) create the missing log file
137  touch %{buildroot}%{_logdir}/sudo.log  touch %{buildroot}%{_logdir}/sudo.log
138    
139    %find_lang sudo
140    %find_lang sudoers
141    
142    cat sudo.lang sudoers.lang > sudo_all.lang
143    rm sudo.lang sudoers.lang
144    
145  %check  %check
146  make check  make check
147    
# Line 139  make check Line 149  make check
149  /bin/chmod 0440 %{_sysconfdir}/sudoers || :  /bin/chmod 0440 %{_sysconfdir}/sudoers || :
150  %create_ghostfile %{_logdir}/sudo.log root root 600  %create_ghostfile %{_logdir}/sudo.log root root 600
151    
152  %files  %files -f sudo_all.lang
153  %doc doc/HISTORY README README.LDAP  %doc doc/HISTORY README README.LDAP
154  %doc doc/TROUBLESHOOTING doc/UPGRADE doc/sample.sudoers  %doc doc/TROUBLESHOOTING doc/UPGRADE doc/sample.* doc/schema.*
155  %attr(0440,root,root) %config(noreplace) %{_sysconfdir}/sudoers  %attr(0440,root,root) %config(noreplace) %{_sysconfdir}/sudoers
156  %attr(0750,root,root) %dir %{_sysconfdir}/sudoers.d/  %attr(0750,root,root) %dir %{_sysconfdir}/sudoers.d/
157  %config(noreplace) %{_sysconfdir}/logrotate.d/sudo  %config(noreplace) %{_sysconfdir}/logrotate.d/sudo
# Line 157  make check Line 167  make check
167  %attr(0700,root,root) %dir %{_var}/db/sudo  %attr(0700,root,root) %dir %{_var}/db/sudo
168  %attr(0750,root,root) %dir %{_logdir}/sudo-io  %attr(0750,root,root) %dir %{_logdir}/sudo-io
169  %{_libdir}/sudoers.so  %{_libdir}/sudoers.so
 %{_datadir}/locale/*/LC_MESSAGES/*  
170    
171  %files  devel  %files devel
172    %doc plugins/{sample,sample_group}
173  %{_includedir}/sudo_plugin.h  %{_includedir}/sudo_plugin.h
174    %{_mandir}/man8/sudo_plugin.8*

Legend:
Removed from v.235868  
changed lines
  Added in v.275808

  ViewVC Help
Powered by ViewVC 1.1.30