quota-vl.spec 14 KB

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