]>
Commit | Line | Data |
---|---|---|
96d139f5 PG |
1 | # TODO: |
2 | # - add warnquota as cron job | |
a6f50052 | 3 | # |
182a6c53 | 4 | # Conditional build: |
f1d75478 | 5 | %bcond_with kernel64 # build 32-bit userland for 64-bit kernel |
1bd5341a JB |
6 | %bcond_with ldap # LDAP mail address lookups |
7 | %bcond_with netlink # quota messages via netlink | |
182a6c53 | 8 | # |
f1d75478 | 9 | Summary: Quota administration package%{?with_kernel64: - 32-bit userland for 64-bit kernel} |
198d9f02 ER |
10 | Summary(de.UTF-8): Quotenverwaltungspaket |
11 | Summary(es.UTF-8): Paquete de administración cuota | |
12 | Summary(fr.UTF-8): Paquetage de gestion des quotas | |
f1d75478 | 13 | Summary(pl.UTF-8): Pakiet administaracyjny Quota%{?with_kernel64: - 32-bitowe programy dla 64-bitowego jądra} |
198d9f02 ER |
14 | Summary(pt_BR.UTF-8): Pacote de administração quota |
15 | Summary(ru.UTF-8): Утилиты системного администратора для управления дисковыми квотами | |
16 | Summary(tr.UTF-8): Kota denetleme paketi | |
17 | Summary(uk.UTF-8): Утиліти системного адміністратора для керування дисковими квотами | |
18 | Summary(zh_CN.UTF-8): 磁盘使用情况的监控工具 | |
182a6c53 | 19 | Name: quota%{?with_kernel64:64} |
a6f50052 | 20 | Version: 4.02 |
e750162f | 21 | Release: 1 |
d6df3200 | 22 | Epoch: 1 |
863a1e14 | 23 | License: BSD |
24 | Group: Applications/System | |
1bd5341a | 25 | Source0: http://downloads.sourceforge.net/linuxquota/quota-%{version}.tar.gz |
a6f50052 | 26 | # Source0-md5: a8a5df262261e659716ccad2a5d6df0d |
b4d82871 | 27 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/quota-non-english-man-pages.tar.bz2 |
f89e19cd | 28 | # Source1-md5: 05a209bc054366ea190d1c67669f9ca3 |
b4d82871 JR |
29 | Source2: rquotad.init |
30 | Source3: rquotad.sysconfig | |
7e339b70 | 31 | URL: http://sourceforge.net/projects/linuxquota/ |
b4d82871 | 32 | Patch0: quota-defaults.patch |
e750162f | 33 | Patch1: quota-pl.po-update.patch |
b4d82871 | 34 | Patch2: quota-repquota-len-fix.patch |
a6f50052 | 35 | BuildRequires: autoconf >= 2.50 |
42d99a55 | 36 | BuildRequires: automake |
a6f50052 | 37 | %{?with_netlink:BuildRequires: dbus-devel} |
404f6071 | 38 | BuildRequires: e2fsprogs-devel |
805f2811 | 39 | BuildRequires: gettext-tools |
a6f50052 | 40 | %{?with_netlink:BuildRequires: libnl-devel >= 3.2} |
404f6071 | 41 | BuildRequires: libwrap-devel |
1bd5341a | 42 | %{?with_ldap:BuildRequires: openldap-devel} |
b37a1db3 | 43 | BuildRequires: rpmbuild(macros) >= 1.268 |
bd432a34 | 44 | %if %{with kernel64} |
bd432a34 JR |
45 | ExclusiveArch: %{ix86} |
46 | %endif | |
e750162f | 47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ecd6315d | 48 | |
49 | %description | |
863a1e14 | 50 | Quotas allow the system administrator to limit disk usage by a user |
51 | and/or group per filesystem. This package contains the tools which are | |
52 | needed to enable, modify, and update quotas. | |
ecd6315d | 53 | |
f97a4d1a | 54 | %if %{with kernel64} |
f1d75478 | 55 | Warning: This package is for 32-bit systems running on 64-bit kernel! |
f97a4d1a JR |
56 | %endif |
57 | ||
b797909b | 58 | %description -l de.UTF-8 |
863a1e14 | 59 | Quotas gestatten es dem Systemadministrator, die Festplattennutzung |
b797909b JR |
60 | durch einen Anwender und/oder Gruppen pro Dateisystem zu beschränken. |
61 | Es enthält die Tools, die zur Aktivierung, Modifikation und zum | |
863a1e14 | 62 | Aktualisieren von Quoten erforderlich sind." |
ecd6315d | 63 | |
b797909b | 64 | %description -l es.UTF-8 |
5bbb9508 | 65 | Cuotas permite al administrador del sistema limitar el uso de disco |
66 | por un usuario y/o grupo por sistema de archivos. Este paquete | |
67 | contiene las herramientas que son necesarias para activar, modificar y | |
68 | actualizar cuotas. | |
69 | ||
b797909b JR |
70 | %description -l fr.UTF-8 |
71 | Les quotas permettant à l'administrateur système de limiter | |
72 | l'utilisation disque par un utilisateur et/ou un groupe par système de | |
73 | fichiers. Ce paquetage contient les outils nécessaires à la mise en | |
74 | place, la modification et la mise à jour des quotas. | |
ecd6315d | 75 | |
b797909b JR |
76 | %description -l pl.UTF-8 |
77 | Quota pozwala administratorowi systemu na ograniczanie wielkości | |
78 | miejsca na dysku dla użytkownika/grupy. Pakiet ten zawiera narzędzia | |
863a1e14 | 79 | do aktywacji i modyfikacji Quoty. |
ecd6315d | 80 | |
f97a4d1a | 81 | %if %{with kernel64} |
f1d75478 JB |
82 | Uwaga: Ten pakiet jest przeznaczony wyłącznie dla 32-bitowych systemów |
83 | działających na 64-bitowym jądrze! | |
f97a4d1a JR |
84 | %endif |
85 | ||
b797909b | 86 | %description -l pt_BR.UTF-8 |
5bbb9508 | 87 | Quotas permite ao administrador do sistema limitar o uso de disco por |
b797909b JR |
88 | um usuário e/ou grupo por sistema de arquivos. Este pacote contém as |
89 | ferramentas que são necessárias para ativar, modificar e atualizar | |
5bbb9508 | 90 | quotas. |
91 | ||
b797909b JR |
92 | %description -l ru.UTF-8 |
93 | Пакет quota содержит утилиты системного администратора для мониторинга | |
94 | и ограничения использования дискового пространства пользователями и их | |
95 | группами в каждой файловой системе. | |
1050fdfa | 96 | |
b797909b JR |
97 | %description -l tr.UTF-8 |
98 | Kota, sistem yöneticisine, bir kullanıcının ya da kullanıcı grubunun | |
99 | disk kullanımını sınırlama yeteneği verir. Bu paket içerisindeki | |
100 | yazılımlar kota sistemini kullanmak için gereken kontrol | |
101 | yazılımlarıdır. | |
ecd6315d | 102 | |
b797909b JR |
103 | %description -l uk.UTF-8 |
104 | Пакет quota містить утиліти системного адміністратора для моніторингу | |
105 | та обмеження використання дискового простору користувачами та їх | |
106 | групами в кожній файловій системі. | |
1050fdfa | 107 | |
eb079465 JR |
108 | %package rquotad |
109 | Summary: Remote quota server | |
198d9f02 | 110 | Summary(pl.UTF-8): Zdalny serwer quota |
eb079465 | 111 | Group: Networking/Daemons |
404f6071 | 112 | Requires(post,preun): /sbin/chkconfig |
eb079465 | 113 | Requires: portmap >= 4.0 |
e71c0619 | 114 | Requires: rc-scripts >= 0.4.1.5 |
eb079465 JR |
115 | Obsoletes: nfs-utils-rquotad |
116 | ||
117 | %description rquotad | |
118 | rquotad is an rpc(3N) server which returns quotas for a user of a | |
119 | local file system which is mounted by a remote machine over the NFS. | |
120 | The results are used by quota(1) to display user quotas for remote | |
121 | file systems. | |
122 | ||
f97a4d1a | 123 | %if %{with kernel64} |
f1d75478 | 124 | Warning: This package is for 32-bit systems running on 64-bit kernel! |
f97a4d1a JR |
125 | %endif |
126 | ||
b797909b JR |
127 | %description rquotad -l pl.UTF-8 |
128 | rquotad jest serverem rpc(3N), który zwraca quoty użytkownika | |
129 | lokalnego systemu plików, który jest zamountowany przez zdalną maszynę | |
130 | poprzez NFS. Rezultaty są używane przez quota(1), aby wyświetlić quote | |
131 | dla zdalnego systemu plików. | |
eb079465 | 132 | |
f97a4d1a | 133 | %if %{with kernel64} |
f1d75478 JB |
134 | Uwaga: Ten pakiet jest przeznaczony wyłącznie dla 32-bitowych systemów |
135 | działających na 64-bitowym jądrze! | |
f97a4d1a JR |
136 | %endif |
137 | ||
ecd6315d | 138 | %prep |
b4d82871 | 139 | %setup -q -n quota-tools |
863a1e14 | 140 | %patch0 -p1 |
e750162f | 141 | %patch1 -p1 |
43461b94 | 142 | %patch2 -p1 |
ecd6315d | 143 | |
144 | %build | |
63233207 | 145 | %{__aclocal} |
31acc5e6 | 146 | %{__autoconf} |
182a6c53 JR |
147 | |
148 | %if %{with kernel64} | |
149 | CFLAGS="%{rpmcflags} -malign-double" | |
150 | export CFLAGS | |
151 | %endif | |
152 | ||
02a1f43e | 153 | %configure \ |
1bd5341a JB |
154 | %{?with_ldap:--enable-ldapmail} \ |
155 | %{?with_netlink:--enable-netlink} \ | |
02a1f43e | 156 | --enable-rpcsetquota |
fb526b38 | 157 | |
7a0f3ceb JB |
158 | %{__make} \ |
159 | CC="%{__cc}" | |
ecd6315d | 160 | |
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
c759c8a6 | 163 | install -d $RPM_BUILD_ROOT{/sbin,/etc/{rc.d/init.d,sysconfig}} |
ecd6315d | 164 | |
eb061812 | 165 | %{__make} install \ |
11c3fac2 | 166 | ROOTDIR=$RPM_BUILD_ROOT |
ecd6315d | 167 | |
c759c8a6 | 168 | # essential, used by rc-scripts |
a6f50052 | 169 | %{__mv} $RPM_BUILD_ROOT%{_sbindir}/{quotacheck,quotaon,quotaoff,convertquota} \ |
c759c8a6 JB |
170 | $RPM_BUILD_ROOT/sbin |
171 | ||
eb079465 JR |
172 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad |
173 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rquotad | |
174 | ||
175 | echo ".so quotaon.8" > $RPM_BUILD_ROOT%{_mandir}/man8/quotaoff.8 | |
842d1081 | 176 | |
177 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} | |
1bd5341a | 178 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.quota-non-english-man-pages |
a6f50052 JB |
179 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/fr/man8/{rquotad,rpc.rquotad}.8 |
180 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/ja/man8/{rquotad,rpc.rquotad}.8 | |
1bd5341a JB |
181 | |
182 | # interface included in glibc-devel | |
183 | %{__rm} $RPM_BUILD_ROOT{%{_includedir}/rpcsvc/rquota.[hx],%{_mandir}/man3/rquota.3} | |
ecd6315d | 184 | |
11c3fac2 | 185 | %find_lang quota |
ecd6315d | 186 | |
187 | %clean | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
eb079465 JR |
190 | %post rquotad |
191 | /sbin/chkconfig --add rquotad | |
8f5df320 | 192 | %service rquotad restart "RPC rquotad" |
eb079465 JR |
193 | |
194 | %preun rquotad | |
195 | if [ "$1" = "0" ]; then | |
b37a1db3 | 196 | %service rquotad stop |
eb079465 JR |
197 | /sbin/chkconfig --del rquotad |
198 | fi | |
199 | ||
b4d82871 | 200 | %triggerpostun rquotad -- quota-rquotad < 3.14-3 |
8f5df320 JR |
201 | /sbin/chkconfig rquotad reset |
202 | ||
11c3fac2 | 203 | %files -f quota.lang |
ecd6315d | 204 | %defattr(644,root,root,755) |
1bd5341a | 205 | %doc Changelog README.{ldap-support,mailserver} doc/{quotas-1.eps,quotas.ms} quotatab |
72f50f83 ER |
206 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotagrpadmins |
207 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/quotatab | |
208 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/warnquota.conf | |
c759c8a6 JB |
209 | %attr(755,root,root) /sbin/convertquota |
210 | %attr(755,root,root) /sbin/quotacheck | |
211 | %attr(755,root,root) /sbin/quotaoff | |
212 | %attr(755,root,root) /sbin/quotaon | |
213 | %attr(755,root,root) %{_sbindir}/edquota | |
214 | %attr(755,root,root) %{_sbindir}/quotastats | |
215 | %attr(755,root,root) %{_sbindir}/quot | |
216 | %attr(755,root,root) %{_sbindir}/repquota | |
217 | %attr(755,root,root) %{_sbindir}/setquota | |
218 | %attr(755,root,root) %{_sbindir}/warnquota | |
219 | %attr(755,root,root) %{_sbindir}/xqmstats | |
1bd5341a JB |
220 | %attr(755,root,root) %{_bindir}/quota |
221 | %attr(755,root,root) %{_bindir}/quotasync | |
222 | ||
223 | %{_mandir}/man1/quota.1* | |
a6f50052 JB |
224 | %{_mandir}/man1/quotasync.1* |
225 | %{_mandir}/man5/quotagrpadmins.5* | |
226 | %{_mandir}/man5/quotatab.5* | |
227 | %{_mandir}/man5/warnquota.conf.5* | |
1bd5341a JB |
228 | %{_mandir}/man8/convertquota.8* |
229 | %{_mandir}/man8/edquota.8* | |
230 | %{_mandir}/man8/quot.8* | |
231 | %{_mandir}/man8/quota_nld.8* | |
232 | %{_mandir}/man8/quotacheck.8* | |
233 | %{_mandir}/man8/quotaoff.8* | |
234 | %{_mandir}/man8/quotaon.8* | |
235 | %{_mandir}/man8/quotastats.8* | |
236 | %{_mandir}/man8/repquota.8* | |
237 | %{_mandir}/man8/setquota.8* | |
238 | %{_mandir}/man8/warnquota.8* | |
04b8b747 | 239 | %{_mandir}/man8/xqmstats.8* |
842d1081 | 240 | |
241 | %lang(fi) %{_mandir}/fi/man1/* | |
242 | ||
243 | %lang(hu) %{_mandir}/hu/man8/* | |
244 | ||
245 | %lang(ja) %{_mandir}/ja/man1/* | |
eb079465 JR |
246 | %lang(ja) %{_mandir}/ja/man8/quota* |
247 | %lang(ja) %{_mandir}/ja/man8/edquota.8* | |
248 | %lang(ja) %{_mandir}/ja/man8/repquota.8* | |
249 | %lang(ja) %{_mandir}/ja/man8/setquota.8* | |
842d1081 | 250 | |
251 | %lang(pl) %{_mandir}/pl/man1/* | |
252 | %lang(pl) %{_mandir}/pl/man8/* | |
eb079465 JR |
253 | |
254 | %files rquotad | |
255 | %defattr(644,root,root,755) | |
256 | %attr(755,root,root) %{_sbindir}/rpc.rquotad | |
257 | %attr(754,root,root) /etc/rc.d/init.d/rquotad | |
72f50f83 | 258 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad |
1bd5341a | 259 | %{_mandir}/man8/rpc.rquotad.8* |
1bd5341a | 260 | %lang(fr) %{_mandir}/fr/man8/rpc.rquotad.8* |
1bd5341a | 261 | %lang(ja) %{_mandir}/ja/man8/rpc.rquotad.8* |