quota-vl.spec 13 KB

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