4b0456e6 |
Summary: Sudo
Name: sudo |
ce1d37c7 |
Version: 1.8.23
Release: 1%{?dist} |
4b0456e6 |
License: ISC |
31204a78 |
URL: https://www.sudo.ws/ |
4b0456e6 |
Group: System Environment/Security
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://www.sudo.ws/sudo/dist/%{name}-%{version}.tar.gz |
ce1d37c7 |
%define sha1 sudo=8db5a01eda3a14e8b40af7ee1ed6d38660463430 |
4b0456e6 |
BuildRequires: man-db
BuildRequires: Linux-PAM-devel |
ff320b57 |
BuildRequires: sed |
4b0456e6 |
Requires: Linux-PAM |
75cb675a |
Requires: shadow |
31204a78 |
|
f4d17450 |
%description
The Sudo package allows a system administrator to give certain users (or groups of users) |
4b0456e6 |
the ability to run some (or all) commands as root or another user while logging the commands and arguments. |
f4d17450 |
%prep
%setup -q
|
31204a78 |
%build |
f4d17450 |
./configure \ |
4b0456e6 |
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libexecdir=%{_libdir} \ |
31204a78 |
--docdir=%{_docdir}/%{name}-%{version} \
--with-all-insults \
--with-env-editor \
--with-pam \
--with-passprompt="[sudo] password for %p" |
f4d17450 |
make %{?_smp_mflags} |
31204a78 |
|
f4d17450 |
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make install DESTDIR=%{buildroot}
install -v -dm755 %{buildroot}/%{_docdir}/%{name}-%{version}
find %{buildroot}/%{_libdir} -name '*.la' -delete |
e85f0c86 |
find %{buildroot}/%{_libdir} -name '*.so~' -delete |
ff320b57 |
sed -i '/#includedir.*/i \
%wheel ALL=(ALL) ALL \
%sudo ALL=(ALL) ALL' %{buildroot}/etc/sudoers |
b3211804 |
install -vdm755 %{buildroot}/etc/pam.d
cat > %{buildroot}/etc/pam.d/sudo << EOF
#%%PAM-1.0
auth include system-auth
account include system-account
password include system-password
session include system-session
session required pam_env.so
EOF |
70966d25 |
mkdir -p %{buildroot}%{_libdir}/tmpfiles.d
touch %{buildroot}%{_libdir}/tmpfiles.d/sudo.conf |
f4d17450 |
%find_lang %{name}
%{_fixperms} %{buildroot}/* |
85c433d7 |
|
f4d17450 |
%check |
85c433d7 |
make %{?_smp_mflags} check
|
4963c78f |
%post
/sbin/ldconfig |
04e27de8 |
if [ $1 -eq 1 ] ; then |
5dcd230e |
getent group wheel > /dev/null || groupadd wheel |
04e27de8 |
fi |
31204a78 |
|
4b0456e6 |
%postun -p /sbin/ldconfig |
31204a78 |
|
f4d17450 |
%clean
rm -rf %{buildroot}/* |
31204a78 |
|
f4d17450 |
%files -f %{name}.lang
%defattr(-,root,root) |
92e58245 |
%attr(0440,root,root) %config(noreplace) %{_sysconfdir}/sudoers
%attr(0750,root,root) %dir %{_sysconfdir}/sudoers.d/
%config(noreplace) %{_sysconfdir}/pam.d/sudo |
f4d17450 |
%{_bindir}/*
%{_includedir}/*
%{_libdir}/sudo/*.so
%{_libdir}/sudo/*.so.*
%{_sbindir}/* |
ce1d37c7 |
%{_mandir}/man1/* |
f4d17450 |
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_docdir}/%{name}-%{version}/*
%{_datarootdir}/locale/* |
70966d25 |
%attr(0644,root,root) %{_libdir}/tmpfiles.d/sudo.conf |
575f2ead |
%exclude /etc/sudoers.dist |
31204a78 |
|
f4d17450 |
%changelog |
ce1d37c7 |
* Tue Sep 11 2018 Keerthana K <keerthanak@vmware.com> 1.8.23-1
- Update to version 1.8.23. |
ff320b57 |
* Thu Mar 01 2018 Anish Swaminathan <anishs@vmware.com> 1.8.20p2-5
- Move includedir sudoers.d to end of sudoers file |
75cb675a |
* Tue Oct 10 2017 Alexey Makhalov <amakhalov@vmware.com> 1.8.20p2-4
- No direct toybox dependency, shadow depends on toybox |
7f9d2e12 |
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 1.8.20p2-3
- Requires shadow or toybox |
70966d25 |
* Fri Jul 07 2017 Chang Lee <changlee@vmware.com> 1.8.20p2-2
- Including /usr/lib/tmpfiles.d/sudo.conf from %files |
575f2ead |
* Thu Jun 15 2017 Kumar Kaushik <kaushikk@vmware.com> 1.8.20p2-1 |
29ad974b |
- Udating version to 1.8.20p2, fixing CVE-2017-1000367 and CVE-2017-1000368 |
31204a78 |
* Wed Apr 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.8.19p2-1
- Update to version 1.8.19p2 |
4b0456e6 |
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 1.8.18p1-3
- BuildRequires Linux-PAM-devel
* Thu Oct 20 2016 Alexey Makhalov <amakhalov@vmware.com> 1.8.18p1-2
- Remove --with-pam-login to use /etc/pam.d/sudo for `sudo -i`
- Fix groupadd wheel warning during the %post action
* Tue Oct 18 2016 Alexey Makhalov <amakhalov@vmware.com> 1.8.18p1-1
- Update to 1.8.18p1
* Mon Oct 04 2016 ChangLee <changlee@vmware.com> 1.8.15-4
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.15-3
- GA - Bump release of all rpms
* Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.15-2
- Fix for upgrade issues
* Wed Jan 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.8.15-1
- Update to 1.8.15-1.
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 1.8.11p1-5
- Edit post script.
* Mon Jun 22 2015 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-4
- Fixing permissions on /etc/sudoers file
* Fri May 29 2015 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-3
- Adding sudo configuration and PAM config file
* Wed May 27 2015 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-2
- Adding PAM support
* Thu Oct 09 2014 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-1
- Initial build. First version |