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