source: projects/specs/branches/6/s/sudo/sudo-vl.spec @ 7523

Revision 7523, 9.2 KB checked in by iwamoto, 11 years ago (diff)

sudo: update to 1.7.10p7

Line 
1Summary: Allows command execution as root for specified users
2Summary(ja): スーパーユーザ権限でのコマンドの実行
3Name: sudo
4Version: 1.7.10p7
5Release: 2%{?_dist_release}
6License: ISC-style
7Group: Applications/System
8URL: http://www.sudo.ws/
9
10Source0: http://www.sudo.ws/sudo/dist/sudo-%{version}.tar.gz
11Source1: sudo-sudoers-vine
12
13Patch1: sudo-1.6.7p5-strip.patch
14Patch4: sudo-1.7.1-envdebug.patch
15Patch5: sudo-1.7.10-libtool.patch
16Patch7: sudo-1.7.10p7-m4path.patch
17
18# security
19# nothing...
20
21Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
22BuildRequires: pam-devel
23BuildRequires: groff
24BuildRequires: flex
25BuildRequires: bison
26BuildRequires: openldap-devel
27BuildRequires: automake autoconf libtool
28BuildRequires: libcap-devel
29
30Vendor: Project Vine
31Distribution: Vine Linux
32
33%description
34Sudo (superuser do) allows a system administrator to give certain users
35(or groups of users) the ability to run some (or all) commands as root while
36logging all commands and arguments. Sudo operates on a per-command basis,
37it is not a replacement for the shell.
38
39%description -l ja
40sudo は、特定のユーザや特定のグループに所属するユーザが、スーパーユーザ権限で
41いくつかのコマンド操作を行うことを許可するためのプログラムです。
42
43%prep
44%setup -q
45%patch1 -p1 -b .strip
46%patch4 -p1 -b .envdebug
47%patch5 -p1 -b .libtool
48
49%patch7 -p1 -b .m4path
50
51# security fixes
52# nothing...
53
54libtoolize --force
55# handle newer autoconf
56rm -f acsite.m4
57mv aclocal.m4 acinclude.m4
58autoreconf -I m4 -fv --install
59
60%build
61%configure \
62  --prefix=%{_prefix} \
63  --sbindir=%{_sbindir} \
64  --libdir=%{_libdir} \
65  --sysconfdir=%{_sysconfdir} \
66  --with-iologdir=/var/log/sudo-io \
67  --with-pam \
68  --with-pam-login \
69  --with-logging=syslog \
70  --with-logfac=authpriv \
71  --with-tty-tickets \
72  --with-ignore-dot \
73  --with-editor=/bin/vi \
74  --with-env-editor \
75  --with-ldap \
76  --with-passprompt="[sudo] password for %p: " \
77  --with-secure-path="/sbin:/bin:/usr/sbin:/usr/bin" \
78  --without-interfaces
79make %{?_smp_mflags}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83mkdir $RPM_BUILD_ROOT
84make install DESTDIR="$RPM_BUILD_ROOT" install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g`
85chmod 755 $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_sbindir}/*
86install -p -d -m 700 $RPM_BUILD_ROOT/var/run/sudo
87install -p -d -m 700 $RPM_BUILD_ROOT/var/log/sudo-io
88install -p -c -m 0440 %{SOURCE1} $RPM_BUILD_ROOT/etc/sudoers
89
90mkdir -p $RPM_BUILD_ROOT/etc/pam.d
91cat > $RPM_BUILD_ROOT/etc/pam.d/sudo << EOF
92#%PAM-1.0
93auth       include      system-auth
94account    include      system-auth
95password   include      system-auth
96session    optional     pam_keyinit.so revoke
97session    required     pam_limits.so
98EOF
99
100cat > $RPM_BUILD_ROOT/etc/pam.d/sudo-i << EOF
101#%PAM-1.0
102auth       include      sudo
103account    include      sudo
104password   include      sudo
105session    optional     pam_keyinit.so force revoke
106session    required     pam_limits.so
107EOF
108
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%files
114%defattr(-,root,root)
115%doc HISTORY LICENSE README* TROUBLESHOOTING UPGRADE
116%doc ChangeLog
117%doc *.pod schema.* sudoers2ldif sample.*
118%attr(0440,root,root) %config(noreplace) /etc/sudoers
119%config(noreplace) /etc/pam.d/sudo
120%config(noreplace) /etc/pam.d/sudo-i
121%dir /var/run/sudo
122%attr(0750,root,root) %dir /var/log/sudo-io
123%attr(4111,root,root) %{_bindir}/sudo
124%attr(4111,root,root) %{_bindir}/sudoedit
125%attr(0111,root,root) %{_bindir}/sudoreplay
126%attr(0755,root,root) %{_sbindir}/visudo
127%{_libexecdir}/sudo_noexec.*
128%{_mandir}/man5/sudoers*.5*
129%{_mandir}/man8/sudo.8*
130%{_mandir}/man8/sudoedit.8*
131%{_mandir}/man8/visudo.8*
132%{_mandir}/man8/sudoreplay.8*
133
134%post
135/bin/chmod 0440 /etc/sudoers || :
136
137%changelog
138* Mon Mar  4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.10p7-2vl6
139- fix attribution of sudoreplay
140- add /var/log/sudo-io
141
142* Mon Mar  4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.10p7-1vl6
143- new upstream release with security fixes
144- drop old patches
145
146* Mon Mar  4 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-6
147- add patch130 for fix CVE-2013-1775 (sudo -K)
148
149* Sat May 19 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-5
150- add patch120 for fix CVE-2012-2337 (netmask match)
151
152* Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.2p7-4
153- update sudoers
154  - enable "%wheel ALL=(ALL) ALL" by default.
155
156* Thu Feb 10 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-3
157- add patch110,111 for fix CVE-2011-0010 ("-g" option)
158
159* Wed Sep  8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-2
160- add Patch100 for fix CVE-2010-2956 (sudo Runas)
161- add _smp_mflags flag into make section
162- fix doc filelist (no longer exist BUGS, CHANGSE)
163
164* Sun Jun 20 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p7-1
165- new upstream release with security fix (CVE-2010-1646)
166- change specfile name (-vl)
167
168* Sun Apr 25 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p6-1
169- new upstream release with security fix (CVE-2010-1163)
170- add sudoers.ldap.5 into files section
171
172* Wed Feb 24 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.2p4-1
173- new upstream release with security fix (CVE-2010-0426)
174- update Patch3
175
176* Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.2-1
177- new upstream release
178
179* Wed Jun 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.1-1
180- new upstream release
181- update patches
182- disable "Defaults requiretty"
183
184* Fri Feb 13 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.6.9p20-2
185- rebuilt with openldap-2.4.11
186
187* Thu Feb 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.6.9p20-1
188- new upstream release with security fix (CVE 2009-0034)
189
190* Sat Aug 16 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.9p17-1
191- new upstream release
192- merge some changes from fedoraproject
193  - include [sudo] in password prompt
194  - compiled with secure path
195  - also use getgrouplist() to determine group membership
196  - add sudoers file
197    - add command aliases, default environment config
198- build with openldap
199
200* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.8p12-1vl5
201- applied new versioning policy, spec in utf-8
202
203* Fri May 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.8p12-0vl2
204- change PAM configuration to use system-auth
205- add --with-ignore-dot, --with-editor and --with-env-editor to
206  configure option.
207
208* Mon Jan 23 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.6.8p12-0vl1
209- new upstream release (included security fix)
210- add patch1 for fix CVE-2006-0151
211
212* Mon May 09 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.8p8-0vl1
213- new upstream release
214- use macros
215- build with pam
216
217* Wed Jan 19 2005 IWAI, Masaharu <iwai@alib.jp> 1.6.8p6-0vl1
218- new upstream release
219
220* Sun Oct 10 2004 IWAI, Masaharu <iwai@alib.jp> 1.6.8p1-0vl1
221- SECURITY FIX: new upstream release
222- update rpmnonroot.patch ( Patch0 )
223- add new man page: sudoedit(8)
224
225* Wed Sep  1 2004 IWAI, Masaharu <iwai@alib.jp> 1.6.8-0vl1
226- new upstream release
227- update rpmnonroot.patch ( Patch0 )
228- change Copyrigh tag to License tag
229- update License
230- update URL and Source0: official web site moved.
231- new files: %%{_bindir}/sudoedit and %%{_libexecdir}/sudo_noexec.*
232
233* Mon Apr 14 2003 IWAI Masaharu <iwai@alib.jp> 1.6.7p3-0vl1
234- upstream release
235
236* Wed May 08 2002 Satoshi MACHINO <machino@vinelinux.org> 1.6.6-0vl3
237- fixed changelog
238        -- don't expand macros in changelog ;P
239               
240* Wed May 01 2002 Satoshi MACHINO <machino@vinelinux.org> 1.6.6-0vl2
241- changed to use configure in build section
242        (can't build on sparc)
243
244* Fri Apr 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.6-0vl1
245- upstream release
246- fix security hole : buffer over flow
247
248* Thu Jan 24 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.5p2-0vl1
249- upstream release
250- updated sudo.rpmnonroot.diff
251
252* Fri Jan 18 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.5p1-0vl1
253- upstream release
254- added configure script option '--disable-root-mailer'
255
256* Tue Jan 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.4p1-0vl1
257- upstream release
258- eliminated FAQ from %doc
259
260* Mon Jan 14 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.6.4-0vl1
261- upstream release
262- added noreplace flag (%{_sysconfdir}/sudoers file is not replaced)
263- updated sudo.rpmnonroot.diff
264
265* Wed May 09 2001 <sagami@vinelinux.org>
266- 1.6.3p7-0vl2: follow up 1.6.2p6-0.6vl1
267
268* Fri Mar 02 2001 sagami@vinelinux.org
269- 1.6.3p7-0vl1
270- use better macros
271
272* Tue Mar 1 2001 Kunio Murasawa <murasawa@marineroad.com>
273- 1.6.3p6-0vl1
274- changed sudo.rpmnonroot.diff for 1.6.3p6
275
276* Tue Sep 19 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
277- 1.6.1-2vl5
278- patch -p1 -> patch -p0
279
280* Mon Sep 18 2000 MATSUMOTO Shoji <shom@vinelinux.org>
281- 1.6.1-2vl4
282- fix uid/gid to root.root
283- add sudo.rpmnonroot.diff to built by non-root users
284
285* Tue Sep 12 2000 Jun Nishii <jun@vinelinux.org>
286- 1.6.1-2vl3
287- fix attr
288
289* Sun Sep 10 2000 Jun Nishii <jun@vinelinux.org>
290- 1.6.1-2vl2
291- enable to build by non-root useres
292
293* Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
294- 1.6.1-2vl1
295- modified %files section to handle compressed man page(s)
296
297* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
298- change group
299
300* Thu Dec 30 1999 Jun Nishii <jun@vinelinux.org>
301- version 1.6.1
302- build for Vine Linux 2.0
303
304* Fri May 14  1999 Takeda Eiji <keda@flatout.org>
305- sudo reads $BuildRoot%{_sysconfdir}/sudoers. Make change to read /etc/sudoers.
306
307* Wed Apr 21 1999 Hiroto Watanabe <watanabe@cij.co.jp>
308- Initial Release
309
Note: See TracBrowser for help on using the repository browser.