quota-vl.spec 12 KB

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