sudo/sudo.spec

239 lines
7.0 KiB
RPMSpec
Raw Permalink Normal View History

# comment out if no extra version
%global extraver p5
2006-12-14 11:23:51 +00:00
Summary: Allows restricted root access for specified users
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
Name: sudo
Version: 1.9.15
# remove -b 3 after rebase !!!
# use "-p -e % {?extraver}" when beta
# use "-e % {?extraver}"" when patch version
# use nothing special when normal version
Release: %autorelease -e %{?extraver}
License: ISC
URL: https://www.sudo.ws
Source0: %{url}/dist/%{name}-%{version}%{?extraver}.tar.gz
2016-05-31 10:22:54 +00:00
Source1: sudoers
Source2: sudo-ldap.conf
Requires: pam
Recommends: system-default-editor
Recommends: %{name}-python-plugin%{?_isa} = %{version}-%{release}
2006-05-23 14:27:14 +00:00
BuildRequires: make
2006-05-23 14:27:14 +00:00
BuildRequires: pam-devel
BuildRequires: groff
BuildRequires: openldap-devel
2006-07-16 22:37:37 +00:00
BuildRequires: flex
BuildRequires: bison
BuildRequires: libtool
BuildRequires: audit-libs-devel libcap-devel
2008-02-06 13:05:56 +00:00
BuildRequires: libselinux-devel
BuildRequires: systemd-rpm-macros
BuildRequires: gettext
BuildRequires: zlib-devel
Patch1: coverity.patch
Patch2: sudo-conf.patch
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%description
Sudo (superuser do) allows a system administrator to give certain
users (or groups of users) the ability to run some (or all) commands
as root while logging all commands and arguments. Sudo operates on a
per-command basis. It is not a replacement for the shell. Features
include: the ability to restrict what commands a user may run on a
per-host basis, copious logging of each command (providing a clear
audit trail of who did what), a configurable timeout of the sudo
command, and the ability to use the same configuration file (sudoers)
on many different machines.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains header files developing sudo
plugins that use %{name}.
%package python-plugin
Summary: Python plugin for %{name}
Requires: %{name} = %{version}-%{release}
BuildRequires: python3-devel
%description python-plugin
%{name}-python-plugin allows using sudo plugins written in Python.
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%prep
%autosetup -p1 -n %{name}-%{version}%{?extraver}
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%build
# Remove bundled copy of zlib
rm -rf zlib/
%ifarch s390 s390x sparc64
F_PIE=-fPIE
%else
F_PIE=-fpie
%endif
2011-06-03 13:01:00 +00:00
export CFLAGS="$RPM_OPT_FLAGS $F_PIE" LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%configure \
2007-02-26 19:23:08 +00:00
--prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--libdir=%{_libdir} \
--docdir=%{_pkgdocdir} \
--enable-tmpfiles.d=%{_tmpfilesdir} \
--disable-openssl \
--disable-root-mailer \
--enable-intercept \
--disable-log-server \
--disable-log-client \
2007-02-26 19:23:08 +00:00
--with-logging=syslog \
--with-logfac=authpriv \
--with-pam \
--with-pam-login \
--with-editor=/usr/bin/vi \
2007-02-26 19:23:08 +00:00
--with-env-editor \
--with-ignore-dot \
--with-tty-tickets \
2008-02-21 15:10:42 +00:00
--with-ldap \
--with-ldap-conf-file="%{_sysconfdir}/sudo-ldap.conf" \
--with-selinux \
--with-sendmail=/usr/sbin/sendmail \
--with-passprompt="[sudo] password for %p: " \
--enable-python \
--enable-zlib=system \
--with-linux-audit \
--with-sssd
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
make
2015-08-24 12:14:56 +00:00
%check
make check
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%install
rm -rf $RPM_BUILD_ROOT
# Update README.LDAP (#736653)
sed -i 's|/etc/ldap\.conf|%{_sysconfdir}/sudo-ldap.conf|g' README.LDAP.md
make install DESTDIR="$RPM_BUILD_ROOT" install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g`
2020-03-26 10:53:05 +00:00
chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/*
install -p -d -m 700 $RPM_BUILD_ROOT/var/db/sudo
install -p -d -m 700 $RPM_BUILD_ROOT/var/db/sudo/lectured
install -p -d -m 750 $RPM_BUILD_ROOT/etc/sudoers.d
2007-02-26 19:23:08 +00:00
install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
install -p -c -m 0640 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sudo-ldap.conf
# create sudo-ldap.conf man
echo ".so man5/sudoers.ldap.5" > sudo-ldap.conf.5
gzip sudo-ldap.conf.5
install -p -c -m 0644 sudo-ldap.conf.5.gz $RPM_BUILD_ROOT/%{_mandir}/man5/sudo-ldap.conf.5.gz
rm -f sudo-ldap.conf.5.gz
# we are not building sendlog so we don't need this
rm -rf $RPM_BUILD_ROOT/%{_mandir}/man8/sudo_sendlog.8
#add sudo to protected packages
install -p -d -m 755 $RPM_BUILD_ROOT/etc/dnf/protected.d/
touch sudo.conf
echo sudo > sudo.conf
install -p -c -m 0644 sudo.conf $RPM_BUILD_ROOT/etc/dnf/protected.d/
rm -f sudo.conf
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
chmod +x $RPM_BUILD_ROOT%{_libexecdir}/sudo/*.so # for stripping, reset in %%files
2015-02-18 09:32:39 +00:00
# Remove examples; Examples can be found in man pages too.
rm -rf $RPM_BUILD_ROOT%{_datadir}/examples/sudo
#Remove all .la files
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# Remove sudoers.dist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.dist
%find_lang sudo
%find_lang sudoers
cat sudo.lang sudoers.lang > sudo_all.lang
rm sudo.lang sudoers.lang
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF
#%%PAM-1.0
2007-02-26 19:23:08 +00:00
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
2006-07-16 22:37:37 +00:00
EOF
cat > $RPM_BUILD_ROOT/etc/pam.d/sudo-i << EOF
#%%PAM-1.0
2007-02-26 19:23:08 +00:00
auth include sudo
account include sudo
password include sudo
session optional pam_keyinit.so force revoke
session include sudo
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
EOF
auto-import changelog data from sudo-1.6.7p5-16.src.rpm Tue Jan 27 2004 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-16 - Eliminate interfaces call, since this requires big SELinux privs - and it seems to be useless. Tue Jan 27 2004 Karsten Hopp <karsten@redhat.de> 1.6.7p5-15 - visudo requires vim-minimal or setting EDITOR to something useful (#68605) Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-14 - Fix is_selinux_enabled call Tue Jan 13 2004 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-13 - Clean up patch on failure Tue Jan 06 2004 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-12 - Remove sudo.te for now. Fri Jan 02 2004 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-11 - Fix usage message Mon Dec 22 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-10 - Clean up sudo.te to not blow up if pam.te not present Thu Dec 18 2003 Thomas Woerner <twoerner@redhat.com> - added missing BuildRequires for groff Tue Dec 16 2003 Jeremy Katz <katzj@redhat.com> 1.6.7p5-9 - remove left-over debugging code Tue Dec 16 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-8 - Fix terminal handling that caused Sudo to exit on non selinux machines. Mon Dec 15 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-7 - Remove sudo_var_run_t which is now pam_var_run_t Fri Dec 12 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-6 - Fix terminal handling and policy Thu Dec 11 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-5 - Fix policy Thu Nov 13 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-4.sel - Turn on SELinux support Tue Jul 29 2003 Dan Walsh <dwalsh@redhat.com> 1.6.7p5-3 - Add support for SELinux
2004-09-09 12:51:15 +00:00
%files -f sudo_all.lang
%defattr(-,root,root)
%attr(0440,root,root) %config(noreplace) /etc/sudoers
%attr(0640,root,root) %config(noreplace) /etc/sudo.conf
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/sudo-ldap.conf
%attr(0750,root,root) %dir /etc/sudoers.d/
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%config(noreplace) /etc/pam.d/sudo
2006-07-16 22:37:37 +00:00
%config(noreplace) /etc/pam.d/sudo-i
%attr(0644,root,root) %{_tmpfilesdir}/sudo.conf
%attr(0644,root,root) %config(noreplace) /etc/dnf/protected.d/sudo.conf
%dir /var/db/sudo
%dir /var/db/sudo/lectured
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%attr(4111,root,root) %{_bindir}/sudo
%{_bindir}/sudoedit
%{_bindir}/cvtsudoers
%attr(0111,root,root) %{_bindir}/sudoreplay
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%attr(0755,root,root) %{_sbindir}/visudo
2014-01-25 18:15:33 +00:00
%dir %{_libexecdir}/sudo
%attr(0755,root,root) %{_libexecdir}/sudo/sesh
%attr(0644,root,root) %{_libexecdir}/sudo/sudo_noexec.so
%attr(0644,root,root) %{_libexecdir}/sudo/audit_json.so
%attr(0644,root,root) %{_libexecdir}/sudo/sudoers.so
%attr(0644,root,root) %{_libexecdir}/sudo/group_file.so
%attr(0644,root,root) %{_libexecdir}/sudo/system_group.so
%attr(0644,root,root) %{_libexecdir}/sudo/sudo_intercept.so
%attr(0644,root,root) %{_libexecdir}/sudo/libsudo_util.so.?.?.?
%{_libexecdir}/sudo/libsudo_util.so.?
2017-09-29 13:43:08 +00:00
%{_libexecdir}/sudo/libsudo_util.so
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%{_mandir}/man5/sudoers.5*
%{_mandir}/man5/sudoers.ldap.5*
%{_mandir}/man5/sudo-ldap.conf.5*
%{_mandir}/man5/sudo.conf.5*
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%{_mandir}/man8/sudo.8*
%{_mandir}/man8/sudoedit.8*
%{_mandir}/man8/sudoreplay.8*
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%{_mandir}/man8/visudo.8*
%{_mandir}/man1/cvtsudoers.1*
%{_mandir}/man5/sudoers_timestamp.5*
%dir %{_pkgdocdir}/
%{_pkgdocdir}/*
2014-08-05 15:04:25 +00:00
%{!?_licensedir:%global license %%doc}
%license LICENSE.md
2014-05-31 23:24:08 +00:00
%exclude %{_pkgdocdir}/ChangeLog
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%files devel
%doc plugins/sample/sample_plugin.c
%{_includedir}/sudo_plugin.h
%{_mandir}/man5/sudo_plugin.5*
%files python-plugin
%{_mandir}/man5/sudo_plugin_python.5.gz
%attr(0644,root,root) %{_libexecdir}/sudo/python_plugin.so
auto-import changelog data from sudo-1.6.3-4.src.rpm Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Tue Jun 06 2000 Karsten Hopp <karsten@redhat.de> - fixed owner of sudo and visudo Thu Jun 01 2000 Nalin Dahyabhai <nalin@redhat.com> - modify PAM setup to use system-auth - clean up buildrooting by using the makeinstall macro Tue Apr 11 2000 Bernhard Rosenkraenzer <bero@redhat.com> - initial build in main distrib - update to 1.6.3 - deal with compressed man pages Tue Dec 14 1999 Preston Brown <pbrown@redhat.com> - updated to 1.6.1 for Powertools 6.2 - config files are now noreplace. Thu Jul 22 1999 Tim Powers <timp@redhat.com> - updated to 1.5.9p2 for Powertools 6.1 Wed May 12 1999 Bill Nottingham <notting@redhat.com> - sudo is configured with pam. There's no pam.d file. Oops. Mon Apr 26 1999 Preston Brown <pbrown@redhat.com> - upgraded to 1.59p1 for powertools 6.0 Tue Oct 27 1998 Preston Brown <pbrown@redhat.com> - fixed so it doesn't find /usr/bin/vi first, but instead /bin/vi (always installed) Thu Oct 08 1998 Michael Maher <mike@redhat.com> - built package for 5.2 Mon May 18 1998 Michael Maher <mike@redhat.com> - updated SPEC file. Thu Jan 29 1998 Otto Hammersmith <otto@redhat.com> - updated to 1.5.4 Tue Nov 18 1997 Otto Hammersmith <otto@redhat.com> - built for glibc, no problems Fri Apr 25 1997 Michael Fulbright <msf@redhat.com> - Fixed for 4.2 PowerTools - Still need to be pamified - Still need to move stmp file to /var/log Mon Feb 17 1997 Michael Fulbright <msf@redhat.com> - First version for PowerCD.
2004-09-09 12:46:21 +00:00
%changelog
%autochangelog