forked from pool/quota
- Update to current git 4.01_git201405011753 * mostly bugfixes and documentation update * Most important reason for this update is to get rid of libnl1 from the Base installation as this is one of the few packages that used to require it, now migrated to libnl3. OBS-URL: https://build.opensuse.org/request/show/235599 OBS-URL: https://build.opensuse.org/package/show/Base:System/quota?expand=0&rev=37
143 lines
4.1 KiB
RPMSpec
143 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package quota
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: quota
|
|
Version: 4.01_git201405011753
|
|
Release: 0
|
|
Summary: Disk Quota System
|
|
License: GPL-2.0 and BSD-3-Clause
|
|
Group: System/Filesystems
|
|
Url: http://sourceforge.net/projects/linuxquota/
|
|
Source0: %{name}-%{version}.tar.xz
|
|
Source1: sysconfig.nfs-quota
|
|
Source2: quotad.service
|
|
Source3: quotad_env.sh
|
|
Patch1: %{name}-4.00-makefile.patch
|
|
Patch2: %{name}-4.01-warnquota.patch
|
|
BuildRequires: automake
|
|
BuildRequires: dbus-1-devel
|
|
BuildRequires: e2fsprogs-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: tcpd-devel
|
|
BuildRequires: pkgconfig(libnl-3.0) >= 3.1
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
|
BuildRequires: pkgconfig(systemd)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The quota subsystem allows a system administrator to set soft and hard
|
|
limits on used space and the number of inodes used for users and
|
|
groups. The kernel must be compiled with disk quota support enabled
|
|
(SUSE kernels have this support).
|
|
|
|
%package nfs
|
|
Summary: Disk Quota System on NFS
|
|
Group: System/Filesystems
|
|
# Require the services needed to be present for quotad service: portmap, nfsserver, network
|
|
Requires: nfs-kernel-server
|
|
Requires: quota = %{version}
|
|
Requires: rpcbind
|
|
Requires: sysconfig
|
|
Requires(post): %fillup_prereq
|
|
Provides: quota:%{_initddir}/quotad
|
|
%{?systemd_requires}
|
|
|
|
%description nfs
|
|
The quotad init script, which provides quota support on NFS mounts.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1
|
|
%patch2
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure \
|
|
--sysconfdir=%{_sysconfdir} \
|
|
--enable-netlink \
|
|
--enable-strip-binaries=no
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install ROOTDIR=%{buildroot}
|
|
|
|
#installing ldap-scripts
|
|
install -m 755 ldap-scripts/*pl %{buildroot}%{_sbindir}/
|
|
install -m 755 ldap-scripts/edquota_editor %{buildroot}%{_sbindir}/
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
cp %{SOURCE2} %{buildroot}%{_unitdir}/quotad.service
|
|
ln -s service %{buildroot}%{_sbindir}/rcquotad
|
|
# systemd unit file sucks so bash script to work around it is provided
|
|
install -d -m 755 %{buildroot}%{_unitdir}/../scripts/
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_unitdir}/../scripts/quotad_env.sh
|
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
cp %{SOURCE1} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.nfs-quota
|
|
|
|
%find_lang %{name}
|
|
|
|
%post nfs
|
|
%{fillup_only -an nfs}
|
|
%service_add_post quotad.service
|
|
|
|
%preun nfs
|
|
%service_del_preun quotad.service
|
|
|
|
%postun nfs
|
|
%service_del_postun quotad.service
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%config %{_sysconfdir}/quotagrpadmins
|
|
%config %{_sysconfdir}/quotatab
|
|
%config %{_sysconfdir}/warnquota.conf
|
|
%doc README.* doc
|
|
%doc %{_mandir}/man?/*
|
|
%{_bindir}/quota
|
|
%{_bindir}/quotasync
|
|
%{_sbindir}/applySystemQuotas.pl
|
|
%{_sbindir}/convertquota
|
|
%{_sbindir}/edquota
|
|
%{_sbindir}/edquota_editor
|
|
%{_sbindir}/quot
|
|
%{_sbindir}/quota_nld
|
|
%{_sbindir}/quotacheck
|
|
%{_sbindir}/quotaoff
|
|
%{_sbindir}/quotaon
|
|
%{_sbindir}/quotastats
|
|
%{_sbindir}/repquota
|
|
%{_sbindir}/setSystemQuotas.pl
|
|
%{_sbindir}/setquota
|
|
%{_sbindir}/setquota-ldap.pl
|
|
%{_sbindir}/warnquota
|
|
%{_sbindir}/xqmstats
|
|
|
|
%files nfs
|
|
%defattr(-,root,root)
|
|
%{_sbindir}/rpc.rquotad
|
|
%{_sbindir}/rcquotad
|
|
%{_unitdir}/quotad.service
|
|
%{_unitdir}/../scripts
|
|
%{_unitdir}/../scripts/quotad_env.sh
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.nfs-quota
|
|
# these files conflicts with glibc rpm
|
|
%exclude %{_includedir}/rpcsvc/*
|
|
|
|
%changelog
|