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