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