2007-01-16 00:34:54 +01:00
|
|
|
#
|
2011-02-18 13:27:09 +01:00
|
|
|
# spec file for package quota
|
2007-01-16 00:34:54 +01:00
|
|
|
#
|
2011-02-18 13:27:09 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:34:54 +01:00
|
|
|
#
|
2008-08-28 02:21:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:34:54 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: quota
|
2011-12-01 21:11:56 +01:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: dbus-1-devel
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libnl-1_1-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: tcpd-devel
|
2011-08-18 19:45:07 +02:00
|
|
|
Version: 4.00
|
2011-12-01 21:11:56 +01:00
|
|
|
Release: 0
|
2007-01-16 00:34:54 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
Group: System/Filesystems
|
2011-12-01 21:11:56 +01:00
|
|
|
License: GPL-2.0
|
2007-09-14 00:48:32 +02:00
|
|
|
Url: http://sourceforge.net/projects/linuxquota/
|
2007-01-16 00:34:54 +01:00
|
|
|
Summary: Disk Quota System
|
2011-08-18 19:45:07 +02:00
|
|
|
Source: %{name}-%{version}-pre1.tar.gz
|
2007-06-21 22:49:59 +02:00
|
|
|
Source1: %{name}-SUSE.tar.bz2
|
2011-08-18 19:45:07 +02:00
|
|
|
Patch1: %{name}-3.17-makefile.patch
|
|
|
|
Patch2: %{name}-3.17-man.patch
|
|
|
|
Patch3: %{name}-3.17-warnquota.patch
|
|
|
|
Patch7: %{name}-3.17-install_nld.patch
|
2007-01-16 00:34:54 +01:00
|
|
|
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-12-07 20:26:57 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marco van Wieringen <mvw@planets.ow.nl>
|
|
|
|
Johan Ekenberg <johan@ekenberg.nu>
|
|
|
|
Jan Kara <jack@suse.cz>
|
|
|
|
|
|
|
|
%package nfs
|
|
|
|
Summary: Disk Quota System on NFS
|
|
|
|
Requires: quota = %version
|
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
# Require the services needed to be present for quotad service: portmap, nfsserver, network
|
|
|
|
Requires: portmap
|
2008-11-11 15:52:19 +01:00
|
|
|
Requires: nfs-kernel-server
|
2007-12-07 20:26:57 +01:00
|
|
|
Requires: sysconfig
|
|
|
|
# Split provides
|
|
|
|
Provides: quota:/etc/init.d/quotad
|
|
|
|
|
|
|
|
%description nfs
|
|
|
|
The quotad init script, which provides quota support on NFS mounts.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:34:54 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marco van Wieringen <mvw@planets.ow.nl>
|
|
|
|
Johan Ekenberg <johan@ekenberg.nu>
|
|
|
|
Jan Kara <jack@suse.cz>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n quota-tools -a 1
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2008-05-06 01:41:45 +02:00
|
|
|
%patch7
|
2007-01-16 00:34:54 +01:00
|
|
|
find -type d -name CVS -exec rm -rf {} \; -prune
|
|
|
|
find -type d | xargs chmod 755
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{suse_update_config -f}
|
|
|
|
aclocal --force
|
|
|
|
autoconf --force
|
2007-03-21 00:43:09 +01:00
|
|
|
%configure \
|
2007-06-21 22:49:59 +02:00
|
|
|
--sysconfdir=%{_sysconfdir} \
|
2008-04-14 22:21:23 +02:00
|
|
|
--enable-netlink
|
2011-10-04 10:45:31 +02:00
|
|
|
make
|
2007-01-16 00:34:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/etc/init.d
|
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/sbin
|
2011-02-17 13:51:37 +01:00
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}/var/adm/fillup-templates
|
2007-01-16 00:34:54 +01:00
|
|
|
make install ROOTDIR=${RPM_BUILD_ROOT}
|
2010-06-23 10:19:52 +02:00
|
|
|
#quotactl.2 manual page was moved from quota to man-pages[bnc#587393]
|
|
|
|
rm ${RPM_BUILD_ROOT}/%{_mandir}/man?/quotactl.*
|
2007-01-16 00:34:54 +01:00
|
|
|
mv ${RPM_BUILD_ROOT}%{_sbindir}/{quotacheck,quotaon,quotaoff} ${RPM_BUILD_ROOT}/sbin/
|
2007-07-18 22:25:41 +02:00
|
|
|
#installing ldap-scripts
|
|
|
|
install -m 755 ldap-scripts/*pl ${RPM_BUILD_ROOT}/usr/sbin/
|
|
|
|
install -m 755 ldap-scripts/edquota_editor ${RPM_BUILD_ROOT}/usr/sbin/
|
2007-01-16 00:34:54 +01:00
|
|
|
#ln -sf ../../sbin/quotacheck ${RPM_BUILD_ROOT}/usr/sbin/quotacheck
|
|
|
|
cp SUSE/{quotad,boot.quota} ${RPM_BUILD_ROOT}/etc/init.d
|
|
|
|
#ln -s ../../etc/init.d/quota ${RPM_BUILD_ROOT}/usr/sbin/rcquota
|
|
|
|
ln -s ../../etc/init.d/quotad ${RPM_BUILD_ROOT}/usr/sbin/rcquotad
|
|
|
|
%find_lang %{name}
|
2011-02-17 13:51:37 +01:00
|
|
|
cp SUSE/sysconfig.nfs-quota $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.nfs-quota
|
2007-01-16 00:34:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
2011-02-17 13:51:37 +01:00
|
|
|
%{fillup_and_insserv -f -y boot.quota}
|
2007-12-07 20:26:57 +01:00
|
|
|
|
|
|
|
%post nfs
|
2011-02-18 11:39:43 +01:00
|
|
|
%{fillup_only -an nfs}
|
2007-06-21 22:49:59 +02:00
|
|
|
|
|
|
|
%preun
|
2007-12-07 20:26:57 +01:00
|
|
|
%stop_on_removal boot.quota
|
|
|
|
|
|
|
|
%preun nfs
|
2007-06-21 22:49:59 +02:00
|
|
|
%stop_on_removal quotad
|
2007-01-16 00:34:54 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
2007-12-07 20:26:57 +01:00
|
|
|
%postun nfs
|
|
|
|
%{insserv_cleanup}
|
|
|
|
|
2007-01-16 00:34:54 +01:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/quotagrpadmins
|
|
|
|
%config /etc/init.d/boot.quota
|
|
|
|
%config /etc/quotatab
|
|
|
|
%config /etc/warnquota.conf
|
|
|
|
%doc SUSE/README.SUSE README.* doc
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
/sbin/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sbindir}/*
|
2007-12-07 20:26:57 +01:00
|
|
|
%exclude %{_sbindir}/rpc.rquotad
|
|
|
|
%exclude %{_sbindir}/rcquotad
|
|
|
|
|
|
|
|
%files nfs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/init.d/quotad
|
|
|
|
%doc SUSE/README.quotad.SUSE
|
|
|
|
%{_sbindir}/rpc.rquotad
|
|
|
|
%{_sbindir}/rcquotad
|
2011-02-17 13:51:37 +01:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.nfs-quota
|
2008-03-14 17:56:32 +01:00
|
|
|
# these files conflicts with glibc rpm
|
|
|
|
%exclude /usr/include/rpcsvc/*
|
2007-12-07 20:26:57 +01:00
|
|
|
|
2007-03-21 00:43:09 +01:00
|
|
|
%changelog
|