1 | Name: quota |
---|
2 | Summary: System administration tools for monitoring users' disk usage. |
---|
3 | Summary(ja): ユーザのディスク使用量をモニタするシステム管理ツール |
---|
4 | Version: 4.04 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: BSD |
---|
7 | Group: System Environment/Base |
---|
8 | URL: http://sourceforge.net/projects/linuxquota/ |
---|
9 | |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | #Source0: http://downloads.sourceforge.net/linuxquota/quota-%{version}.tar.gz |
---|
14 | Source0: quota-%{version}.tar.gz |
---|
15 | Source1: quota_nld.init |
---|
16 | Source2: quota_nld.sysconfig |
---|
17 | |
---|
18 | # Not accepted changes (378a64006bb1e818e84a1c77808563b802b028fa) |
---|
19 | Patch0: quota-4.04-warnquota-configuration-tunes.patch |
---|
20 | Patch1: quota-4.03-Validate-upper-bound-of-RPC-port.patch |
---|
21 | # Install rquotad(3) only if RPC is enabled, |
---|
22 | # <https://sourceforge.net/p/linuxquota/patches/45/>, in upstream after 4.04 |
---|
23 | Patch2: quota-4.04-Install-rquota-3-only-if-RPC-is-enabled.patch |
---|
24 | # Pass TIRPC header files location to all RPC compilation units, |
---|
25 | # <https://sourceforge.net/p/linuxquota/patches/46/>, in upstream after 4.04 |
---|
26 | Patch3: quota-4.04-Add-TIRPC_CFLAGS-globally-to-CFLAGS-for-RPC-support-.patch |
---|
27 | # Do not iterate over negative UIDs in repquota, |
---|
28 | # <https://sourceforge.net/p/linuxquota/patches/47/>, in upstream after 4.04 |
---|
29 | Patch4: quota-4.04-repquota-Fix-output-when-user-2-exists.patch |
---|
30 | # Fix snprintf overflows in warnquota, |
---|
31 | # <https://sourceforge.net/p/linuxquota/patches/48/>, in upstream after 4.04 |
---|
32 | Patch5: quota-4.04-warnquota-Check-snprintf-for-overflows.patch |
---|
33 | # Fix user name search in utmp log, |
---|
34 | # <https://sourceforge.net/p/linuxquota/patches/48/>, in upstream after 4.04 |
---|
35 | Patch6: quota-4.04-warnquota-Fix-comparing-user-name-to-non-null-termin.patch |
---|
36 | # Avoid questions in quotacheck non-interactive mode, in upstream after 4.04 |
---|
37 | Patch7: quota-4.04-quotacheck-Avoid-question-in-non-interactive-mode.patch |
---|
38 | # Report an error when quotacheck fails to cache quota files, |
---|
39 | # in upstream after 4.04 |
---|
40 | Patch8: quota-4.04-quotacheck-Report-error-when-caching-of-quota-file-f.patch |
---|
41 | # Report an error if quota file magic is invalid, in upstream after 4.04 |
---|
42 | Patch9: quota-4.04-quotacheck-Fail-check-if-quota-file-magic-is-invalid.patch |
---|
43 | # Fix busy loop in rpc.rquotad, bug #1575956, in upstream after 4.04, |
---|
44 | # <https://sourceforge.net/p/linuxquota/feature-requests/16/> |
---|
45 | Patch10: quota-4.04-Listen-on-a-TCP-socket.patch |
---|
46 | # Fix current block usage limit in RPC client, in upstream after 4.04, |
---|
47 | # <https://sourceforge.net/p/linuxquota/bugs/127/> |
---|
48 | Patch11: quota-4.04-rpc-Fix-wrong-limit-for-space-usage.patch |
---|
49 | # Distinguish between none quota limits and no allocated resources in quota(1) |
---|
50 | # tool output, proposed to upstream, |
---|
51 | # <https://sourceforge.net/p/linuxquota/bugs/128/> |
---|
52 | Patch12: quota-4.04-quota-1-Distinguish-between-none-quota-limits-and-no.patch |
---|
53 | # Fix a descriptor leak, proposed to upstream, |
---|
54 | # <https://sourceforge.net/p/linuxquota/bugs/129/> |
---|
55 | Patch13: quota-4.04-convertquota-Fix-a-file-descriptor-leak-in-convert_e.patch |
---|
56 | # Fix a descriptor leak, proposed to upstream, |
---|
57 | # <https://sourceforge.net/p/linuxquota/bugs/129/> |
---|
58 | Patch14: quota-4.04-quotackeck-Fix-a-directory-descriptor-leak-in-scan_d.patch |
---|
59 | # Fix a descriptor leak, proposed to upstream, |
---|
60 | # <https://sourceforge.net/p/linuxquota/bugs/129/> |
---|
61 | Patch15: quota-4.04-xqmstats-Fix-a-file-descriptor-leak-in-main.patch |
---|
62 | |
---|
63 | BuildRoot: %{_tmppath}/%{name}-root |
---|
64 | Requires: kernel >= 2.4, initscripts >= 6.38 |
---|
65 | Requires(post): chkconfig |
---|
66 | Requires(preun): chkconfig |
---|
67 | Conflicts: nfs-utils < 1.0.1 |
---|
68 | BuildRequires: e2fsprogs-devel, gettext |
---|
69 | BuildRequires: tcp_wrappers, nss-devel |
---|
70 | BuildRequires: openldap-devel, openssl-devel, dbus-devel, libnl3-devel |
---|
71 | |
---|
72 | |
---|
73 | %description |
---|
74 | The quota package contains system administration tools for monitoring |
---|
75 | and limiting user and or group disk usage per filesystem. |
---|
76 | |
---|
77 | %description -l ja |
---|
78 | quota パッケージには,ユーザやグループのディスク使用量を監視したり |
---|
79 | 制限したりできるシステム管理ツールが収録されています.これらの操作 |
---|
80 | はファイルシステム単位で行うことが出来ます. |
---|
81 | ユーザやグループのディスク使用量を監視/制限した場合は quota をイン |
---|
82 | ストールして下さい. |
---|
83 | |
---|
84 | |
---|
85 | %prep |
---|
86 | %setup -q |
---|
87 | %patch0 -p1 |
---|
88 | %patch1 -p1 |
---|
89 | %patch2 -p1 |
---|
90 | %patch3 -p1 |
---|
91 | %patch4 -p1 |
---|
92 | %patch5 -p1 |
---|
93 | %patch6 -p1 |
---|
94 | %patch7 -p1 |
---|
95 | %patch8 -p1 |
---|
96 | %patch9 -p1 |
---|
97 | %patch10 -p1 |
---|
98 | %patch11 -p1 |
---|
99 | %patch12 -p1 |
---|
100 | %patch13 -p1 |
---|
101 | %patch14 -p1 |
---|
102 | %patch15 -p1 |
---|
103 | # Regenerate build scripts |
---|
104 | autoreconf -f -i |
---|
105 | |
---|
106 | %build |
---|
107 | %configure \ |
---|
108 | --enable-bsd-behaviour \ |
---|
109 | --enable-ext2direct=yes \ |
---|
110 | --enable-ldapmail=yes \ |
---|
111 | --enable-netlink=yes \ |
---|
112 | --enable-rootsbin=yes \ |
---|
113 | --enable-rpc=yes \ |
---|
114 | --enable-rpcsetquota=yes \ |
---|
115 | --enable-strip-binaries=no \ |
---|
116 | --enable-nls \ |
---|
117 | --disable-rpath \ |
---|
118 | --disable-silent-rules \ |
---|
119 | --disable-xfs-roothack |
---|
120 | make |
---|
121 | |
---|
122 | %install |
---|
123 | rm -fr %{buildroot} |
---|
124 | mkdir -p %{buildroot}/sbin |
---|
125 | mkdir -p %{buildroot}%{_sysconfdir} |
---|
126 | mkdir -p %{buildroot}%{_sbindir} |
---|
127 | mkdir -p %{buildroot}%{_bindir} |
---|
128 | mkdir -p %{buildroot}%{_mandir}/{man1,man3,man8} |
---|
129 | |
---|
130 | make install DESTDIR=%{buildroot} |
---|
131 | |
---|
132 | install -m 644 warnquota.conf %{buildroot}%{_sysconfdir} |
---|
133 | |
---|
134 | mv %{buildroot}%{_sbindir}/quota{check,off,on} %{buildroot}/sbin/ |
---|
135 | |
---|
136 | # we don't support XFS yet |
---|
137 | # |
---|
138 | rm -f %{buildroot}%{_sbindir}/quot |
---|
139 | rm -f %{buildroot}%{_sbindir}/xqmstats |
---|
140 | rm -f %{buildroot}%{_mandir}/man8/quot.* |
---|
141 | rm -f %{buildroot}%{_mandir}/man8/xqmstats.* |
---|
142 | |
---|
143 | install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/quota_nld |
---|
144 | install -p -m644 -D %{SOURCE2} \ |
---|
145 | $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/quota_nld |
---|
146 | |
---|
147 | rm -rf %{buildroot}%{_datadir}/doc/%{name} |
---|
148 | |
---|
149 | %find_lang %{name} |
---|
150 | |
---|
151 | |
---|
152 | %clean |
---|
153 | rm -rf %{buildroot} |
---|
154 | |
---|
155 | %post |
---|
156 | /sbin/chkconfig --add quota_nld |
---|
157 | |
---|
158 | %preun |
---|
159 | if [ $1 = 0 ] ; then |
---|
160 | /sbin/service quota_nld stop >/dev/null 2>&1 |
---|
161 | /sbin/chkconfig --del quota_nld |
---|
162 | fi |
---|
163 | |
---|
164 | |
---|
165 | %files -f %{name}.lang |
---|
166 | %defattr(-,root,root) |
---|
167 | %license COPYING |
---|
168 | %doc Changelog doc/ README* |
---|
169 | %config(noreplace) %{_sysconfdir}/warnquota.conf |
---|
170 | %config(noreplace) %{_sysconfdir}/quotagrpadmins |
---|
171 | %config(noreplace) %{_sysconfdir}/quotatab |
---|
172 | %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/quota_nld |
---|
173 | %{_initrddir}/quota_nld |
---|
174 | /sbin/* |
---|
175 | %{_bindir}/* |
---|
176 | %{_sbindir}/* |
---|
177 | %{_includedir}/rpcsvc/* |
---|
178 | %{_mandir}/man1/* |
---|
179 | %{_mandir}/man3/* |
---|
180 | %{_mandir}/man5/* |
---|
181 | %{_mandir}/man8/* |
---|
182 | |
---|
183 | |
---|
184 | %changelog |
---|
185 | * Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.04-1 |
---|
186 | - new upstram release. |
---|
187 | - dropped BR:libnl-devel. |
---|
188 | - added BR:libnl3-devel. |
---|
189 | - dropped all patches. |
---|
190 | - imported patched from rawhide. |
---|
191 | |
---|
192 | * Mon Mar 12 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.00-1 |
---|
193 | - new upstram release |
---|
194 | - add BR: tcp_wrappers, nss-devel, openldap-devel, |
---|
195 | openssl-devel, dbus-devel, libnl-devel |
---|
196 | |
---|
197 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 3.15-2 |
---|
198 | - rebuilt with rpm-4.8.1-3 |
---|
199 | |
---|
200 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.15-1vl5 |
---|
201 | - applied new versioning policy, spec in utf-8 |
---|
202 | |
---|
203 | * Thu Dec 20 2007 Shu KONNO <owa@bg.wakwak.com> 3.15-0vl1 |
---|
204 | - updated quota to 3.15 |
---|
205 | |
---|
206 | * Wed Apr 27 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.12-5vl2 |
---|
207 | - oops, removed unnecessary Patch3 |
---|
208 | |
---|
209 | * Tue Apr 26 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.12-5vl1 |
---|
210 | - based on 3.12-5, being merged into 3.06-7vl1 |
---|
211 | |
---|
212 | - Sun Sep 26 2004 Rik van Riel <riel@redhat.com> 3.12-5 |
---|
213 | - add URL (bz# 131862) |
---|
214 | |
---|
215 | - Fri Sep 24 2004 Steve Dickson <SteveD@RedHat.com> |
---|
216 | - Fixed typos in warnquota.conf patch |
---|
217 | (bz# 82250 and bz# 83974) |
---|
218 | |
---|
219 | - Mon Sep 13 2004 Steve Dickson <SteveD@RedHat.com> |
---|
220 | - upgraded to 3.12 |
---|
221 | |
---|
222 | - Tue Jan 27 2004 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
223 | - add -pie support |
---|
224 | - update to 3.10 |
---|
225 | |
---|
226 | - Sat Aug 16 2003 Steve Dickson <SteveD@RedHat.com> |
---|
227 | - upgraded to 3.0.9 |
---|
228 | - added quota-3.09-root_sbindir.patch |
---|
229 | |
---|
230 | * Sun Feb 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.06-7vl1 |
---|
231 | - merged with Vine Linux package (quota-2.00stable-0vl1) |
---|
232 | - based on rawhide release 3.06-7 |
---|
233 | * Wed May 30 2001 Jun Nishii <jun@vinelinux.org> |
---|
234 | - 2.00stable-0vl1 |
---|
235 | - ver.up |
---|
236 | * Wed May 30 2001 Jun Nishii <jun@vinelinux.org> |
---|
237 | - 2.00pre3-8vl2 |
---|
238 | - added documents |
---|
239 | * Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
240 | - 2.00pre3-8vl1 |
---|
241 | - based on 2.00pre3-8 from Rawhide |
---|
242 | - added Japanese summary and description |
---|
243 | |
---|
244 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
245 | - rebuilt |
---|
246 | |
---|
247 | * Mon Nov 18 2002 Tim Powers <timp@redhat.com> |
---|
248 | - rebuild on all arches |
---|
249 | |
---|
250 | |
---|
251 | * Fri Sep 6 2002 Philip Copeland <bryce@redhat.com> 3.06-5 |
---|
252 | - added --with-ext2direct=no to fix #73244 |
---|
253 | without this users with UID's > 65535 will not |
---|
254 | be able to exist on a quota enabled FS |
---|
255 | |
---|
256 | * Wed Aug 7 2002 Philip Copeland <bryce@redhat.com> 3.06-4 |
---|
257 | - Man page change. #60108 |
---|
258 | |
---|
259 | * Tue Aug 6 2002 Philip Copeland <bryce@redhat.com> 3.06-3 |
---|
260 | - Bah, I'd dropped epoch from the spec file but seems |
---|
261 | we need this if you want to upgrade as the epoch |
---|
262 | number has precedence over the version/release |
---|
263 | numbers. |
---|
264 | |
---|
265 | * Wed Jul 17 2002 Philip Copeland <bryce@redhat.com> 3.06-2 |
---|
266 | - Lets stop the makefile from stripping the |
---|
267 | binaries as thats rpms job (apparently) |
---|
268 | |
---|
269 | * Mon Jul 01 2002 Philip Copeland <bryce@redhat.com> 3.06-1 |
---|
270 | - Ditched the 3.01-pre9 src base for 3.06 |
---|
271 | Rebuilt without any patchs |
---|
272 | |
---|
273 | ============================================================ |
---|
274 | |
---|
275 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
276 | - automated rebuild |
---|
277 | |
---|
278 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
279 | - automated rebuild |
---|
280 | |
---|
281 | * Mon Feb 25 2002 Elliot Lee <sopwith@redhat.com> |
---|
282 | - IfArch the badkernelinclude patch for ppc-only. |
---|
283 | - Update to 3.03 |
---|
284 | |
---|
285 | * Wed Dec 12 2001 Guy Streeter <streeter@redhat.com> |
---|
286 | - Make #include of kernel header file work on non-x86 |
---|
287 | |
---|
288 | * Wed Sep 5 2001 Preston Brown <pbrown@redhat.com> |
---|
289 | - require new initscripts |
---|
290 | |
---|
291 | * Thu Aug 30 2001 Preston Brown <pbrown@redhat.com> |
---|
292 | - fixed bug #52075 (problem with ext2 labels) |
---|
293 | - backup data files off by default in quotacheck, optional backup flag added |
---|
294 | - fix bug where giving a bad directory or device would cause |
---|
295 | quotaon/quotacheck to simulate "-a" behaviour |
---|
296 | - if a device name (i.e /dev/hda1) is passed, look up the corresponding mount |
---|
297 | point |
---|
298 | |
---|
299 | * Wed Aug 29 2001 Preston Brown <pbrown@redhat.com> |
---|
300 | - return an error code in more cases in convertquota |
---|
301 | |
---|
302 | * Tue Aug 28 2001 Preston Brown <pbrown@redhat.com> |
---|
303 | - 3.01pre9 |
---|
304 | |
---|
305 | * Fri Jul 20 2001 Preston Brown <pbrown@redhat.com> |
---|
306 | - more cleanups on 3.01pre8 |
---|
307 | |
---|
308 | * Mon Jul 2 2001 Preston Brown <pbrown@redhat.com> |
---|
309 | - 3.01 version, everything has changed again. :( |
---|
310 | |
---|
311 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
---|
312 | - Bump release + rebuild. |
---|
313 | |
---|
314 | * Fri Mar 30 2001 Preston Brown <pbrown@redhat.com> |
---|
315 | - use rpc.rquotad from here again (#33738) |
---|
316 | |
---|
317 | * Thu Mar 15 2001 Preston Brown <pbrown@redhat.com> |
---|
318 | - enable ALT_FORMAT for edquota |
---|
319 | |
---|
320 | * Tue Mar 13 2001 Preston Brown <pbrown@redhat.com> |
---|
321 | - I broke passing devices on the cmd line. Fixed. |
---|
322 | |
---|
323 | * Fri Mar 09 2001 Preston Brown <pbrown@redhat.com> |
---|
324 | - quota 3.00 is required by recent kernel 2.4 changes |
---|
325 | - no warnquota included this time, not yet ported |
---|
326 | - quite a bit of work on quotacheck to make is backwards compatible |
---|
327 | - we will likely go back to "quota 2.00" as these projects merge... |
---|
328 | |
---|
329 | * Fri Feb 09 2001 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
330 | - use "rm -f" instead of only "rm" |
---|
331 | |
---|
332 | * Wed Feb 7 2001 Preston Brown <pbrown@redhat.com> |
---|
333 | - fix quotacheck man page for -a option (#26380) |
---|
334 | |
---|
335 | * Thu Feb 1 2001 Preston Brown <pbrown@redhat.com> |
---|
336 | - 2.00 final, rolls in pretty much all our patches. :) |
---|
337 | - fix reporting of in use dquot entries from quotastats |
---|
338 | - change repquota man page to fix documentation of -v (#10330) |
---|
339 | - include warnquota.conf |
---|
340 | |
---|
341 | * Mon Nov 20 2000 Bill Nottingham <notting@redhat.com> |
---|
342 | - fix ia64 build |
---|
343 | |
---|
344 | * Mon Aug 21 2000 Jeff Johnson <jbj@redhat.com> |
---|
345 | - add LABEL=foo support (#16390). |
---|
346 | |
---|
347 | * Thu Jul 27 2000 Jeff Johnson <jbj@redhat.com> |
---|
348 | - remote NFS quotas with different blocksize converted incorrectly (#11932). |
---|
349 | |
---|
350 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
351 | - automatic rebuild |
---|
352 | |
---|
353 | * Thu Jun 15 2000 Jeff Johnson <jbj@redhat.com> |
---|
354 | - FHS packaging. |
---|
355 | |
---|
356 | * Wed May 10 2000 Jeff Johnson <jbj@redhat.com> |
---|
357 | - apply patch5 (H.J. Lu) |
---|
358 | |
---|
359 | * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> |
---|
360 | - fix description |
---|
361 | - man pages are compressed |
---|
362 | |
---|
363 | * Tue Jan 18 2000 Preston Brown <pbrown@redhat.com> |
---|
364 | - quota 2.00 series |
---|
365 | - removed unnecessary patches |
---|
366 | |
---|
367 | * Thu Aug 5 1999 Jeff Johnson <jbj@redhat.com> |
---|
368 | - fix man page FUD (#4369). |
---|
369 | |
---|
370 | * Thu May 13 1999 Peter Hanecak <hanecak@megaloman.sk> |
---|
371 | - changes to allow non-root users to build too (Makefile patch, %attr) |
---|
372 | |
---|
373 | * Tue Apr 13 1999 Jeff Johnson <jbj@redhat.com> |
---|
374 | - fix for sparc64 quotas (#2147) |
---|
375 | |
---|
376 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
377 | - auto rebuild in the new build environment (release 5) |
---|
378 | |
---|
379 | * Mon Dec 28 1998 Cristian Gafton <gafton@redhat.com> |
---|
380 | - don't install rpc.rquotad - we will use the one from the knfsd package |
---|
381 | instead |
---|
382 | |
---|
383 | * Thu Dec 17 1998 Jeff Johnson <jbj@redhat.com> |
---|
384 | - merge ultrapenguin 1.1.9 changes. |
---|
385 | |
---|
386 | * Thu May 07 1998 Prospector System <bugs@redhat.com> |
---|
387 | - translations modified for de, fr, tr |
---|
388 | |
---|
389 | * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com> |
---|
390 | - removed patch for mntent |
---|
391 | |
---|
392 | * Fri Mar 27 1998 Jakub Jelinek <jj@ultra.linux.cz> |
---|
393 | - updated to quota 1.66 |
---|
394 | |
---|
395 | * Tue Jan 13 1998 Erik Troan <ewt@redhat.com> |
---|
396 | - builds rquotad |
---|
397 | - installs rpc.rquotad.8 symlink |
---|
398 | |
---|
399 | * Mon Oct 20 1997 Erik Troan <ewt@redhat.com> |
---|
400 | - removed /usr/include/rpcsvc/* from filelist |
---|
401 | - uses a buildroot and %attr |
---|
402 | |
---|
403 | * Thu Jun 19 1997 Erik Troan <ewt@redhat.com> |
---|
404 | - built against glibc |
---|
405 | |
---|
406 | * Tue Mar 25 1997 Erik Troan <ewt@redhat.com> |
---|
407 | - Moved /usr/sbin/quota to /usr/bin/quota |
---|