]> git.pld-linux.org Git - packages/sudo.git/blob - sudo.spec
- rel up for new libcrypto
[packages/sudo.git] / sudo.spec
1 #
2 # Conditional build:
3 %bcond_without  selinux         # build without SELinux support
4 %bcond_without  skey            # disable skey (onetime passwords) support
5 %bcond_without  heimdal         # disable Kerberos support
6 %bcond_without  ldap            # disable LDAP support
7 #
8 Summary:        Allows command execution as root for specified users
9 Summary(es):    Permite que usuarios específicos ejecuten comandos como se fueran el root
10 Summary(ja):    »ØÄê¥æ¡¼¥¶¤ËÀ©¸ÂÉÕ¤Îroot¸¢¸Â¤òµö²Ä¤¹¤ë
11 Summary(pl):    Umo¿liwia wykonywanie poleceñ jako root dla konkretnych u¿ytkowników
12 Summary(pt_BR): Permite que usuários específicos executem comandos como se fossem o root
13 Summary(ru):    ðÏÚ×ÏÌÑÅÔ ÏÐÒÅÄÅÌÅÎÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÓÐÏÌÎÑÔØ ËÏÍÁÎÄÙ ÏÔ ÉÍÅÎÉ root
14 Summary(uk):    äÏÚ×ÏÌѤ ×ËÁÚÁÎÉÍ ËÏÒÉÓÔÕ×ÁÞÁÍ ×ÉËÏÎÕ×ÁÔÉ ËÏÍÁÎÄɠצĠ¦ÍÅΦ root
15 Name:           sudo
16 Version:        1.6.8p12
17 Release:        4
18 Epoch:          1
19 License:        BSD
20 Group:          Applications/System
21 Source0:        ftp://ftp.sudo.ws/pub/sudo/%{name}-%{version}.tar.gz
22 # Source0-md5:  b29893c06192df6230dd5f340f3badf5
23 Source1:        %{name}.pamd
24 Source2:        %{name}.logrotate
25 Patch0:         %{name}-selinux.patch
26 Patch1:         %{name}-ac.patch
27 URL:            http://www.sudo.ws/sudo/
28 BuildRequires:  autoconf >= 2.53
29 BuildRequires:  automake
30 %{?with_heimdal:BuildRequires:  heimdal-devel >= 0.7}
31 %{?with_selinux:BuildRequires:  libselinux-devel}
32 BuildRequires:  libtool
33 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
34 BuildRequires:  pam-devel
35 %{?with_skey:BuildRequires:     skey-devel >= 2.2-11}
36 Requires:       pam >= 0.77.3
37 Obsoletes:      cu-sudo
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Sudo (superuser do) allows a permitted user to execute a command as
42 the superuser (real and effective uid and gid are set to 0 and root's
43 group as set in the passwd file respectively).
44
45 Sudo determines who is an authorized user by consulting the file
46 /etc/sudoers. By giving sudo the -v flag a user can update the time
47 stamp without running a command. The password prompt itself will also
48 time out if the password is not entered with N minutes (again, this is
49 defined at installation time and defaults to 5 minutes).
50
51 %description -l es
52 Sudo (superuser do) permite que el administrador del sistema otorga a
53 ciertos usuarios (o grupos de usuarios) la habilidad para ejecutar
54 algunos (o todos) comandos como root, registrando todos los comandos y
55 argumentos. Sudo opera en una base por comando, no siendo un
56 substituto para la shell.
57
58 %description -l ja
59 sudo (superuser do)
60 ¤È¤Ï¥·¥¹¥Æ¥à´ÉÍý¼Ô¤¬¡¢¿®ÍѤǤ­¤ë¥æ¡¼¥¶(¤Þ¤¿¤Ï¥°¥ë¡¼¥×)¤ËÂÐ
61 ¤·¤Æ¡¢¤¤¤¯¤Ä¤«(¤â¤·¤¯¤ÏÁ´¤Æ)¤Î¥³¥Þ¥ó¥É¤ò root
62 ¤È¤·¤Æ¼Â¹Ô¤Ç¤­¤ë¤è¤¦¡¢¤½¤Î¥³¥Þ¥ó
63 ¥É¤Î¼Â¹ÔÍúÎò¤Î¥í¥°¤ò¤È¤ê¤Ä¤Äµö²Ä¤¹¤ë»ÅÁȤߤǤ¹¡£sudo
64 ¤Ï¥³¥Þ¥ó¥É°ì¹Ôñ°Ì¤ÇÆ°ºî
65 ¤·¤Þ¤¹¡£¥·¥§¥ë¤ÎÃÖ¤­´¹¤¨¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£°Ê²¼¤Îµ¡Ç½¤òÆ⢤·¤Æ¤¤¤Þ¤¹¡£¥Û¥¹¥Èñ°Ì
66 ¤Ç¡¢¤½¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô²Äǽ¤Ê¥æ¡¼¥¶¤òÀ©¸Â¤¹¤ëµ¡Ç½¡¢³Æ¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¤Î(郎¤Ê
67 ¤Ë¤ò¼Â¹Ô¤·¤¿¤«¤Îº¯Àפò»Ä¤¹¤¿¤á¤Î)Ë­ÉÙ¤Ê¥í¥®¥ó¥°µ¡Ç½¡¢sudo
68 ¥³¥Þ¥ó¥É¤Î¥¿¥¤¥à¥¢¥¦
69 ¥È»þ´Ö¤òÀßÄê²Äǽ¡¢Ê£¿ô¤Î¥Þ¥·¥ó¤ÇƱ°ì¤ÎÀßÄê¥Õ¥¡¥¤¥ë(sudoers)¤ò¶¦Í­¤¹¤ëµ¡Ç½¡¢¤¬
70 ¤¢¤ê¤Þ¤¹¡£
71
72 %description -l pl
73 Sudo (superuser do) umo¿liwia wykonywanie konkretnych poleceñ jako
74 root dla wyspecyfikowanych u¿ytkowników (rzeczywiste i efektywne
75 uid/gid podczas wykonywania tych programów jest 0). To kto mo¿e
76 wykonywaæ konkretne polecenia i w jaki sposób ma byæ autoryzowany jest
77 opisane w pliku /etc/sudoers.
78
79 %description -l pt_BR
80 Sudo (superuser do) permite que o administrador do sistema dê a certos
81 usuários (ou grupos de usuários) a habilidade para rodar alguns (ou
82 todos) comandos como root, registrando todos os comandos e argumentos.
83 Sudo opera numa base por comando, não sendo um substituto para a
84 shell.
85
86 %description -l ru
87 Sudo (superuser do) ÐÏÚ×ÏÌÑÅÔ ÓÉÓÔÅÍÎÏÍÕ ÁÄÍÉÎÉÓÔÒÁÔÏÒÕ ÐÒÅÄÏÓÔÁ×ÌÑÔØ
88 ÏÐÒÅÄÅÌÅÎÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ (ÉÌÉ ÉÈ ÇÒÕÐÐÁÍ) ×ÏÚÍÏÖÎÏÓÔØ ÉÓÐÏÌÎÑÔØ
89 ÎÅËÏÔÏÒÙÅ (ÉÌÉ ×ÓÅ) ËÏÍÁÎÄÙ Ó ÐÒÁ×ÁÍÉ root, ÐÒÉ ÜÔÏÍ ÐÒÏÔÏËÏÌÉÒÕÑ ×ÓÅ
90 ËÏÍÁÎÄÙ É ÁÒÇÕÍÅÎÔÙ. Sudo ÒÁÂÏÔÁÅÔ Ó ÏÔÄÅÌØÎÙÍÉ ËÏÍÁÎÄÁÍÉ, ÜÔÏ ÎÅ
91 ÚÁÍÅÎÁ ËÏÍÁÎÄÎÏÊ ÏÂÏÌÏÞËÉ (shell). îÅËÏÔÏÒÙÅ ÉÚ ×ÏÚÍÏÖÎÏÓÔÅÊ sudo:
92 ÏÇÒÁÎÉÞÅÎÉÅ ÔÏÇÏ, ËÁËÉÅ ËÏÍÁÎÄÙ ÐÏÌØÚÏ×ÁÔÅÌØ ÍÏÖÅÔ ÚÁÐÕÓËÁÔØ ×
93 ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÈÏÓÔÁ; ÐÏÌÎÏÅ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ ËÁÖÄÏÊ ËÏÍÁÎÄÙ;
94 ÎÁÓÔÒÁÉ×ÁÅÍÏÅ ×ÒÅÍÑ, ÎÁ ÐÒÏÔÑÖÅÎÉÉ ËÏÔÏÒÏÇÏ sudo ÐÏÍÎÉÔ ÐÁÒÏÌØ;
95 ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÏÄÎÏÇÏ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÇÏ ÆÁÊÌÁ (sudoers) ÎÁ ÍÎÏÇÉÈ
96 ÍÁÛÉÎÁÈ.
97
98 %description -l uk
99 Sudo (superuser do) ÄÏÚ×ÏÌѤ ÓÉÓÔÅÍÎÏÍÕ ÁÄͦΦÓÔÒÁÔÏÒÏצ ÎÁÄÁÔÉ ÐÅ×ÎÉÍ
100 ËÏÒÉÓÔÕ×ÁÞÁÍ (ÞÉ §È ÇÒÕÐÁÍ) ÍÏÖÌÉצÓÔØ ×ÉËÏÎÕ×ÁÔÉ ÄÅÑ˦ (ÞÉ ×Ó¦)
101 ËÏÍÁÎÄÉ Ú ÐÒÁ×ÁÍÉ root, ÐÒÉ ÃØÏÍÕ ÐÒÏÔÏËÏÌÀÀÞÉ ×Ó¦ ËÏÍÁÎÄÉ ÔÁ
102 ÁÒÇÕÍÅÎÔÉ. Sudo ÐÒÁÃÀ¤ Ú ÏËÒÅÍÉÍÉ ËÏÍÁÎÄÁÍÉ, ÃÅ ÎÅ ÚÁͦÎÁ ËÏÍÁÎÄÎϧ
103 ÏÂÏÌÏÎËÉ (shell). äÅÑ˦ Ú ÍÏÖÌÉ×ÏÓÔÅÊ sudo: ÏÂÍÅÖÅÎÎÑ ÔÏÇÏ, Ñ˦
104 ËÏÍÁÎÄÉ ËÏÒÉÓÔÕ×ÁÞ ÍÏÖÅ ÚÁÐÕÓËÁÔÉ × ÚÁÌÅÖÎÏÓÔ¦ ×¦Ä ÈÏÓÔÁ; ÐÏ×ÎÅ
105 ÐÒÏÔÏËÏÌÀ×ÁÎÎÑ ËÏÖÎϧ ËÏÍÁÎÄÉ; ÎÁÓÔÒÏÀ×ÁÎÉÊ ÞÁÓ, ÎÁ ÐÒÏÔÑÚ¦ ÑËÏÇÏ sudo
106 ÐÁÍ'ÑÔÁ¤ ÐÁÒÏÌØ; ×ÉËÏÒÉÓÔÁÎÎÑ ÏÄÎÏÇÏ ËÏÎƦÇÕÒÁæÊÎÏÇÏ ÆÁÊÌÕ (sudoers)
107 ÎÁ ÂÁÇÁÔØÏÈ ÍÁÛÉÎÁÈ.
108
109 %prep
110 %setup -q
111 %{?with_selinux:%patch0 -p1}
112
113 # only local macros
114 mv -f aclocal.m4 acinclude.m4
115 # kill libtool.m4 copy
116 rm -f acsite.m4
117
118 %patch1 -p1
119
120 %build
121 cp -f /usr/share/automake/config.sub .
122 %{__libtoolize}
123 %{__aclocal}
124 %{__autoconf}
125 # sparc64 2.4.x kernels have buggy sys32_utimes(somefile, NULL) syscall
126 # it's fixed in >= 2.4.31-0.3, but keep workaround not to require very
127 # fresh kernel
128 %ifarch sparc sparcv9
129 export ac_cv_func_utimes=no
130 %endif
131 %configure \
132         NROFFPROG=nroff \
133         --with-incpath=/usr/include/security \
134         --with-timedir=/var/run/sudo \
135         --with-pam \
136         --with-logging=both \
137         --with-logfac=auth \
138         --with-logpath=/var/log/sudo \
139         --with-ignore-dot \
140         --with-env-editor \
141         --with-secure-path="/bin:/sbin:/usr/bin:/usr/sbin" \
142         --with-loglen=320 \
143         --disable-saved-ids \
144         --with%{!?with_heimdal:out}-kerb5 \
145         --with%{!?with_ldap:out}-ldap \
146         --with%{!?with_skey:out}-skey \
147         --with-long-otp-prompt
148
149 %{__make}
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,logrotate.d},/var/{log,run/sudo}}
154
155 %{__make} install \
156         DESTDIR=$RPM_BUILD_ROOT \
157         install_uid=`id -u` \
158         install_gid=`id -g` \
159         sudoers_uid=`id -u` \
160         sudoers_gid=`id -g`
161
162 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/sudo
163 touch $RPM_BUILD_ROOT/var/log/sudo
164 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/sudo
165
166 chmod -R +r $RPM_BUILD_ROOT%{_prefix}
167
168 rm -f $RPM_BUILD_ROOT%{_libdir}/sudo_noexec.la
169
170 %clean
171 rm -rf $RPM_BUILD_ROOT
172
173 %files
174 %defattr(644,root,root,755)
175 %doc BUGS CHANGES HISTORY README TODO TROUBLESHOOTING sample.sudoers
176 %attr(440,root,root) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/sudoers
177 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sudo
178 %attr(4755,root,root) %{_bindir}/sudo
179 %attr(4755,root,root) %{_bindir}/sudoedit
180 %{?with_selinux:%attr(755,root,root) %{_sbindir}/sesh}
181 %attr(755,root,root) %{_sbindir}/visudo
182 %attr(755,root,root) %{_libdir}/sudo_noexec.so
183 %{_mandir}/man*/*
184 %attr(600,root,root) %ghost /var/log/sudo
185 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
186 %attr(700,root,root) %dir /var/run/sudo
This page took 0.125263 seconds and 4 git commands to generate.