Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37403678
en ru br
Репозитории ALT
S:1.9.14p1-alt2.1
5.1: 1.6.8p12-alt7
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
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: sudo

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: sudo
Version: 1.6.8p12
Release: alt7
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.UTF-8): п≈п╟п©я┐я│п╨п╟п╣я┌ п╨п╬п╪п╟п╫п╢я▀ п╡ п╨п╬п╫я┌п╣п╨я│я┌п╣ п╢я─я┐пЁп╬пЁп╬ п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▐

%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.UTF-8
Sudo - п©я─п╬пЁя─п╟п╪п╪п╟, я─п╟п╥я─п╟п╠п╬я┌п╟п╫п╫п╟я▐ п╡ п©п╬п╪п╬я┴я▄ я│п╦я│я┌п╣п╪п╫п╬п╪я┐ п╟п╢п╪п╦п╫п╦я│я┌я─п╟я┌п╬я─я┐
п╢п╣п╩п╣пЁп╦я─п╬п╡п╟я┌я▄ я┌п╣ п╦п╩п╦ п╦п╫я▀п╣ п©я─п╦п╡п╦п╩п╣пЁп╦я─п╬п╡п╟п╫п╫я▀п╣ я─п╣я│я┐я─я│я▀ п©п╬п╩я▄п╥п╬п╡п╟я┌п╣п╩я▐п╪,
я│ п╡п╣п╢п╣п╫п╦п╣п╪ п©я─п╬я┌п╬п╨п╬п╩п╟ п╦я┘ п╢п╣я▐я┌п╣п╩я▄п╫п╬я│я┌п╦.  п·я│п╫п╬п╡п╫п╟я▐ п╦п╢п╣я▐ - п╢п╣п╩п╣пЁп╦я─п╬п╡п╟я┌я▄
п╨п╟п╨ п╪п╬п╤п╫п╬ п╪п╣п╫я▄я┬п╣ п©я─п╟п╡, п╫п╬ я─п╬п╡п╫п╬ я│я┌п╬п╩я▄п╨п╬, я│п╨п╬п╩я▄п╨п╬ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╢п╩я▐
я─п╣я┬п╣п╫п╦я▐ п©п╬я│я┌п╟п╡п╩п╣п╫п╫я▀я┘ п╥п╟п╢п╟я┤.

%prep
%setup -q
%patch -p1
bzip2 -9k CHANGES
rm acsite.m4
mv aclocal.m4 acinclude.m4

%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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin