Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563985
en ru br
ALT Linux repos
S:1.9.14p1-alt2.1
5.0: 1.6.8p12-alt5
4.1: 1.6.8p12-alt5.M41.1
4.0: 1.6.8p12-alt5
+updates:1.6.8p12-alt5
3.0: 1.6.7p5-alt5

Group :: System/Base
RPM: sudo

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sudo
Version: 1.6.8p12
Release: alt5
Serial: 1

Summary: Allows command execution as another user
License: BSD-style
Group: System/Base
Url: http://www.courtesan.com/sudo/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.courtesan.com/pub/sudo/sudo-%version.tar.gz

Source: ftp://ftp.courtesan.com/pub/sudo/sudo-%version.tar

Patch: sudo-%version-%release.patch

PreReq: control
Requires: vitmp
Provides: %_sysconfdir/sudo.d

# Automatically added by buildreq on Wed Apr 09 2003

BuildRequires: flex libpam-devel

%define _libexecdir %_prefix/libexec/sudo

Summary(ru_RU.KOI8-R): Запускает команды в контексте другого пользователя

%description
Sudo is a program designed to allow a sysadmin to give limited root
privileges to users and log root activity.  The basic philosophy is
to give as few privileges as possible but still allow people to get
their work done.

%description -l ru_RU.KOI8-R
Sudo - программа, разработанная в помощь системному администратору
делегировать те или иные привилегированные ресурсы пользователям,
с ведением протокола их деятельности.  Основная идея - делегировать
как можно меньше прав, но ровно столько, сколько необходимо для
решения поставленных задач.

%prep
%setup -q
%patch -p1
bzip2 -9k CHANGES

%build
autoreconf -fisv
export ac_cv_prog_NROFFPROG=nroff
configure_options='
--with-logging=syslog
--with-logfac=authpriv
--enable-shell-sets-home
--enable-log-host
--disable-log-wrap
--disable-saved-ids
--with-pam
--with-ignore-dot
--with-env-editor
--with-tty-tickets
--with-sudoers-mode=0400
--with-editor=/bin/vitmp
--with-sendmail=/usr/sbin/sendmail
--with-secure-path=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin'

%configure $configure_options --with-passprompt='[sudo] password for %%u:'
rm sudoers.man.in sudo.man.in visudo.man.in
%make_build sudoers.man.in sudo.man.in visudo.man.in

%configure $configure_options --with-passprompt='[sudo] password for %%u:'
rm lex.yy.c sudo.tab.h sudo.tab.c
%make_build

%install
make install \
sudoers_uid=`id -un` \
sudoers_gid=`id -gn` \
DESTDIR=%buildroot
install -pD -m600 sample.pam %buildroot%_sysconfdir/pam.d/sudo
mkdir -p %buildroot%_sysconfdir/sudo.d
mkdir -p %buildroot/var/run/sudo
chmod u+rwx %buildroot%prefix/*bin/*
install -pD -m755 sudo.control %buildroot/etc/control.d/facilities/sudo
install -pD -m755 sudoers.control %buildroot/etc/control.d/facilities/sudoers

# sudoedit

ln -snf sudo %buildroot%_bindir/sudoedit
ln -snf sudo.8 %buildroot%_man8dir/sudoedit.8
rm %buildroot%_libexecdir/*.la

%pre
%pre_control sudo
%pre_control sudoers

%post
%post_control -s wheelonly sudo
%post_control -s strict sudoers

%files
%config /etc/control.d/facilities/sudo*
%attr(400,root,root) %config(noreplace) %_sysconfdir/sudoers
%attr(600,root,root) %config(noreplace) %_sysconfdir/pam.d/sudo
%_bindir/sudoedit
%_libexecdir
%attr(700,root,root) %_bindir/sudo
%attr(755,root,root) %_sbindir/visudo
%attr(700,root,root) /var/run/sudo
%attr(700,root,root) %_sysconfdir/sudo.d
%_mandir/man?/*
%doc BUGS CHANGES.bz2 HISTORY LICENSE PORTING README TODO
%doc TROUBLESHOOTING UPGRADE sample.sudoers rpminst.sudoers

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin