Sub-package quota_nld files
This commit is contained in:
parent
8139e22ee6
commit
0a55179977
39
quota.spec
39
quota.spec
@ -11,8 +11,6 @@ URL: http://sourceforge.net/projects/linuxquota/
|
||||
Group: System Environment/Base
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: initscripts >= 6.38 tcp_wrappers
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig initscripts
|
||||
Conflicts: kernel < 2.4
|
||||
BuildRequires: e2fsprogs-devel gettext tcp_wrappers-devel nss-devel
|
||||
BuildRequires: openldap-devel openssl-devel dbus-devel libnl-devel
|
||||
@ -36,6 +34,23 @@ Patch10: quota-3.17-add-gfs2-support.patch
|
||||
The quota package contains system administration tools for monitoring
|
||||
and limiting user and or group disk usage per file system.
|
||||
|
||||
|
||||
%package nld
|
||||
Summary: quota_nld daemon
|
||||
Group: System Environment/Base
|
||||
Requires: quota = %{epoch}:%{version}-%{release}
|
||||
Requires: initscripts
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig initscripts
|
||||
|
||||
%description nld
|
||||
Daemon that listens on netlink socket and processes received quota warnings.
|
||||
Note, that you have to enable the kernel support for sending quota messages
|
||||
over netlink (in Filesystems->Quota menu). The daemon supports forwarding
|
||||
warning messages to the system D-Bus (so that desktop manager can display
|
||||
a dialog) and writing them to the terminal user has last accessed.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for quota
|
||||
Group: System Environment/Base
|
||||
@ -111,10 +126,10 @@ install -p -m644 -D %{SOURCE2} \
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%post
|
||||
%post nld
|
||||
/sbin/chkconfig --add quota_nld
|
||||
|
||||
%preun
|
||||
%preun nld
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/service quota_nld stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del quota_nld
|
||||
@ -127,13 +142,23 @@ rm -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/*
|
||||
%attr(0755,root,root) %{_initrddir}/quota_nld
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/quotagrpadmins
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/quotatab
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/warnquota.conf
|
||||
%attr(0755,root,root) /sbin/*
|
||||
%attr(0755,root,root) %{_bindir}/*
|
||||
%attr(0755,root,root) %{_sbindir}/*
|
||||
%exclude %{_sbindir}/quota_nld
|
||||
%attr(0644,root,root) %{_mandir}/man1/*
|
||||
%attr(0644,root,root) %{_mandir}/man8/*
|
||||
%exclude %{_mandir}/man8/quota_nld.8*
|
||||
|
||||
%files nld
|
||||
%defattr(-,root,root,-)
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/quota_nld
|
||||
%attr(0755,root,root) %{_initrddir}/quota_nld
|
||||
%attr(0755,root,root) %{_sbindir}/quota_nld
|
||||
%attr(0644,root,root) %{_mandir}/man8/quota_nld.8*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
@ -141,9 +166,11 @@ rm -rf %{buildroot}
|
||||
%{_includedir}/rpcsvc/*
|
||||
%attr(0644,root,root) %{_mandir}/man3/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 11 2010 Petr Pisar <ppisar@redhat.com> - 1:3.17-15
|
||||
- Add quota_nld deamon init script (bug #634169)
|
||||
- Sub-package quota_nld files to weak dependecies
|
||||
|
||||
* Wed Oct 06 2010 Petr Pisar <ppisar@redhat.com> - 1:3.17-14
|
||||
- Remove quotactl(2) as it's part of `man-pages' package (bug #640590)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user