2007-01-16 00:38:14 +01:00
|
|
|
#
|
2010-06-16 11:14:28 +02:00
|
|
|
# spec file for package sudo (Version 1.7.2p7)
|
2007-01-16 00:38:14 +01:00
|
|
|
#
|
2010-02-11 19:37:57 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:38:14 +01:00
|
|
|
#
|
2008-08-07 12:00:06 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:38:14 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-21 04:40:40 +01:00
|
|
|
|
2007-01-16 00:38:14 +01:00
|
|
|
Name: sudo
|
|
|
|
BuildRequires: openldap2-devel pam-devel postfix
|
2008-08-22 22:03:52 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2007-01-26 23:12:53 +01:00
|
|
|
PreReq: coreutils
|
2010-06-16 11:14:28 +02:00
|
|
|
Version: 1.7.2p7
|
2010-06-22 10:38:23 +02:00
|
|
|
Release: 1
|
2007-01-16 00:38:14 +01:00
|
|
|
Group: System/Base
|
2010-02-11 19:37:57 +01:00
|
|
|
License: BSD3c(or similar)
|
2007-10-04 03:12:16 +02:00
|
|
|
Url: http://www.sudo.ws/
|
2007-01-16 00:38:14 +01:00
|
|
|
Summary: Execute some commands as root
|
2010-05-18 17:52:50 +02:00
|
|
|
Source0: http://sudo.ws/sudo/dist/%{name}-%{version}.tar.gz
|
2009-07-16 16:55:46 +02:00
|
|
|
Source1: %{name}.pamd
|
2007-01-16 00:38:14 +01:00
|
|
|
Source2: README.SUSE
|
2009-07-16 16:55:46 +02:00
|
|
|
Patch1: %{name}-1.7.1-defaults.diff
|
|
|
|
Patch2: %{name}-1.7.1-sudoers.diff
|
|
|
|
Patch3: %{name}-1.7.1-__P.diff
|
|
|
|
Patch4: %{name}-1.7.1-strip.diff
|
|
|
|
Patch5: %{name}-1.7.1-secure_path.diff
|
|
|
|
Patch6: %{name}-1.7.1-env.diff
|
|
|
|
Patch7: %{name}-1.7.1-pam_rhost.diff
|
2007-01-16 00:38:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Sudo is a command that allows users to execute some commands as root.
|
|
|
|
The /etc/sudoers file (edited with 'visudo') specifies which users have
|
|
|
|
access to sudo and which commands they can run. Sudo logs all its
|
|
|
|
activities to syslogd, so the system administrator can keep an eye on
|
|
|
|
things. Sudo asks for the password for initializing a check period of a
|
|
|
|
given time N (where N is defined at installation and is set to 5
|
|
|
|
minutes by default).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jeff Nieusma <nieusma@rootgroup.com>
|
|
|
|
David Hieb <davehieb@rootgroup.com>
|
|
|
|
Ian McCloghrie <ian@ucsd.edu>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-07-27 02:11:20 +02:00
|
|
|
%patch3
|
2007-01-16 00:38:14 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
2009-07-16 16:55:46 +02:00
|
|
|
cp %{SOURCE2} .
|
2007-01-16 00:38:14 +01:00
|
|
|
|
|
|
|
%build
|
2010-02-11 19:37:57 +01:00
|
|
|
%ifarch s390 s390x %sparc
|
2007-01-16 00:38:14 +01:00
|
|
|
F_PIE=-fPIE
|
|
|
|
%else
|
|
|
|
F_PIE=-fpie
|
|
|
|
%endif
|
2007-07-27 02:11:20 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall $F_PIE -DLDAP_DEPRECATED"
|
|
|
|
export LDFLAGS="-pie"
|
|
|
|
%configure \
|
|
|
|
--libexecdir=%{_libexecdir}/sudo \
|
|
|
|
--with-noexec=%{_libexecdir}/sudo/sudo_noexec.so \
|
2008-08-22 22:03:52 +02:00
|
|
|
--with-selinux \
|
2007-07-27 02:11:20 +02:00
|
|
|
--with-logfac=auth \
|
|
|
|
--with-insults \
|
|
|
|
--with-all-insults \
|
|
|
|
--with-ignore-dot \
|
|
|
|
--with-tty-tickets \
|
|
|
|
--enable-shell-sets-home \
|
|
|
|
--with-sudoers-mode=0440 \
|
|
|
|
--with-pam \
|
|
|
|
--with-ldap \
|
|
|
|
--with-env-editor \
|
2007-08-15 20:37:18 +02:00
|
|
|
--without-secure-path \
|
2007-08-12 11:46:56 +02:00
|
|
|
--with-passprompt='%%p\x27s password:'
|
2010-07-30 15:55:26 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
2007-01-16 00:38:14 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2010-05-18 17:52:50 +02:00
|
|
|
install -d -m 700 $RPM_BUILD_ROOT%{_localstatedir}/run/sudo
|
2007-01-16 00:38:14 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
|
2009-07-16 16:55:46 +02:00
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sudo
|
2007-01-26 23:12:53 +01:00
|
|
|
install -m 755 sudoers2ldif $RPM_BUILD_ROOT%{_sbindir}/sudoers2ldif
|
2007-07-27 02:11:20 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/sudoedit
|
|
|
|
ln -sf %{_bindir}/sudo $RPM_BUILD_ROOT%{_bindir}/sudoedit
|
2007-01-16 00:38:14 +01:00
|
|
|
|
2007-01-26 23:12:53 +01:00
|
|
|
%post
|
|
|
|
chmod 0440 %{_sysconfdir}/sudoers
|
|
|
|
|
2007-01-16 00:38:14 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-01-27 02:25:55 +01:00
|
|
|
%doc HISTORY LICENSE PORTING README README.LDAP README.SUSE TROUBLESHOOTING UPGRADE WHATSNEW *.pod
|
2007-01-16 00:38:14 +01:00
|
|
|
%doc %{_mandir}/man?/*
|
2007-07-27 02:11:20 +02:00
|
|
|
%config(noreplace) %attr(0440,root,root) %{_sysconfdir}/sudoers
|
|
|
|
%config %{_sysconfdir}/pam.d/sudo
|
2007-01-16 00:38:14 +01:00
|
|
|
%attr(4755,root,root) %{_bindir}/sudo
|
|
|
|
%{_bindir}/sudoedit
|
|
|
|
%{_sbindir}/*
|
2007-07-27 02:11:20 +02:00
|
|
|
%{_libexecdir}/sudo
|
2010-05-18 17:52:50 +02:00
|
|
|
%{_localstatedir}/run/sudo
|
2007-12-06 01:36:36 +01:00
|
|
|
|
2007-07-18 23:01:14 +02:00
|
|
|
%changelog
|