]>
Commit | Line | Data |
---|---|---|
622053c4 ER |
1 | # TODO |
2 | # - %install is not re-entrant | |
925e8edc | 3 | # |
5b2fc2c7 | 4 | # m68k and mips are the only not supported archs |
9f1aa96a | 5 | # |
9f81736b | 6 | # Conditional build: |
6730cb3d JB |
7 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
8 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 9 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 10 | %bcond_with xalan # use the xalan xslt processor |
6cdf8db5 | 11 | %bcond_with legacy # build legacy 1.x utils |
04c2a702 | 12 | |
22ee1f7a | 13 | %define vproc_version 0.01 |
04c2a702 | 14 | |
8fe55c88 JR |
15 | %ifarch ppc |
16 | # pdflatex: refman: Invalid argument | |
17 | %undefine with_doc | |
18 | %endif | |
b681e6a9 | 19 | |
a343f348 ER |
20 | # reqdb_pkg should match value from current rpm package in distro |
21 | %define reqdb_pkg db5.3 | |
7966c7cb | 22 | %define snap pre3034 |
880a1dbf | 23 | %define rel 3 |
c4036d6e | 24 | Summary: Linux virtual server utilities |
33f71e01 | 25 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 26 | Name: util-vserver |
bc2ffe55 | 27 | Version: 0.30.216 |
2c41f437 | 28 | Release: 1.%{snap}.%{rel} |
c4036d6e | 29 | License: GPL |
fc8ba798 | 30 | Group: Applications/System |
385aa86b | 31 | Source0: http://people.linux-vserver.org/~dhozac/t/uv-testing/%{name}-%{version}-%{snap}.tar.bz2 |
7966c7cb | 32 | # Source0-md5: c0f708814ff48532802a5fb04514a86c |
536c7360 | 33 | Source1: vprocunhide.init |
f16cd315 | 34 | Source2: vservers.init |
536c7360 | 35 | Source3: vservers-legacy.init |
9f81736b | 36 | Source4: rebootmgr.init |
f16cd315 | 37 | Source5: vservers.sysconfig |
9f81736b | 38 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
39 | Source7: vrootdevices.init |
40 | Source8: vrootdevices.sysconfig | |
19844202 | 41 | # A bit of documentation explaining package management |
47f9cd5f | 42 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 43 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 44 | Source10: %{name}-initpost.sh |
22ee1f7a | 45 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{vproc_version}.tar.bz2 |
e128cb8a | 46 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 |
4961db11 | 47 | Source12: %{name}-vhashify.cron |
468087c5 | 48 | Source13: ftp://ftp.pld-linux.org/dists/ac/PLD-2.0-Ac-GPG-key.asc |
49 | # Source13-md5: 8e7574d1de2fa95c2c54cd2ee03364c1 | |
50 | Source14: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
51 | # Source14-md5: 08b29584dd349aac9caa7610131a0a88 | |
49e22b19 | 52 | Source15: %{name}.init |
7c944e34 | 53 | Source16: %{name}.tmpfiles |
01331769 | 54 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 55 | Patch1: %{name}-pld.patch |
54c149ac | 56 | Patch2: %{name}-centos.patch |
1e07a54b | 57 | Patch3: %{name}-tld.patch |
01331769 | 58 | Patch4: %{name}-m4-diet.patch |
1e14ade8 | 59 | Patch5: %{name}-yum-verb-nogpg.patch |
f16cd315 JR |
60 | Patch6: %{name}-build-umask.patch |
61 | Patch7: %{name}-utmpx.patch | |
33beda22 | 62 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 63 | Patch9: %{name}-dev.patch |
f5385f4a | 64 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 65 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 66 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 67 | Patch13: %{name}-tmpdir.patch |
e7ac6dd1 ER |
68 | Patch14: %{name}-rpmpath.patch |
69 | Patch15: %{name}-interfaces-ignore-cvs-dir.patch | |
761afb0b | 70 | Patch16: %{name}-personalitymachine.patch |
0edd7eb1 | 71 | Patch17: %{name}-backupfiles.patch |
bc2ffe55 | 72 | Patch18: %{name}-vprocunhide-net.patch |
bac1963d | 73 | # http://glen.alkohol.ee/pld/util-vserver-dbrebuild-internalize4.patch |
bc2ffe55 | 74 | Patch19: %{name}-dbrebuild-internalize4.patch |
bc2ffe55 | 75 | Patch21: %{name}-bash-wrapper.patch |
94a3845f | 76 | Patch22: %{name}-pivot-root-ugly-hack.patch |
21a3b8ba | 77 | Patch24: vunify-more-exclude.patch |
27dc70bd | 78 | Patch25: stat.patch |
f6c359be | 79 | Patch26: %{name}-am.patch |
696acb34 | 80 | Patch27: %{name}-rpm5.patch |
7352b984 | 81 | Patch28: diet-ccache.patch |
f9347a64 | 82 | URL: http://savannah.nongnu.org/projects/util-vserver/ |
59ac117c | 83 | BuildRequires: autoconf |
c21e4fcc | 84 | BuildRequires: automake >= 1.9 |
6f3fd704 | 85 | BuildRequires: beecrypt-devel |
925e8edc | 86 | BuildRequires: ctags |
63fbe331 | 87 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.32-16} |
6730cb3d | 88 | BuildRequires: e2fsprogs-devel |
6f3fd704 | 89 | BuildRequires: libstdc++-devel |
c740301d | 90 | BuildRequires: libtool >= 1.5.14 |
08d35c12 | 91 | BuildRequires: pkgconfig |
21a3b8ba | 92 | BuildRequires: python-devel |
7890624b | 93 | BuildRequires: python-modules |
94 | BuildRequires: rpm-pythonprov | |
d6ac0c8c | 95 | BuildRequires: rpmbuild(macros) >= 1.647 |
08d35c12 | 96 | BuildRequires: sed >= 4.0 |
54d8402e | 97 | %if %{with doc} |
c27aa395 | 98 | BuildRequires: doxygen >= 1:1.7.3 |
3aaf9ac9 | 99 | BuildRequires: graphviz |
e8b52e06 | 100 | BuildRequires: libxslt-progs |
11eacd16 | 101 | BuildRequires: python-devel |
a1ab5811 | 102 | %if "%{pld_release}" != "th" |
6d7f9a61 | 103 | BuildRequires: tetex-fonts-jknappen |
104 | BuildRequires: tetex-format-pdflatex | |
105 | BuildRequires: tetex-makeindex | |
106 | BuildRequires: tetex-metafont | |
107 | %else | |
888b8665 | 108 | BuildRequires: texlive-fonts-rsfs |
bc2ffe55 JR |
109 | BuildRequires: texlive-fonts-type1-urw |
110 | BuildRequires: texlive-format-pdflatex | |
c27aa395 | 111 | BuildRequires: texlive-latex-extend |
8d5e0559 | 112 | BuildRequires: texlive-latex-ucs |
bc2ffe55 JR |
113 | BuildRequires: texlive-makeindex |
114 | BuildRequires: texlive-pdftex | |
115 | BuildRequires: texlive-xetex | |
6d7f9a61 | 116 | %endif |
9f81736b | 117 | %{?with_xalan:BuildRequires: xalan-j} |
54d8402e | 118 | %endif |
2d6d0c17 | 119 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 120 | Requires: %{name}-lib = %{version}-%{release} |
2bef02ad | 121 | Requires: coreutils |
1e14ade8 | 122 | Requires: diffutils |
996a9238 | 123 | Requires: issue |
7ccbf05b | 124 | Requires: make |
fc5c9ef4 | 125 | Requires: mktemp >= 1.5-18 |
cf832f1a | 126 | Requires: rc-scripts >= 0.4.3.4 |
07c48fe5 | 127 | Requires: tar |
fa6b08f2 | 128 | Requires: uname(release) >= 2.6.27 |
a1ab5811 | 129 | Requires: util-linux >= 2.13 |
33ef531a | 130 | Requires: vserver-distro-pld = %{version}-%{release} |
a343f348 | 131 | Suggests: %{reqdb_pkg}-utils |
4f782c13 | 132 | Obsoletes: util-vserver-build |
bf0ccb73 | 133 | Obsoletes: util-vserver-core |
82a15eaa | 134 | Obsoletes: util-vserver-init |
11eacd16 | 135 | Conflicts: poldek < 0.18.8-10 |
c4036d6e AM |
136 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
137 | ||
6492e391 AM |
138 | %if %{with dietlibc} |
139 | # binaries created with this option have broken segments when using dietlibc | |
140 | %define filterout_ld -Wl,-z,relro | |
141 | %endif | |
142 | ||
c993b99d ER |
143 | # for adapter |
144 | %define _usrbin /usr/bin | |
f996608b ER |
145 | %define _usrsbin /usr/sbin |
146 | %define _usrlib /usr/lib | |
c993b99d | 147 | |
c4036d6e AM |
148 | %description |
149 | This package provides the components and a framework to setup virtual | |
f9347a64 | 150 | servers. A virtual server runs inside a Linux server. It is |
c4036d6e AM |
151 | nevertheless highly independent. As such, you can run various services |
152 | with normal configuration. The various vservers can't interact with | |
153 | each other and can't interact with services in the main server. | |
154 | ||
155 | This requires a special kernel supporting the new new_s_context and | |
156 | set_ipv4root system call. | |
157 | ||
fc8ba798 | 158 | This package contains utilities which are required to communicate with |
82a15eaa | 159 | the Linux-Vserver enabled kernel, utilities which assist in building |
11eacd16 AM |
160 | Vservers and SysV initscripts which start and stop Vservers and |
161 | related tools. | |
fc8ba798 | 162 | |
aa0485fb JR |
163 | %description -l pl.UTF-8 |
164 | Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych | |
165 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
166 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
167 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
168 | w interakcję z innymi ani z usługami na głównym serwerze. | |
f9347a64 | 169 | |
aa0485fb | 170 | Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe |
f9347a64 JB |
171 | new_s_context i set_ipv4root. |
172 | ||
aa0485fb | 173 | Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z |
82a15eaa JR |
174 | włączonym mechanizmem Linux-Vserver, narzędzia pomagające przy |
175 | budowaniu Vserwerów i skrypty inicjalizujące SysV uruchamiające i | |
176 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
fc8ba798 | 177 | |
d76eaeb7 JB |
178 | %package lib |
179 | Summary: Dynamic libraries for util-vserver | |
180 | Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver | |
181 | Group: Libraries | |
182 | ||
183 | %description lib | |
184 | util-vserver provides the components and a framework to setup virtual | |
185 | servers. A virtual server runs inside a linux server. It is | |
186 | nevertheless highly independent. As such, you can run various services | |
187 | pith normal configuration. The various vservers can't interact with | |
188 | each other and can't interact with services in the main server. | |
189 | ||
190 | This package contains the shared libraries needed by all other | |
191 | 'util-vserver' subpackages. | |
192 | ||
193 | %description lib -l pl.UTF-8 | |
194 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
195 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
196 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
197 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
198 | w interakcję z innymi ani z usługami na głównym serwerze. | |
199 | ||
200 | Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie | |
201 | podpakiety util-vserver. | |
202 | ||
421cacb8 | 203 | %package devel |
b2c6ab86 | 204 | Summary: Development files for Linux vserver libraries |
33f71e01 | 205 | Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera |
28a38c7c | 206 | Group: Development/Libraries |
33ef531a | 207 | Requires: %{name}-lib = %{version}-%{release} |
421cacb8 AM |
208 | |
209 | %description devel | |
b2c6ab86 JB |
210 | This package contains the development files necessary for developing |
211 | programs which use vserver library. | |
421cacb8 | 212 | |
aa0485fb | 213 | %description devel -l pl.UTF-8 |
b2c6ab86 | 214 | Ten pakiet zawiera pliki programistyczne konieczne do rozwijania |
aa0485fb | 215 | programów używających biblioteki vserver. |
421cacb8 AM |
216 | |
217 | %package static | |
28a38c7c | 218 | Summary: Static vserver library |
33f71e01 | 219 | Summary(pl.UTF-8): Biblioteka statyczna vservera |
28a38c7c | 220 | Group: Development/Libraries |
33ef531a | 221 | Requires: %{name}-devel = %{version}-%{release} |
421cacb8 AM |
222 | |
223 | %description static | |
b2c6ab86 | 224 | This package contains the static version of vserver library. |
421cacb8 | 225 | |
aa0485fb JR |
226 | %description static -l pl.UTF-8 |
227 | Ten pakiet zawiera statyczną wersję biblioteki vservera. | |
421cacb8 | 228 | |
9f81736b JR |
229 | %package legacy |
230 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 231 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 232 | Group: Applications/System |
7a93d1d4 | 233 | Requires(post,preun): /sbin/chkconfig |
33ef531a | 234 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 235 | Requires: rc-scripts |
9f81736b JR |
236 | |
237 | %description legacy | |
238 | util-vserver provides the components and a framework to setup virtual | |
239 | servers. A virtual server runs inside a linux server. It is | |
240 | nevertheless highly independent. As such, you can run various services | |
241 | with normal configuration. The various vservers can't interact with | |
242 | each other and can't interact with services in the main server. | |
243 | ||
7a93d1d4 | 244 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
245 | having an old-style configuration. |
246 | ||
aa0485fb JR |
247 | %description legacy -l pl.UTF-8 |
248 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
249 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
250 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
251 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
252 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 253 | |
aa0485fb JR |
254 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
255 | konfigurację w starym stylu. | |
7a93d1d4 | 256 | |
11eacd16 AM |
257 | %package -n python-util-vserver |
258 | Summary: Python interface to libutil-vserver library | |
259 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki libutil-vserver | |
260 | License: LGPL v2.1+ | |
261 | Group: Libraries/Python | |
262 | ||
263 | %description -n python-util-vserver | |
264 | Python interface to libutil-vserver library. | |
265 | ||
266 | %description -n python-util-vserver -l pl.UTF-8 | |
267 | Pythonowy interfejs do biblioteki libutil-vserver. | |
268 | ||
a94c4947 | 269 | %package -n vserver-distro-alpine |
270 | Summary: VServer build template for Alpine Linux | |
271 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji Alpine Linux | |
d765f9b1 | 272 | Group: Applications/System |
33ef531a | 273 | Requires: %{name} = %{version}-%{release} |
d765f9b1 | 274 | |
a94c4947 | 275 | %description -n vserver-distro-alpine |
276 | VServer build template for Alpine Linux. | |
d765f9b1 | 277 | |
a94c4947 | 278 | %description -n vserver-distro-alpine -l pl.UTF-8 |
279 | Szablon budowania VServerów dla dystrybucji Alpine Linux. | |
d765f9b1 | 280 | |
d76eaeb7 | 281 | %package -n vserver-distro-centos |
d765f9b1 JB |
282 | Summary: VServer build template for CentOS |
283 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 | 284 | Group: Applications/System |
33ef531a ER |
285 | Requires: %{name} = %{version}-%{release} |
286 | Requires: vserver-distro-redhat = %{version}-%{release} | |
d76eaeb7 JB |
287 | Requires: yum |
288 | ||
289 | %description -n vserver-distro-centos | |
d765f9b1 | 290 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
291 | |
292 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 293 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 | 294 | |
a94c4947 | 295 | %package -n vserver-distro-debian |
076e0301 | 296 | Summary: VServer build templates for Debian and Ubuntu |
297 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu | |
a94c4947 | 298 | Group: Applications/System |
33ef531a | 299 | Requires: %{name} = %{version}-%{release} |
076e0301 | 300 | Requires: debootstrap |
a94c4947 | 301 | Requires: dpkg |
e0b99d3d | 302 | Provides: vserver-distro-ubuntu |
076e0301 | 303 | Obsoletes: vserver-distro-ubuntu |
a94c4947 | 304 | |
305 | %description -n vserver-distro-debian | |
e0b99d3d | 306 | VServer build templates for Debian and Ubuntu. |
a94c4947 | 307 | |
308 | %description -n vserver-distro-debian -l pl.UTF-8 | |
e0b99d3d | 309 | Szablony do tworzenia VServerów dla dystrybucji Debian i Ubuntu. |
a94c4947 | 310 | |
d76eaeb7 | 311 | %package -n vserver-distro-fedora |
d765f9b1 JB |
312 | Summary: VServer build templates for Fedora |
313 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 | 314 | Group: Applications/System |
33ef531a | 315 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
316 | Requires: binutils |
317 | Requires: e2fsprogs | |
318 | Requires: rpm | |
33ef531a | 319 | Requires: vserver-distro-redhat = %{version}-%{release} |
622053c4 | 320 | Requires: wget |
29afce9a | 321 | Requires: yum |
d76eaeb7 JB |
322 | |
323 | %description -n vserver-distro-fedora | |
d765f9b1 | 324 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
325 | |
326 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
327 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
328 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
329 | |
330 | %package -n vserver-distro-gentoo | |
331 | Summary: VServer build template for Gentoo | |
d765f9b1 | 332 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 | 333 | Group: Applications/System |
33ef531a | 334 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
335 | |
336 | %description -n vserver-distro-gentoo | |
337 | VServer build template for Gentoo. | |
338 | ||
339 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 340 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 | 341 | |
e84dd6c9 JR |
342 | %package -n vserver-distro-pld |
343 | Summary: VServer build templates for PLD Linux | |
344 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji PLD Linux | |
345 | Group: Applications/System | |
33ef531a | 346 | Requires: %{name} = %{version}-%{release} |
e84dd6c9 JR |
347 | Requires: /etc/pld-release |
348 | Requires: poldek >= 0.30 | |
349 | ||
350 | %description -n vserver-distro-pld | |
351 | VServer build templates for PLD Linux. | |
352 | ||
353 | %description -n vserver-distro-pld -l pl.UTF-8 | |
354 | Szablony do tworzenia VServerów dla dystrybucji PLD Linux. | |
355 | ||
d76eaeb7 JB |
356 | %package -n vserver-distro-redhat |
357 | Summary: VServer build template for Red Hat Linux 9 | |
358 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
359 | Group: Applications/System | |
33ef531a | 360 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
361 | Requires: binutils |
362 | Requires: e2fsprogs | |
363 | Requires: rpm | |
d76eaeb7 JB |
364 | Requires: wget |
365 | ||
366 | %description -n vserver-distro-redhat | |
367 | VServer build template for RedHat Linux 9. | |
368 | ||
369 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
370 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
371 | ||
372 | %package -n vserver-distro-suse | |
373 | Summary: VServer build template for SuSE 9.1 | |
374 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
375 | Group: Applications/System | |
33ef531a | 376 | Requires: %{name} = %{version}-%{release} |
d76eaeb7 JB |
377 | Requires: binutils |
378 | Requires: e2fsprogs | |
379 | Requires: rpm | |
d76eaeb7 JB |
380 | Requires: wget |
381 | ||
382 | %description -n vserver-distro-suse | |
383 | VServer build template for SuSE Linux 9.1. | |
384 | ||
385 | %description -n vserver-distro-suse -l pl.UTF-8 | |
386 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
387 | ||
217d218f AM |
388 | %package -n vserver-distro-scientificlinux |
389 | Summary: VServer build template for Scientific Linux | |
390 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Scientific Linux | |
391 | Group: Applications/System | |
392 | Requires: %{name} = %{version}-%{release} | |
393 | Requires: binutils | |
394 | Requires: e2fsprogs | |
395 | Requires: rpm | |
396 | Requires: wget | |
397 | Requires: yum | |
398 | ||
399 | %description -n vserver-distro-scientificlinux | |
400 | VServer build template for Scientific Linux. | |
401 | ||
402 | %description -n vserver-distro-scientificlinux -l pl.UTF-8 | |
403 | Szablon do tworzenia VServerów dla dystrybucji Scientific Linux. | |
404 | ||
1e07a54b | 405 | %package -n vserver-distro-tld |
406 | Summary: VServer build templates for Titanium Linux Distribution | |
407 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Titanium Linux | |
408 | Group: Applications/System | |
409 | Requires: %{name} = %{version}-%{release} | |
1e07a54b | 410 | Requires: poldek >= 0.30 |
411 | ||
412 | %description -n vserver-distro-tld | |
413 | VServer build templates for Titanium Linux Distribution. | |
414 | ||
415 | %description -n vserver-distro-tld -l pl.UTF-8 | |
416 | Szablony do tworzenia VServerów dla dystrybucji Titanium Linux. | |
417 | ||
c4036d6e | 418 | %prep |
2f75efb5 | 419 | %setup -q -n %{name}-%{version}-%{snap} -a11 |
b7fb7f75 | 420 | %patch0 -p1 |
9f81736b | 421 | %patch1 -p1 |
54c149ac | 422 | %patch2 -p1 |
1e07a54b | 423 | %patch3 -p1 |
33754dff | 424 | %patch4 -p1 |
1e14ade8 | 425 | %patch5 -p1 |
f16cd315 | 426 | %patch6 -p1 |
1cfbc735 | 427 | %patch7 -p1 |
33beda22 | 428 | %patch8 -p1 |
616759c3 | 429 | %patch9 -p1 |
204e5db3 | 430 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 431 | %patch11 -p1 |
b3024b38 | 432 | %patch12 -p1 |
6d43167c | 433 | %patch13 -p1 |
a41118d0 | 434 | %patch14 -p1 |
e7ac6dd1 | 435 | %patch15 -p1 |
761afb0b | 436 | %patch16 -p1 |
0edd7eb1 | 437 | %patch17 -p1 |
4bfa49a8 | 438 | %patch18 -p1 |
4b9dfd9e | 439 | %patch19 -p1 |
999bf1a1 | 440 | %patch21 -p1 |
94a3845f | 441 | %patch22 -p1 |
21a3b8ba | 442 | %patch24 -p1 |
27dc70bd | 443 | %patch25 -p1 |
f6c359be | 444 | %patch26 -p1 |
696acb34 | 445 | %patch27 -p1 |
7352b984 | 446 | %patch28 -p1 |
c4036d6e | 447 | |
7352b984 | 448 | cp -p %{SOURCE9} package-management.txt |
47f9cd5f | 449 | |
c4036d6e | 450 | %build |
ac7f10fe AM |
451 | unset LD_SYMBOLIC_FUNCTIONS || : |
452 | ||
b6503b78 | 453 | %if %{with dietlibc} |
fcf60dd0 | 454 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 455 | %endif |
1e14ade8 | 456 | %{__libtoolize} |
84567ffc JR |
457 | %{__aclocal} -I m4 |
458 | %{__automake} | |
31c082fa | 459 | %{__autoconf} |
9f81736b JR |
460 | %configure \ |
461 | --with-initrddir=/etc/rc.d/init.d \ | |
462 | --enable-release \ | |
6f41121b | 463 | --enable-apis=NOLEGACY \ |
893c90d5 | 464 | --with-initscripts=sysv \ |
465 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
7890624b | 466 | FSCK=/sbin/fsck \ |
467 | IONICE=%{_usrbin}/ionice \ | |
2151e92d | 468 | IP=/sbin/ip \ |
c993b99d | 469 | IPTABLES=%{_usrsbin}/iptables \ |
7890624b | 470 | MKTEMP=/bin/mktemp \ |
e8b52e06 | 471 | MODPROBE=/sbin/modprobe \ |
7890624b | 472 | MOUNT=/bin/mount \ |
e8b52e06 | 473 | NAMEIF=/sbin/nameif \ |
7890624b | 474 | PS=/bin/ps \ |
475 | RESTORE=/sbin/restore \ | |
e8b52e06 | 476 | RMMOD=/sbin/rmmod \ |
7890624b | 477 | RSYNC=%{_usrbin}/rsync \ |
478 | STRACE=%{_usrbin}/strace \ | |
479 | UMOUNT=/bin/umount \ | |
e8b52e06 | 480 | VCONFIG=/sbin/vconfig \ |
c993b99d | 481 | WGET=%{_usrbin}/wget \ |
7890624b | 482 | # end |
c4036d6e | 483 | |
9f81736b | 484 | %{__make} all |
6cdf8db5 | 485 | |
9a45d9d7 | 486 | %{?with_doc:%{__make} doc} |
c4036d6e | 487 | |
22ee1f7a | 488 | %{__make} -C vproc-%{vproc_version} \ |
e128cb8a ER |
489 | CC="%{__cc}" \ |
490 | CFLAGS="%{rpmcflags}" | |
491 | ||
c4036d6e AM |
492 | %install |
493 | rm -rf $RPM_BUILD_ROOT | |
49e22b19 | 494 | install -d $RPM_BUILD_ROOT{/vservers/.pkg,/etc/{sysconfig,rc.d/init.d,cron.d}} \ |
7c944e34 | 495 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/{apps/vdevmap,cgroup} \ |
fa6b08f2 | 496 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
27ad8b1b | 497 | |
e8d85bc2 | 498 | %{__make} -j1 install install-distribution \ |
6cdf8db5 ER |
499 | %if %{without legacy} |
500 | scripts_legacy_src_SCRPTS= \ | |
501 | scripts_legacy_gen_SCRPTS= \ | |
502 | scripts_legacy_src_PRGS= \ | |
503 | sysv_gen_SCRPTS= \ | |
504 | legacy_PROGRAMS= \ | |
505 | %endif | |
c4036d6e AM |
506 | DESTDIR=$RPM_BUILD_ROOT |
507 | ||
480949d3 AM |
508 | # our libcgroup uses per subsystem mount |
509 | touch $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
510 | ||
47f9cd5f JR |
511 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
512 | ||
6cdf8db5 ER |
513 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
514 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide | |
515 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ | |
516 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers | |
517 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE15} > \ | |
518 | $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver | |
519 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ | |
520 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
521 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' gentoo/bash-wrapper > \ | |
522 | $RPM_BUILD_ROOT%{_libdir}/%{name}/bash-wrapper | |
523 | ||
524 | %if %{with legacy} | |
525 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/vservices | |
526 | ||
9f81736b | 527 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
622053c4 | 528 | s=$(basename $i | sed s/v_//) |
c993b99d | 529 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
530 | # IP addresses/interfaces to bound $s service to |
531 | #IP=10.0.0.1 | |
532 | #IP=eth0 | |
533 | EOF | |
534 | done | |
c4036d6e | 535 | |
c993b99d | 536 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 537 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 538 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 539 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
6cdf8db5 ER |
540 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
541 | %else | |
542 | rm $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr | |
543 | rm $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy | |
544 | rm $RPM_BUILD_ROOT%{_mandir}/man8/distrib-info.8 | |
545 | rm $RPM_BUILD_ROOT%{_mandir}/man8/rebootmgr.8 | |
546 | rm $RPM_BUILD_ROOT%{_mandir}/man8/vserver-copy.8 | |
547 | %endif | |
536c7360 | 548 | |
6cdf8db5 ER |
549 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
550 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
761afb0b | 551 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld |
6cdf8db5 ER |
552 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld/initpost |
553 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/tld/initpost | |
761afb0b ER |
554 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost |
555 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost | |
6cdf8db5 | 556 | install -p vproc-%{vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
cf71c7e1 | 557 | sed -e 's,/usr/lib,%{_libdir},' %{SOURCE12} > $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
04c2a702 | 558 | chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
4961db11 PG |
559 | |
560 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
561 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
562 | EOF | |
e5f7ee9a | 563 | |
468087c5 | 564 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys |
6cdf8db5 | 565 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pubkeys/pld-ac.asc |
468087c5 | 566 | |
761afb0b | 567 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys |
6cdf8db5 | 568 | cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc |
b5d3f919 | 569 | |
6cdf8db5 | 570 | cp -p %{SOURCE16} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
7c944e34 | 571 | |
1cbfb76d | 572 | # set arch for pld-ac in pld.conf |
d4b06dc0 | 573 | %ifarch i586 i686 ppc sparc alpha athlon |
22ee1f7a | 574 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 575 | %endif |
576 | %ifarch %{x8664} | |
22ee1f7a | 577 | %define ftp_arch amd64 |
1cbfb76d | 578 | %endif |
d2c9e889 | 579 | %ifarch i486 |
22ee1f7a | 580 | %define ftp_arch i386 |
d2c9e889 | 581 | %endif |
d4b06dc0 | 582 | %ifarch pentium2 pentium3 pentium4 |
22ee1f7a | 583 | %define ftp_arch i686 |
d4b06dc0 | 584 | %endif |
1cbfb76d | 585 | %ifarch sparcv9 sparc64 |
22ee1f7a | 586 | %define ftp_arch sparc |
1cbfb76d | 587 | %endif |
22ee1f7a | 588 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/pld.conf |
1cbfb76d | 589 | |
590 | # set arch for pld-th in pld.conf | |
761afb0b | 591 | %ifarch i486 i686 ppc sparc alpha athlon |
22ee1f7a | 592 | %define ftp_arch %{_target_cpu} |
761afb0b | 593 | %endif |
eed0f0e7 | 594 | %ifarch %{x8664} |
22ee1f7a | 595 | %define ftp_arch x86_64 |
761afb0b ER |
596 | %endif |
597 | %ifarch i586 | |
22ee1f7a | 598 | %define ftp_arch i486 |
761afb0b ER |
599 | %endif |
600 | %ifarch pentium2 pentium3 pentium4 | |
22ee1f7a | 601 | %define ftp_arch i686 |
761afb0b ER |
602 | %endif |
603 | %ifarch sparcv9 sparc64 | |
22ee1f7a | 604 | %define ftp_arch sparc |
761afb0b | 605 | %endif |
22ee1f7a | 606 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf |
1cbfb76d | 607 | |
1e07a54b | 608 | # set arch for tld in tld.conf |
609 | %ifarch i586 i686 ppc sparc alpha | |
22ee1f7a | 610 | %define ftp_arch %{_target_cpu} |
1cbfb76d | 611 | %endif |
612 | %ifarch %{x8664} | |
22ee1f7a | 613 | %define ftp_arch x86_64 |
1cbfb76d | 614 | %endif |
d4b06dc0 | 615 | %ifarch athlon pentium2 pentium3 pentium4 |
22ee1f7a | 616 | %define ftp_arch i686 |
1cbfb76d | 617 | %endif |
1e07a54b | 618 | %{__sed} -i -e 's|%%ARCH%%|%{ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/tld.conf |
761afb0b | 619 | |
6a628ec2 AM |
620 | # current debootstrap link |
621 | echo "http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.10_all.deb" \ | |
622 | > $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults/debootstrap.uri | |
623 | ||
0edd7eb1 | 624 | install -d $RPM_BUILD_ROOT/var/cache/vservers/poldek |
2d6d0c17 | 625 | |
622053c4 | 626 | # cleanups |
6cdf8db5 | 627 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_libvserver.la |
622053c4 | 628 | # we have our own initscript which does the same |
6cdf8db5 ER |
629 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
630 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-init.functions | |
631 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default | |
632 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf | |
2c4297d9 | 633 | |
421cacb8 AM |
634 | %clean |
635 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 636 | |
82a15eaa JR |
637 | %triggerun -- util-vserver-init |
638 | # Prevent preun from util-vserver-init from working | |
639 | chmod a-x /etc/rc.d/init.d/vprocunhide | |
640 | chmod a-x /etc/rc.d/init.d/vrootdevices | |
641 | chmod a-x /etc/rc.d/init.d/vservers | |
642 | ||
90766857 | 643 | %triggerpostun -- util-vserver-init |
807d69d1 | 644 | # Restore what triggerun removed |
82a15eaa JR |
645 | chmod ug+x /etc/rc.d/init.d/vprocunhide |
646 | chmod ug+x /etc/rc.d/init.d/vrootdevices | |
647 | chmod ug+x /etc/rc.d/init.d/vservers | |
648 | /sbin/chkconfig --add vrootdevices | |
649 | /sbin/chkconfig --add vprocunhide | |
650 | /sbin/chkconfig --add vservers | |
5bc4d3d7 ER |
651 | if [ -f /etc/sysconfig/vrootdevices.rpmsave ]; then |
652 | cp -f /etc/sysconfig/vrootdevices{,.rpmnew} | |
653 | mv -f /etc/sysconfig/vrootdevices{.rpmsave,} | |
87423c3f | 654 | fi |
5bc4d3d7 ER |
655 | if [ -f /etc/sysconfig/vservers.rpmsave ]; then |
656 | cp -f /etc/sysconfig/vservers{,.rpmnew} | |
657 | mv -f /etc/sysconfig/vservers{.rpmsave,} | |
87423c3f | 658 | fi |
82a15eaa | 659 | |
9f81736b JR |
660 | %post |
661 | %{_sbindir}/setattr --barrier /vservers || : | |
7ccbf05b | 662 | /sbin/chkconfig --add util-vserver |
3996b68e | 663 | /sbin/chkconfig --add vrootdevices |
9f81736b | 664 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 665 | /sbin/chkconfig --add vservers |
82a15eaa JR |
666 | if [ ! -f /var/lock/subsys/util-vserver ]; then |
667 | echo "Type \"/sbin/service util-vserver start\" to set up vshelper path" 1>&2 | |
668 | fi | |
3996b68e | 669 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 670 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 671 | fi |
26dd3d85 | 672 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 673 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 674 | fi |
09abf0a6 | 675 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 676 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 677 | fi |
9f81736b | 678 | |
82a15eaa | 679 | %preun |
9f81736b | 680 | if [ "$1" = "0" ]; then |
82a15eaa | 681 | %service util-vserver stop |
2d9f659e ER |
682 | %service vservers stop |
683 | %service vprocunhide stop | |
684 | %service vrootdevices stop | |
82a15eaa | 685 | /sbin/chkconfig --del util-vserver |
09abf0a6 | 686 | /sbin/chkconfig --del vservers |
26dd3d85 | 687 | /sbin/chkconfig --del vprocunhide |
3996b68e | 688 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
689 | fi |
690 | ||
82a15eaa JR |
691 | %post lib -p /sbin/ldconfig |
692 | %postun lib -p /sbin/ldconfig | |
693 | ||
9f81736b JR |
694 | %post legacy |
695 | /sbin/chkconfig --add rebootmgr | |
696 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 697 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 698 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
699 | fi |
700 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 701 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 702 | fi |
9f81736b JR |
703 | |
704 | %preun legacy | |
705 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
706 | %service rebootmgr stop |
707 | %service vservers-legacy stop | |
9f81736b JR |
708 | /sbin/chkconfig --del rebootmgr |
709 | /sbin/chkconfig --del vservers-legacy | |
710 | fi | |
b2c6ab86 | 711 | |
e84dd6c9 JR |
712 | %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1 |
713 | for D in ac th ti; do | |
714 | P=%{_sysconfdir}/vservers/.distributions/pld-$D/poldek | |
715 | ||
716 | if [ -f $P/pld-source.conf.rpmsave ]; then | |
717 | cp -f $P/repos.d/pld.conf{,.rpmnew} | |
718 | mv -f $P/pld-source.conf.rpmsave $P/repos.d/pld.conf | |
719 | fi | |
720 | done | |
721 | exit 0 | |
722 | ||
c4036d6e AM |
723 | %files |
724 | %defattr(644,root,root,755) | |
befcea8e | 725 | %doc AUTHORS NEWS THANKS doc/intro.txt |
b77e6495 | 726 | %doc package-management.txt |
ea52b140 | 727 | %{?with_doc:%doc doc/*.html} |
82a15eaa JR |
728 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices |
729 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
730 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
731 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
732 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
733 | %attr(754,root,root) /etc/rc.d/init.d/util-vserver | |
734 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
b7fb7f75 | 735 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
736 | %dir %{_sysconfdir}/vservers/.defaults |
737 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
49e22b19 | 738 | %dir %{_sysconfdir}/vservers/.defaults/apps/vdevmap |
4f782c13 JR |
739 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
740 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
480949d3 AM |
741 | %dir %{_sysconfdir}/vservers/.defaults/cgroup |
742 | %{_sysconfdir}/vservers/.defaults/cgroup/per-ss | |
9f81736b | 743 | %dir %{_sysconfdir}/vservers/.defaults/files |
047cae91 | 744 | %{_sysconfdir}/vservers/.defaults/vdirbase |
f2524bfd | 745 | %{_sysconfdir}/vservers/.defaults/cachebase |
047cae91 | 746 | %{_sysconfdir}/vservers/.defaults/run.rev |
4f782c13 JR |
747 | %dir %{_sysconfdir}/vservers/.distributions |
748 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
749 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
9f81736b | 750 | /sbin/vshelper |
fc8ba798 JR |
751 | %attr(755,root,root) %{_sbindir}/chbind |
752 | %attr(755,root,root) %{_sbindir}/chcontext | |
753 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 754 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 755 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 756 | %attr(755,root,root) %{_sbindir}/naddress |
757 | %attr(755,root,root) %{_sbindir}/nattribute | |
758 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
759 | %attr(755,root,root) %{_sbindir}/reducecap |
760 | %attr(755,root,root) %{_sbindir}/setattr | |
761 | %attr(755,root,root) %{_sbindir}/showattr | |
4f782c13 | 762 | %attr(755,root,root) %{_sbindir}/vapt-get |
fc8ba798 JR |
763 | %attr(755,root,root) %{_sbindir}/vattribute |
764 | %attr(755,root,root) %{_sbindir}/vcontext | |
4f782c13 | 765 | %attr(755,root,root) %{_sbindir}/vdevmap |
fc8ba798 | 766 | %attr(755,root,root) %{_sbindir}/vdlimit |
4f782c13 | 767 | %attr(755,root,root) %{_sbindir}/vdu |
fc8ba798 JR |
768 | %attr(755,root,root) %{_sbindir}/vkill |
769 | %attr(755,root,root) %{_sbindir}/vlimit | |
467f3ad9 | 770 | %attr(755,root,root) %{_sbindir}/vmemctrl |
771 | %attr(755,root,root) %{_sbindir}/vmount | |
4f782c13 JR |
772 | %attr(755,root,root) %{_sbindir}/vnamespace |
773 | %attr(755,root,root) %{_sbindir}/vpoldek | |
e128cb8a | 774 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
775 | %attr(755,root,root) %{_sbindir}/vps |
776 | %attr(755,root,root) %{_sbindir}/vpstree | |
4f782c13 | 777 | %attr(755,root,root) %{_sbindir}/vrpm |
fc8ba798 JR |
778 | %attr(755,root,root) %{_sbindir}/vrsetup |
779 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 780 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 781 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
782 | %attr(755,root,root) %{_sbindir}/vserver-stat |
783 | %attr(755,root,root) %{_sbindir}/vsomething | |
4f782c13 | 784 | %attr(755,root,root) %{_sbindir}/vspace |
67457f13 | 785 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 786 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 787 | %attr(755,root,root) %{_sbindir}/vuname |
e014ae5d | 788 | %attr(755,root,root) %{_sbindir}/vurpm |
31c082fa | 789 | %attr(755,root,root) %{_sbindir}/vwait |
4f782c13 | 790 | %attr(755,root,root) %{_sbindir}/vyum |
b2c6ab86 | 791 | %dir %{_libdir}/%{name} |
b7fb7f75 | 792 | %dir %{_libdir}/%{name}/defaults |
4f782c13 JR |
793 | %{_libdir}/%{name}/defaults/fstab |
794 | %{_libdir}/%{name}/defaults/debootstrap.* | |
795 | %{_libdir}/%{name}/defaults/vunify-exclude | |
6a628ec2 AM |
796 | %{_libdir}/%{name}/defaults/context.start |
797 | %{_libdir}/%{name}/defaults/environment | |
798 | %{_libdir}/%{name}/defaults/h2ext.desc | |
799 | %{_libdir}/%{name}/defaults/mtab | |
800 | %{_libdir}/%{name}/defaults/vprocunhide-files | |
4f782c13 JR |
801 | %dir %{_libdir}/%{name}/distributions |
802 | %{_libdir}/%{name}/distributions/defaults | |
803 | %dir %{_libdir}/%{name}/distributions/template | |
804 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/initpost | |
805 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/initpre | |
4f782c13 JR |
806 | %{_libdir}/%{name}/FEATURES.txt |
807 | %{_libdir}/%{name}/util-vserver-vars | |
49e22b19 | 808 | %attr(755,root,root) %{_libdir}/%{name}/bash-wrapper |
b2c6ab86 | 809 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 810 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 811 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
fc8ba798 | 812 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
4f782c13 | 813 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
31c082fa | 814 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
bc2ffe55 | 815 | %attr(755,root,root) %{_libdir}/%{name}/exec-remount |
b7fb7f75 | 816 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
817 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
818 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 819 | %{_libdir}/%{name}/functions |
67457f13 | 820 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
821 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
822 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
823 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
824 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
4f782c13 | 825 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt |
b2c6ab86 | 826 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
4f782c13 | 827 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
b7fb7f75 JR |
828 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
829 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
830 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
831 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
467f3ad9 | 832 | %attr(755,root,root) %{_libdir}/%{name}/tunctl |
4f782c13 JR |
833 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker |
834 | %attr(755,root,root) %{_libdir}/%{name}/vclone | |
835 | %attr(755,root,root) %{_libdir}/%{name}/vcopy | |
836 | %attr(755,root,root) %{_libdir}/%{name}/vhashify | |
837 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
838 | %attr(755,root,root) %{_libdir}/%{name}/vpkg | |
839 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker | |
b7fb7f75 | 840 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
4f782c13 | 841 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
aaa9538c | 842 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
e014ae5d | 843 | %attr(755,root,root) %{_libdir}/%{name}/vurpm-worker |
4f782c13 JR |
844 | %{_libdir}/%{name}/vserver-build.* |
845 | %{_libdir}/%{name}/vserver-setup.functions | |
846 | %{_libdir}/%{name}/vserver.* | |
b2c6ab86 | 847 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
b7fb7f75 JR |
848 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
849 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 850 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
82a15eaa | 851 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper |
4f782c13 JR |
852 | %attr(755,root,root) %{_libdir}/%{name}/vunify |
853 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
fc8ba798 JR |
854 | %{_mandir}/man8/chbind.8* |
855 | %{_mandir}/man8/chcontext.8* | |
856 | %{_mandir}/man8/reducecap.8* | |
857 | %{_mandir}/man8/vps.8* | |
858 | %{_mandir}/man8/vpstree.8* | |
4f782c13 | 859 | %{_mandir}/man8/vserver-build.8* |
fc8ba798 JR |
860 | %{_mandir}/man8/vserver-stat.8* |
861 | %{_mandir}/man8/vserver.8* | |
862 | %{_mandir}/man8/vtop.8* | |
c993b99d | 863 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 864 | %dir /vservers/.pkg |
fa6b08f2 | 865 | %{systemdtmpfilesdir}/%{name}.conf |
9f81736b JR |
866 | %dir %{_localstatedir}/run/vservers |
867 | %dir %{_localstatedir}/run/vservers.rev | |
868 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 869 | %dir /var/cache/vservers |
0edd7eb1 | 870 | %dir /var/cache/vservers/poldek |
421cacb8 | 871 | |
d76eaeb7 JB |
872 | %files lib |
873 | %defattr(644,root,root,755) | |
761afb0b ER |
874 | %attr(755,root,root) %{_libdir}/libvserver.so.*.*.* |
875 | %attr(755,root,root) %ghost %{_libdir}/libvserver.so.0 | |
d76eaeb7 | 876 | |
421cacb8 AM |
877 | %files devel |
878 | %defattr(644,root,root,755) | |
ea52b140 | 879 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
761afb0b | 880 | %attr(755,root,root) %{_libdir}/libvserver.so |
b7fb7f75 | 881 | %{_libdir}/lib*.la |
33754dff | 882 | %{_includedir}/vserver*.h |
b7fb7f75 | 883 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
884 | |
885 | %files static | |
886 | %defattr(644,root,root,755) | |
887 | %{_libdir}/libvserver.a | |
9f81736b | 888 | |
6cdf8db5 | 889 | %if %{with legacy} |
d76eaeb7 JB |
890 | %files legacy |
891 | %defattr(644,root,root,755) | |
892 | %dir %{_sysconfdir}/vservices | |
893 | %{_sysconfdir}/vservices/* | |
894 | %dir %{_libdir}/%{name}/legacy | |
895 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
896 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
897 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
898 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
899 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
900 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
901 | %{_mandir}/man8/distrib-info.8* | |
902 | %{_mandir}/man8/rebootmgr.8* | |
903 | %{_mandir}/man8/vserver-copy.8* | |
6cdf8db5 | 904 | %endif |
d76eaeb7 | 905 | |
11eacd16 AM |
906 | %files -n python-util-vserver |
907 | %defattr(644,root,root,755) | |
908 | %attr(755,root,root) %{py_sitedir}/_libvserver.so | |
8524db8a | 909 | %{py_sitedir}/libvserver.py |
11eacd16 | 910 | |
a94c4947 | 911 | %files -n vserver-distro-alpine |
912 | %defattr(644,root,root,755) | |
913 | %dir %{_libdir}/%{name}/distributions/alpine | |
914 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpost | |
915 | %attr(755,root,root) %{_libdir}/%{name}/distributions/alpine/initpre | |
916 | ||
d76eaeb7 JB |
917 | %files -n vserver-distro-centos |
918 | %defattr(644,root,root,755) | |
919 | %{_libdir}/util-vserver/distributions/centos* | |
920 | ||
d765f9b1 JB |
921 | %files -n vserver-distro-debian |
922 | %defattr(644,root,root,755) | |
de976288 | 923 | %dir %{_libdir}/%{name}/distributions/debian |
de976288 | 924 | %attr(755,root,root) %{_libdir}/%{name}/distributions/debian/initpost |
6d7f9a61 | 925 | %{_libdir}/%{name}/distributions/etch |
d765f9b1 JB |
926 | %{_libdir}/%{name}/distributions/lenny |
927 | %{_libdir}/%{name}/distributions/sid | |
8524db8a | 928 | %{_libdir}/%{name}/distributions/squeeze |
10ba43de | 929 | %{_libdir}/%{name}/distributions/wheezy |
d765f9b1 | 930 | |
0e0c7ff7 ER |
931 | %files -n vserver-distro-fedora |
932 | %defattr(644,root,root,755) | |
d765f9b1 JB |
933 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
934 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
935 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
936 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
937 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
938 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
076e0301 | 939 | %{_libdir}/%{name}/distributions/f7 |
940 | %{_libdir}/%{name}/distributions/f8 | |
941 | %{_libdir}/%{name}/distributions/f9 | |
942 | %{_libdir}/%{name}/distributions/f10 | |
943 | %{_libdir}/%{name}/distributions/f11 | |
93b0c878 AM |
944 | %{_libdir}/%{name}/distributions/f12 |
945 | %{_libdir}/%{name}/distributions/f13 | |
afce1e26 | 946 | %{_libdir}/%{name}/distributions/f14 |
19409fec | 947 | %{_libdir}/%{name}/distributions/fc1 |
948 | %{_libdir}/%{name}/distributions/fc2 | |
949 | %{_libdir}/%{name}/distributions/fc3 | |
950 | %{_libdir}/%{name}/distributions/fc4 | |
951 | %{_libdir}/%{name}/distributions/fc5 | |
952 | %{_libdir}/%{name}/distributions/fc6 | |
0e0c7ff7 | 953 | |
d76eaeb7 JB |
954 | %files -n vserver-distro-gentoo |
955 | %defattr(644,root,root,755) | |
956 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
957 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
958 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
959 | %attr(755,root,root) %{_sbindir}/vemerge | |
960 | %attr(755,root,root) %{_sbindir}/vesync | |
961 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
962 | ||
e84dd6c9 JR |
963 | %files -n vserver-distro-pld |
964 | %defattr(644,root,root,755) | |
965 | %dir %{_libdir}/%{name}/distributions/pld | |
966 | %attr(755,root,root) %{_libdir}/%{name}/distributions/pld/initpost | |
967 | %dir %{_libdir}/%{name}/distributions/pld-* | |
968 | %{_libdir}/%{name}/distributions/pld-*/pkgs | |
969 | %{_libdir}/%{name}/distributions/pld-*/pubkeys | |
970 | %{_libdir}/%{name}/distributions/pld-*/rpm | |
971 | %attr(755,root,root) %{_libdir}/%{name}/distributions/pld-*/initpost | |
972 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac | |
973 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
974 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d | |
975 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf | |
976 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
977 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
978 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d | |
979 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf | |
e84dd6c9 | 980 | |
0e0c7ff7 ER |
981 | %files -n vserver-distro-redhat |
982 | %defattr(644,root,root,755) | |
076e0301 | 983 | %dir %{_sysconfdir}/vservers/.distributions/rh9 |
984 | %dir %{_sysconfdir}/vservers/.distributions/rh9/apt | |
0e0c7ff7 | 985 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list |
076e0301 | 986 | %{_libdir}/%{name}/distributions/rh9 |
987 | %dir %{_libdir}/%{name}/distributions/redhat | |
988 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initctl | |
989 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpost | |
990 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/initpre | |
991 | %attr(755,root,root) %{_libdir}/%{name}/distributions/redhat/rc.sysinit | |
0e0c7ff7 ER |
992 | |
993 | %files -n vserver-distro-suse | |
994 | %defattr(644,root,root,755) | |
995 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
996 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
997 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
998 | %{_libdir}/%{name}/distributions/suse* | |
217d218f AM |
999 | |
1000 | %files -n vserver-distro-scientificlinux | |
1001 | %defattr(644,root,root,755) | |
1002 | %dir %{_libdir}/%{name}/distributions/sl6 | |
1003 | %attr(755,root,root) %{_libdir}/%{name}/distributions/sl6/initpost | |
1004 | %attr(755,root,root) %{_libdir}/%{name}/distributions/sl6/initpre | |
1005 | %{_libdir}/%{name}/distributions/sl6/pkgs | |
1006 | %{_libdir}/%{name}/distributions/sl6/yum | |
658d1ada | 1007 | %{_libdir}/%{name}/distributions/sl6/yum.repos.d |
1e07a54b | 1008 | |
1009 | %files -n vserver-distro-tld | |
1010 | %defattr(644,root,root,755) | |
1011 | %dir %{_libdir}/%{name}/distributions/tld | |
1012 | %attr(755,root,root) %{_libdir}/%{name}/distributions/tld/initpost | |
1013 | %{_libdir}/%{name}/distributions/tld/pkgs | |
1014 | %{_libdir}/%{name}/distributions/tld/rpm | |
1015 | %dir %{_sysconfdir}/vservers/.distributions/tld | |
1016 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek | |
1017 | %dir %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d | |
1018 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/tld/poldek/repos.d/*.conf |