|
@@ -1,21 +1,36 @@
|
|
|
Name: quota
|
|
|
Summary: System administration tools for monitoring users' disk usage.
|
|
|
Summary(ja): ユーザのディスク使用量をモニタするシステム管理ツール
|
|
|
-Version: 3.15
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 4.00
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: BSD
|
|
|
Group: System Environment/Base
|
|
|
URL: http://sourceforge.net/projects/linuxquota/
|
|
|
#Source0: http://downloads.sourceforge.net/linuxquota/quota-%{version}.tar.gz
|
|
|
Source0: quota-%{version}.tar.gz
|
|
|
-Patch0: quota-3.06-warnquota.patch
|
|
|
-Patch1: quota-3.06-no-stripping.patch
|
|
|
-Patch2: quota-3.06-man-page.patch
|
|
|
+Source1: quota_nld.init
|
|
|
+Source2: quota_nld.sysconfig
|
|
|
+Patch0: quota-4.00-warnquota.patch
|
|
|
+Patch1: quota-3.06-man-page.patch
|
|
|
+Patch2: quota-3.06-pie.patch
|
|
|
+Patch3: quota-3.13-wrong-ports.patch
|
|
|
+# Bug #667757, submitted to upstream (SF#3152423)
|
|
|
+Patch4: quota-4.00_pre1-Make-RPC-block-factor-dynamic.patch
|
|
|
+# Bug #668691, submitted to upstream (SF#3152423)
|
|
|
+Patch5: quota-4.00_pre1-Check-set-limits-fit-into-the-range-supported-by-RPC.patch
|
|
|
+# Bug #634137, submitted to upstream (SF#3171791)
|
|
|
+Patch6: quota-4.00_pre1-Store-PID-of-quota_nld.patch
|
|
|
+# In upstream after 4.00 (SF#3393151), bug #731622
|
|
|
+Patch7: quota-4.00-Do-not-report-missing-utmp-record-to-syslog.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
Requires: kernel >= 2.4, initscripts >= 6.38
|
|
|
+Requires(post): chkconfig
|
|
|
+Requires(preun): chkconfig
|
|
|
Conflicts: nfs-utils < 1.0.1
|
|
|
-BuildPreReq: e2fsprogs-devel, gettext
|
|
|
+BuildRequires: e2fsprogs-devel, gettext
|
|
|
+BuildRequires: tcp_wrappers, nss-devel
|
|
|
+BuildRequires: openldap-devel, openssl-devel, dbus-devel, libnl-devel
|
|
|
|
|
|
|
|
|
%description
|
|
@@ -32,14 +47,26 @@ quota パッケージには,ユーザやグループのディスク使用量
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n quota-tools
|
|
|
-#%patch0 -p1
|
|
|
+%patch0 -p1
|
|
|
%patch1 -p1
|
|
|
+%ifnarch ppc ppc64
|
|
|
%patch2 -p1
|
|
|
+%endif
|
|
|
+%patch3 -p1
|
|
|
+%patch4 -p1 -b .rpc_block_factor_dynamic
|
|
|
+%patch5 -p1 -b .check_set_limits_rpc
|
|
|
+%patch6 -p1 -b .store_pid
|
|
|
+%patch7 -p1 -b .suppress_missing_utmp
|
|
|
|
|
|
|
|
|
%build
|
|
|
%configure \
|
|
|
- --with-ext2direct=no --enable-rootsbin
|
|
|
+ --enable-ext2direct=yes \
|
|
|
+ --enable-ldapmail=yes \
|
|
|
+ --enable-netlink=yes \
|
|
|
+ --enable-rootsbin=yes \
|
|
|
+ --enable-rpcsetquota=yes \
|
|
|
+ --enable-strip-binaries=no
|
|
|
make
|
|
|
|
|
|
|
|
@@ -49,11 +76,9 @@ mkdir -p %{buildroot}/sbin
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
-mkdir -p %{buildroot}%{_mandir}/{man1,man2,man3,man8}
|
|
|
-
|
|
|
-
|
|
|
-make install ROOTDIR=%{buildroot}
|
|
|
+mkdir -p %{buildroot}%{_mandir}/{man1,man3,man8}
|
|
|
|
|
|
+make install INSTALL='install -p' ROOTDIR=%{buildroot}
|
|
|
|
|
|
install -m 644 warnquota.conf %{buildroot}%{_sysconfdir}
|
|
|
|
|
@@ -63,7 +88,15 @@ install -m 644 warnquota.conf %{buildroot}%{_sysconfdir}
|
|
|
rm -f %{buildroot}%{_sbindir}/quot
|
|
|
rm -f %{buildroot}%{_sbindir}/xqmstats
|
|
|
rm -f %{buildroot}%{_mandir}/man8/quot.*
|
|
|
+rm -f %{buildroot}%{_mandir}/man8/xqmstats.*
|
|
|
+ln -s quotaon.8.gz \
|
|
|
+ %{buildroot}%{_mandir}/man8/quotaoff.8
|
|
|
+ln -s rquotad.8.gz \
|
|
|
+ %{buildroot}%{_mandir}/man8/rpc.rquotad.8
|
|
|
|
|
|
+install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/quota_nld
|
|
|
+install -p -m644 -D %{SOURCE2} \
|
|
|
+ $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/quota_nld
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
@@ -71,22 +104,39 @@ rm -f %{buildroot}%{_mandir}/man8/quot.*
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
+%post
|
|
|
+/sbin/chkconfig --add quota_nld
|
|
|
+
|
|
|
+%preun
|
|
|
+if [ $1 = 0 ] ; then
|
|
|
+ /sbin/service quota_nld stop >/dev/null 2>&1
|
|
|
+ /sbin/chkconfig --del quota_nld
|
|
|
+fi
|
|
|
+
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-,root,root)
|
|
|
%doc Changelog doc/ README*
|
|
|
%config(noreplace) %{_sysconfdir}/warnquota.conf
|
|
|
+%config(noreplace) %{_sysconfdir}/quotagrpadmins
|
|
|
+%config(noreplace) %{_sysconfdir}/quotatab
|
|
|
+%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/quota_nld
|
|
|
+%attr(0755,root,root) %{_initrddir}/quota_nld
|
|
|
%attr(0755,root,root) /sbin/*
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
%attr(0755,root,root) %{_sbindir}/*
|
|
|
%{_includedir}/rpcsvc/*
|
|
|
%attr(0644,root,root) %{_mandir}/man1/*
|
|
|
-%attr(0644,root,root) %{_mandir}/man2/*
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Mar 12 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 4.00-1
|
|
|
+- new upstram release
|
|
|
+- add BR: tcp_wrappers, nss-devel, openldap-devel,
|
|
|
+ openssl-devel, dbus-devel, libnl-devel
|
|
|
+
|
|
|
* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 3.15-2
|
|
|
- rebuilt with rpm-4.8.1-3
|
|
|
|