]>
Commit | Line | Data |
---|---|---|
628330c1 ER |
1 | # TODO |
2 | # - somewhy empty /var/cache/vservers is needed when building pld vserver | |
e128cb8a | 3 | # - make build create /dev/std{in,out,err} links |
467f3ad9 | 4 | # - f8 subpackage |
761afb0b ER |
5 | # - reject install in %%pretrans if /proc/virtual/info has incompatible version |
6 | # - unpackaged | |
7 | # /etc/rc.d/init.d/util-vserver -- # integrate to our initscript (util-vserver sets the path to vshelper and kills all guest processes) | |
27ad8b1b | 8 | # |
5b2fc2c7 | 9 | # m68k and mips are the only not supported archs |
9f1aa96a | 10 | # |
9f81736b | 11 | # Conditional build: |
6730cb3d JB |
12 | %bcond_without dietlibc # don't use dietlibc (ask for troubles) |
13 | %bcond_without doc # don't build documentation which needed LaTeX | |
204e5db3 | 14 | %bcond_without no_dynamic_context # disable enforcement of disabled dynamic context |
6730cb3d | 15 | %bcond_with xalan # use the xalan xslt processor |
9f1aa96a | 16 | # |
e128cb8a | 17 | %define _vproc_version 0.01 |
b3024b38 | 18 | # diet compile fails with ccache in %{__cc} |
e128cb8a ER |
19 | %undefine with_ccache |
20 | # | |
c4036d6e | 21 | Summary: Linux virtual server utilities |
33f71e01 | 22 | Summary(pl.UTF-8): Narzędzia dla linuksowych serwerów wirtualnych |
c4036d6e | 23 | Name: util-vserver |
467f3ad9 | 24 | Version: 0.30.215 |
761afb0b | 25 | Release: 2 |
c4036d6e | 26 | License: GPL |
fc8ba798 | 27 | Group: Applications/System |
fe9ea50c | 28 | Source0: http://ftp.linux-vserver.org/pub/utils/util-vserver/%{name}-%{version}.tar.bz2 |
467f3ad9 | 29 | # Source0-md5: befd9b8e5311e87395b67ee381d83649 |
536c7360 | 30 | Source1: vprocunhide.init |
f16cd315 | 31 | Source2: vservers.init |
536c7360 | 32 | Source3: vservers-legacy.init |
9f81736b | 33 | Source4: rebootmgr.init |
f16cd315 | 34 | Source5: vservers.sysconfig |
9f81736b | 35 | Source6: vservers-legacy.sysconfig |
e5f7ee9a JR |
36 | Source7: vrootdevices.init |
37 | Source8: vrootdevices.sysconfig | |
19844202 | 38 | # A bit of documentation explaining package management |
47f9cd5f | 39 | # http://www.paul.sladen.org/vserver/archives/200505/0078.html |
b674c64a | 40 | Source9: %{name}-pkgmgmt.txt |
ceff5a94 | 41 | Source10: %{name}-initpost.sh |
e128cb8a ER |
42 | Source11: http://www.13thfloor.at/vserver/s_release/v1.2.10/vproc-%{_vproc_version}.tar.bz2 |
43 | # Source11-md5: 1d030717bdbc958ea4b35fd2410dad85 | |
4961db11 | 44 | Source12: %{name}-vhashify.cron |
761afb0b ER |
45 | Source13: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc |
46 | # Source13-md5: 08b29584dd349aac9caa7610131a0a88 | |
01331769 | 47 | Patch0: %{name}-vsysvwrapper.patch |
880068a9 | 48 | Patch1: %{name}-pld.patch |
01331769 | 49 | Patch4: %{name}-m4-diet.patch |
f16cd315 JR |
50 | Patch6: %{name}-build-umask.patch |
51 | Patch7: %{name}-utmpx.patch | |
33beda22 | 52 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 53 | Patch9: %{name}-dev.patch |
f5385f4a | 54 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 55 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 56 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 57 | Patch13: %{name}-tmpdir.patch |
e7ac6dd1 ER |
58 | Patch14: %{name}-rpmpath.patch |
59 | Patch15: %{name}-interfaces-ignore-cvs-dir.patch | |
761afb0b | 60 | Patch16: %{name}-personalitymachine.patch |
f9347a64 | 61 | URL: http://savannah.nongnu.org/projects/util-vserver/ |
59ac117c | 62 | BuildRequires: autoconf |
c21e4fcc | 63 | BuildRequires: automake >= 1.9 |
6f3fd704 | 64 | BuildRequires: beecrypt-devel |
f791a6d7 | 65 | %{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.29} |
6730cb3d | 66 | BuildRequires: e2fsprogs-devel |
6f3fd704 | 67 | BuildRequires: libstdc++-devel |
c740301d | 68 | BuildRequires: libtool >= 1.5.14 |
bb167fd6 | 69 | %ifarch %{x8664} |
70 | BuildRequires: sed >= 4.0 | |
71 | %endif | |
2d9f659e | 72 | BuildRequires: rpmbuild(macros) >= 1.268 |
54d8402e | 73 | %if %{with doc} |
3aaf9ac9 MW |
74 | BuildRequires: doxygen |
75 | BuildRequires: graphviz | |
e8b52e06 JR |
76 | BuildRequires: libxslt-progs |
77 | BuildRequires: tetex-format-pdflatex | |
78 | BuildRequires: tetex-makeindex | |
8783ed79 | 79 | # To be removed when tetex-format-pdflatex, tetex-pdftex... |
09abf0a6 | 80 | # ...and graphviz packages get fixed |
8783ed79 | 81 | BuildRequires: ghostscript |
8783ed79 | 82 | BuildRequires: ghostscript-fonts-std |
2d6d0c17 ER |
83 | BuildRequires: tetex-fonts-jknappen |
84 | BuildRequires: tetex-metafont | |
9f81736b | 85 | %{?with_xalan:BuildRequires: xalan-j} |
54d8402e | 86 | %endif |
2d6d0c17 ER |
87 | Requires(post,preun): /sbin/chkconfig |
88 | Requires: %{name}-lib = %{version}-%{release} | |
996a9238 | 89 | Requires: issue |
fc5c9ef4 | 90 | Requires: mktemp >= 1.5-18 |
c993b99d | 91 | Requires: rc-scripts |
07c48fe5 | 92 | Requires: tar |
fc8ba798 | 93 | Requires: util-linux |
bf0ccb73 | 94 | Obsoletes: util-vserver-core |
c4036d6e AM |
95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
96 | ||
c993b99d ER |
97 | # for adapter |
98 | %define _usrbin /usr/bin | |
f996608b ER |
99 | %define _usrsbin /usr/sbin |
100 | %define _usrlib /usr/lib | |
c993b99d | 101 | |
c4036d6e AM |
102 | %description |
103 | This package provides the components and a framework to setup virtual | |
f9347a64 | 104 | servers. A virtual server runs inside a Linux server. It is |
c4036d6e AM |
105 | nevertheless highly independent. As such, you can run various services |
106 | with normal configuration. The various vservers can't interact with | |
107 | each other and can't interact with services in the main server. | |
108 | ||
109 | This requires a special kernel supporting the new new_s_context and | |
110 | set_ipv4root system call. | |
111 | ||
fc8ba798 JR |
112 | This package contains utilities which are required to communicate with |
113 | the Linux-Vserver enabled kernel. | |
114 | ||
aa0485fb JR |
115 | %description -l pl.UTF-8 |
116 | Ten pakiet dostarcza składniki i szkielet do tworzenia wirtualnych | |
117 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
118 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
119 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
120 | w interakcję z innymi ani z usługami na głównym serwerze. | |
f9347a64 | 121 | |
aa0485fb | 122 | Wymaga to specjalnego jądra obsługującego nowe wywołania systemowe |
f9347a64 JB |
123 | new_s_context i set_ipv4root. |
124 | ||
aa0485fb JR |
125 | Ten pakiet zawiera narzędzia wymagane do komunikacji z jądrem z |
126 | włączonym mechanizmem Linux-Vserver. | |
fc8ba798 | 127 | |
d76eaeb7 JB |
128 | %package lib |
129 | Summary: Dynamic libraries for util-vserver | |
130 | Summary(pl.UTF-8): Biblioteki dynamiczne dla pakietu util-vserver | |
131 | Group: Libraries | |
132 | ||
133 | %description lib | |
134 | util-vserver provides the components and a framework to setup virtual | |
135 | servers. A virtual server runs inside a linux server. It is | |
136 | nevertheless highly independent. As such, you can run various services | |
137 | pith normal configuration. The various vservers can't interact with | |
138 | each other and can't interact with services in the main server. | |
139 | ||
140 | This package contains the shared libraries needed by all other | |
141 | 'util-vserver' subpackages. | |
142 | ||
143 | %description lib -l pl.UTF-8 | |
144 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
145 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
146 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
147 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
148 | w interakcję z innymi ani z usługami na głównym serwerze. | |
149 | ||
150 | Ten pakiet zawiera biblioteki współdzielone wymagane przez wszystkie | |
151 | podpakiety util-vserver. | |
152 | ||
421cacb8 | 153 | %package devel |
b2c6ab86 | 154 | Summary: Development files for Linux vserver libraries |
33f71e01 | 155 | Summary(pl.UTF-8): Pliki programistyczne dla bibliotek linuksowego vserwera |
28a38c7c | 156 | Group: Development/Libraries |
45bc69c6 | 157 | Requires: %{name}-lib = %{version}-%{release} |
421cacb8 AM |
158 | |
159 | %description devel | |
b2c6ab86 JB |
160 | This package contains the development files necessary for developing |
161 | programs which use vserver library. | |
421cacb8 | 162 | |
aa0485fb | 163 | %description devel -l pl.UTF-8 |
b2c6ab86 | 164 | Ten pakiet zawiera pliki programistyczne konieczne do rozwijania |
aa0485fb | 165 | programów używających biblioteki vserver. |
421cacb8 AM |
166 | |
167 | %package static | |
28a38c7c | 168 | Summary: Static vserver library |
33f71e01 | 169 | Summary(pl.UTF-8): Biblioteka statyczna vservera |
28a38c7c | 170 | Group: Development/Libraries |
b2c6ab86 | 171 | Requires: %{name}-devel = %{version}-%{release} |
421cacb8 AM |
172 | |
173 | %description static | |
b2c6ab86 | 174 | This package contains the static version of vserver library. |
421cacb8 | 175 | |
aa0485fb JR |
176 | %description static -l pl.UTF-8 |
177 | Ten pakiet zawiera statyczną wersję biblioteki vservera. | |
421cacb8 | 178 | |
9f81736b JR |
179 | %package build |
180 | Summary: Tools which can be used to build vservers | |
33f71e01 | 181 | Summary(pl.UTF-8): Narzędzia do budowania vserverów |
9f81736b | 182 | Group: Applications/System |
9f81736b | 183 | Requires: %{name} = %{version}-%{release} |
761afb0b | 184 | Requires: vserver-distro-pld = %{version}-%{release} |
2d6d0c17 | 185 | Conflicts: poldek < 0.18.8-10 |
9f81736b JR |
186 | |
187 | %description build | |
188 | util-vserver provides the components and a framework to setup virtual | |
189 | servers. A virtual server runs inside a linux server. It is | |
190 | nevertheless highly independent. As such, you can run various services | |
191 | with normal configuration. The various vservers can't interact with | |
192 | each other and can't interact with services in the main server. | |
193 | ||
194 | This package contains utilities which assist in building Vservers. | |
195 | ||
aa0485fb JR |
196 | %description build -l pl.UTF-8 |
197 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
198 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
199 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
200 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
201 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 202 | |
aa0485fb | 203 | Ten pakiet zawiera narzędzia pomagające przy budowaniu Vserwerów. |
7a93d1d4 | 204 | |
9f81736b JR |
205 | %package init |
206 | Summary: initscripts for vserver | |
33f71e01 | 207 | Summary(pl.UTF-8): Skrypty inicjalizujące dla vserwera |
fc8ba798 | 208 | Group: Applications/System |
7a93d1d4 | 209 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 210 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 JB |
211 | Requires: diffutils |
212 | Requires: make | |
213 | Requires: rc-scripts | |
9f81736b JR |
214 | |
215 | %description init | |
216 | util-vserver provides the components and a framework to setup virtual | |
217 | servers. A virtual server runs inside a linux server. It is | |
218 | nevertheless highly independent. As such, you can run various services | |
219 | with normal configuration. The various vservers can't interact with | |
220 | each other and can't interact with services in the main server. | |
221 | ||
222 | This package contains the SysV initscripts which start and stop | |
7a93d1d4 JB |
223 | Vservers and related tools. |
224 | ||
aa0485fb JR |
225 | %description init -l pl.UTF-8 |
226 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
227 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
228 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
229 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
230 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 231 | |
aa0485fb JR |
232 | Ten pakiet zawiera skrypty inicjalizujące SysV uruchamiające i |
233 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
9f81736b JR |
234 | |
235 | %package legacy | |
236 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 237 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 238 | Group: Applications/System |
7a93d1d4 | 239 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 240 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 241 | Requires: rc-scripts |
9f81736b JR |
242 | |
243 | %description legacy | |
244 | util-vserver provides the components and a framework to setup virtual | |
245 | servers. A virtual server runs inside a linux server. It is | |
246 | nevertheless highly independent. As such, you can run various services | |
247 | with normal configuration. The various vservers can't interact with | |
248 | each other and can't interact with services in the main server. | |
249 | ||
7a93d1d4 | 250 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
251 | having an old-style configuration. |
252 | ||
aa0485fb JR |
253 | %description legacy -l pl.UTF-8 |
254 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
255 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
256 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
257 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
258 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 259 | |
aa0485fb JR |
260 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
261 | konfigurację w starym stylu. | |
7a93d1d4 | 262 | |
d765f9b1 JB |
263 | %package -n vserver-distro-debian |
264 | Summary: VServer build templates for Debian | |
868a20c5 | 265 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Debian |
d765f9b1 JB |
266 | Group: Applications/System |
267 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 268 | Requires: dpkg |
d765f9b1 JB |
269 | |
270 | %description -n vserver-distro-debian | |
271 | VServer build templates for Debian. | |
272 | ||
868a20c5 | 273 | %description -n vserver-distro-debian -l pl.UTF-8 |
d765f9b1 JB |
274 | Szablony do tworzenia VServerów dla dystrybucji Debian. |
275 | ||
d76eaeb7 | 276 | %package -n vserver-distro-centos |
d765f9b1 JB |
277 | Summary: VServer build template for CentOS |
278 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 JB |
279 | Group: Applications/System |
280 | Requires: %{name}-build = %{version}-%{release} | |
281 | Requires: yum | |
282 | ||
283 | %description -n vserver-distro-centos | |
d765f9b1 | 284 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
285 | |
286 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 287 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 JB |
288 | |
289 | %package -n vserver-distro-fedora | |
d765f9b1 JB |
290 | Summary: VServer build templates for Fedora |
291 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 JB |
292 | Group: Applications/System |
293 | Requires: %{name}-build = %{version}-%{release} | |
294 | Requires: binutils | |
295 | Requires: e2fsprogs | |
296 | Requires: rpm | |
d76eaeb7 | 297 | Requires: wget |
29afce9a | 298 | Requires: yum |
d76eaeb7 JB |
299 | |
300 | %description -n vserver-distro-fedora | |
d765f9b1 | 301 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
302 | |
303 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
304 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
305 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
306 | |
307 | %package -n vserver-distro-gentoo | |
308 | Summary: VServer build template for Gentoo | |
d765f9b1 | 309 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 JB |
310 | Group: Applications/System |
311 | Requires: %{name}-build = %{version}-%{release} | |
312 | ||
313 | %description -n vserver-distro-gentoo | |
314 | VServer build template for Gentoo. | |
315 | ||
316 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 317 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 JB |
318 | |
319 | %package -n vserver-distro-redhat | |
320 | Summary: VServer build template for Red Hat Linux 9 | |
321 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
322 | Group: Applications/System | |
323 | Requires: %{name}-build = %{version}-%{release} | |
324 | Requires: binutils | |
325 | Requires: e2fsprogs | |
326 | Requires: rpm | |
d76eaeb7 JB |
327 | Requires: wget |
328 | ||
329 | %description -n vserver-distro-redhat | |
330 | VServer build template for RedHat Linux 9. | |
331 | ||
332 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
333 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
334 | ||
761afb0b ER |
335 | %package -n vserver-distro-pld |
336 | Summary: VServer build templates for PLD Linux | |
337 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji PLD Linux | |
338 | Group: Applications/System | |
339 | Requires: %{name}-build = %{version}-%{release} | |
340 | Requires: /etc/pld-release | |
341 | Requires: poldek >= 0.30-0.20080225.00.1 | |
342 | ||
343 | %description -n vserver-distro-pld | |
344 | VServer build templates for PLD Linux. | |
345 | ||
346 | %description -n vserver-distro-pld -l pl.UTF-8 | |
347 | Szablony do tworzenia VServerów dla dystrybucji PLD Linux. | |
348 | ||
d76eaeb7 JB |
349 | %package -n vserver-distro-suse |
350 | Summary: VServer build template for SuSE 9.1 | |
351 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
352 | Group: Applications/System | |
353 | Requires: %{name}-build = %{version}-%{release} | |
354 | Requires: binutils | |
355 | Requires: e2fsprogs | |
356 | Requires: rpm | |
d76eaeb7 JB |
357 | Requires: wget |
358 | ||
359 | %description -n vserver-distro-suse | |
360 | VServer build template for SuSE Linux 9.1. | |
361 | ||
362 | %description -n vserver-distro-suse -l pl.UTF-8 | |
363 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
364 | ||
d765f9b1 JB |
365 | %package -n vserver-distro-ubuntu |
366 | Summary: VServer build templates for Ubuntu | |
868a20c5 | 367 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Ubuntu |
d765f9b1 JB |
368 | Group: Applications/System |
369 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 370 | Requires: dpkg |
d765f9b1 JB |
371 | |
372 | %description -n vserver-distro-ubuntu | |
373 | VServer build templates for Ubuntu. | |
374 | ||
868a20c5 | 375 | %description -n vserver-distro-ubuntu -l pl.UTF-8 |
d765f9b1 JB |
376 | Szablony do tworzenia VServerów dla dystrybucji Ubuntu. |
377 | ||
c4036d6e | 378 | %prep |
e128cb8a | 379 | %setup -q -a11 |
b7fb7f75 | 380 | %patch0 -p1 |
9f81736b | 381 | %patch1 -p1 |
33754dff | 382 | %patch4 -p1 |
f16cd315 | 383 | %patch6 -p1 |
1cfbc735 | 384 | %patch7 -p1 |
33beda22 | 385 | %patch8 -p1 |
616759c3 | 386 | %patch9 -p1 |
204e5db3 | 387 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 388 | %patch11 -p1 |
b3024b38 | 389 | %patch12 -p1 |
6d43167c | 390 | %patch13 -p1 |
a41118d0 | 391 | %patch14 -p1 |
e7ac6dd1 | 392 | %patch15 -p1 |
761afb0b | 393 | %patch16 -p1 |
c4036d6e | 394 | |
8f413f5a | 395 | install %{SOURCE9} package-management.txt |
47f9cd5f | 396 | |
c4036d6e | 397 | %build |
ac7f10fe AM |
398 | unset LD_SYMBOLIC_FUNCTIONS || : |
399 | ||
b6503b78 | 400 | %if %{with dietlibc} |
fcf60dd0 | 401 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 402 | %endif |
84567ffc JR |
403 | %{__aclocal} -I m4 |
404 | %{__automake} | |
31c082fa | 405 | %{__autoconf} |
9f81736b JR |
406 | %configure \ |
407 | --with-initrddir=/etc/rc.d/init.d \ | |
408 | --enable-release \ | |
6f41121b | 409 | --enable-apis=NOLEGACY \ |
893c90d5 | 410 | --with-initscripts=sysv \ |
411 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
e8b52e06 | 412 | MKTEMP=/bin/mktemp \ |
84567ffc | 413 | MOUNT=/bin/mount \ |
e8b52e06 | 414 | PS=/bin/ps \ |
7ae711b9 | 415 | UMOUNT=/bin/umount \ |
2151e92d | 416 | IP=/sbin/ip \ |
c993b99d | 417 | IPTABLES=%{_usrsbin}/iptables \ |
e8b52e06 JR |
418 | MODPROBE=/sbin/modprobe \ |
419 | NAMEIF=/sbin/nameif \ | |
420 | RMMOD=/sbin/rmmod \ | |
421 | VCONFIG=/sbin/vconfig \ | |
c993b99d | 422 | WGET=%{_usrbin}/wget \ |
c4036d6e | 423 | |
9f81736b | 424 | %{__make} all |
ea52b140 | 425 | %{?with_doc:%{__make} doc} |
c4036d6e | 426 | |
e128cb8a ER |
427 | %{__make} -C vproc-%{_vproc_version} \ |
428 | CC="%{__cc}" \ | |
429 | CFLAGS="%{rpmcflags}" | |
430 | ||
c4036d6e AM |
431 | %install |
432 | rm -rf $RPM_BUILD_ROOT | |
4961db11 | 433 | install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d,cron.d},/dev/pts} \ |
084b5d80 | 434 | $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg} |
27ad8b1b | 435 | |
e8d85bc2 | 436 | %{__make} -j1 install install-distribution \ |
c4036d6e AM |
437 | DESTDIR=$RPM_BUILD_ROOT |
438 | ||
47f9cd5f JR |
439 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
440 | ||
9f81736b JR |
441 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do |
442 | s=`basename $i | sed s/v_//` | |
c993b99d | 443 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
444 | # IP addresses/interfaces to bound $s service to |
445 | #IP=10.0.0.1 | |
446 | #IP=eth0 | |
447 | EOF | |
448 | done | |
c4036d6e | 449 | |
c993b99d | 450 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
a91f83e5 | 451 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
c993b99d | 452 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ |
f16cd315 | 453 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers |
c993b99d | 454 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 455 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 456 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 457 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
f16cd315 JR |
458 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ |
459 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
a91f83e5 | 460 | |
9f81736b | 461 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
536c7360 | 462 | |
e5f7ee9a JR |
463 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
464 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
761afb0b ER |
465 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld |
466 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld/initpost | |
467 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost | |
468 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost | |
469 | ln -s ../pld/initpost $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ti/initpost | |
e128cb8a | 470 | install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
4961db11 PG |
471 | install %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
472 | ||
473 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
474 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
475 | EOF | |
e5f7ee9a | 476 | |
761afb0b ER |
477 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys |
478 | cp -a %{SOURCE13} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/pubkeys/pld-th.asc | |
b5d3f919 | 479 | |
761afb0b ER |
480 | %ifarch i486 i686 ppc sparc alpha athlon |
481 | %define _ftp_arch %{_target_cpu} | |
482 | %endif | |
eed0f0e7 | 483 | %ifarch %{x8664} |
761afb0b ER |
484 | %define _ftp_arch x86_64 |
485 | %endif | |
486 | %ifarch i586 | |
487 | %define _ftp_arch i486 | |
488 | %endif | |
489 | %ifarch pentium2 pentium3 pentium4 | |
490 | %define _ftp_arch i686 | |
491 | %endif | |
492 | %ifarch sparcv9 sparc64 | |
493 | %define _ftp_arch sparc | |
494 | %endif | |
495 | ||
496 | %{__sed} -i -e 's|%%ARCH%%|%{_ftp_arch}|' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/pld.conf | |
497 | ||
498 | cat <<'EOF' > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/defaults/rpm/platform | |
499 | # first platform file entry can't contain regexps | |
500 | %{_target_cpu}-%{_target_vendor}-linux | |
501 | ||
502 | # x86_64 things | |
503 | %ifarch x86_64 | |
504 | amd64-[^-]*-linux(-gnu)? | |
505 | x86_64-[^-]*-linux(-gnu)? | |
506 | %endif | |
507 | %ifarch amd64 | |
508 | amd64-[^-]*-linux(-gnu)? | |
509 | x86_64-[^-]*-linux(-gnu)? | |
510 | %endif | |
511 | %ifarch ia32e | |
512 | ia32e-[^-]*-linux(-gnu)? | |
513 | x86_64-[^-]*-linux(-gnu)? | |
514 | %endif | |
515 | ||
516 | # x86 things | |
517 | %ifarch athlon %{x8664} | |
518 | athlon-[^-]*-linux(-gnu)? | |
519 | %endif | |
520 | %ifarch pentium4 athlon %{x8664} | |
521 | pentium4-[^-]*-linux(-gnu)? | |
522 | %endif | |
523 | %ifarch pentium3 pentium4 athlon %{x8664} | |
524 | pentium3-[^-]*-linux(-gnu)? | |
525 | %endif | |
526 | %ifarch i686 pentium3 pentium4 athlon %{x8664} | |
527 | i686-[^-]*-linux(-gnu)? | |
528 | %endif | |
529 | %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
530 | i586-[^-]*-linux(-gnu)? | |
531 | %endif | |
532 | %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} | |
533 | i486-[^-]*-linux(-gnu)? | |
534 | %endif | |
535 | %ifarch %{ix86} %{x8664} | |
536 | i386-[^-]*-linux(-gnu)? | |
537 | %endif | |
538 | ||
539 | %ifarch alpha | |
540 | alpha-[^-]*-linux(-gnu)? | |
541 | %endif | |
542 | ||
543 | %ifarch ia64 | |
544 | ia64-[^-]*-linux(-gnu)? | |
545 | %endif | |
546 | ||
547 | %ifarch ppc64 | |
548 | powerpc64-[^-]*-linux(-gnu)? | |
549 | ppc64-[^-]*-linux(-gnu)? | |
edb21b00 | 550 | %endif |
761afb0b ER |
551 | %ifarch ppc ppc64 |
552 | powerpc-[^-]*-linux(-gnu)? | |
553 | ppc-[^-]*-linux(-gnu)? | |
eed0f0e7 JR |
554 | %endif |
555 | ||
761afb0b ER |
556 | %ifarch s390x |
557 | s390x-[^-]*-linux(-gnu)? | |
558 | %endif | |
559 | %ifarch s390 s390x | |
560 | s390-[^-]*-linux(-gnu)? | |
561 | %endif | |
562 | ||
563 | %ifarch sparc64 | |
564 | sparc64-[^-]*-linux(-gnu)? | |
565 | sparcv8-[^-]*-linux(-gnu)? | |
566 | sparcv9-[^-]*-linux(-gnu)? | |
567 | %endif | |
568 | %ifarch sparcv9 | |
569 | sparcv8-[^-]*-linux(-gnu)? | |
570 | sparcv9-[^-]*-linux(-gnu)? | |
571 | %endif | |
572 | %ifarch sparc sparcv9 sparc64 | |
573 | sparc-[^-]*-linux(-gnu)? | |
574 | %endif | |
575 | ||
576 | # noarch | |
577 | noarch-[^-]*-.* | |
578 | EOF | |
579 | ||
2c4297d9 | 580 | # XXX baggins check this: needed but seems unused |
2d6d0c17 ER |
581 | install -d $RPM_BUILD_ROOT/var/cache/vservers |
582 | ||
2c4297d9 ER |
583 | # we have our own initscript which does the same |
584 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default | |
761afb0b ER |
585 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/util-vserver |
586 | rm -rf $RPM_BUILD_ROOT/dev | |
6d43167c | 587 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
467f3ad9 | 588 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-init.functions |
6d43167c | 589 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf |
2c4297d9 | 590 | |
421cacb8 AM |
591 | %clean |
592 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 593 | |
9f81736b JR |
594 | %post |
595 | %{_sbindir}/setattr --barrier /vservers || : | |
596 | ||
7a93d1d4 | 597 | %post lib -p /sbin/ldconfig |
9f81736b JR |
598 | %postun lib -p /sbin/ldconfig |
599 | ||
600 | %post init | |
3996b68e | 601 | /sbin/chkconfig --add vrootdevices |
9f81736b | 602 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 603 | /sbin/chkconfig --add vservers |
3996b68e | 604 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 605 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 606 | fi |
26dd3d85 | 607 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 608 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 609 | fi |
09abf0a6 | 610 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 611 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 612 | fi |
9f81736b JR |
613 | |
614 | %preun init | |
615 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
616 | %service vservers stop |
617 | %service vprocunhide stop | |
618 | %service vrootdevices stop | |
09abf0a6 | 619 | /sbin/chkconfig --del vservers |
26dd3d85 | 620 | /sbin/chkconfig --del vprocunhide |
3996b68e | 621 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
622 | fi |
623 | ||
624 | %post legacy | |
625 | /sbin/chkconfig --add rebootmgr | |
626 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 627 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 628 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
629 | fi |
630 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 631 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 632 | fi |
9f81736b JR |
633 | |
634 | %preun legacy | |
635 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
636 | %service rebootmgr stop |
637 | %service vservers-legacy stop | |
9f81736b JR |
638 | /sbin/chkconfig --del rebootmgr |
639 | /sbin/chkconfig --del vservers-legacy | |
640 | fi | |
b2c6ab86 | 641 | |
761afb0b ER |
642 | %triggerpostun -n vserver-distro-pld -- util-vserver-build < 0.30.215-1.1 |
643 | D=%{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
644 | ||
645 | if [ -f $D/pld-source.conf.rpmsave ]; then | |
646 | cp -f $D/repos.d/pld.conf{,.rpmnew} | |
647 | mv -f $D/pld-source.conf.rpmsave $D/repos.d/pld.conf | |
648 | fi | |
649 | exit 0 | |
650 | ||
c4036d6e AM |
651 | %files |
652 | %defattr(644,root,root,755) | |
ea52b140 | 653 | %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt |
654 | %{?with_doc:%doc doc/*.html} | |
b7fb7f75 | 655 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
656 | %dir %{_sysconfdir}/vservers/.defaults |
657 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
658 | %dir %{_sysconfdir}/vservers/.defaults/files | |
047cae91 JR |
659 | %{_sysconfdir}/vservers/.defaults/vdirbase |
660 | %{_sysconfdir}/vservers/.defaults/run.rev | |
9f81736b | 661 | /sbin/vshelper |
fc8ba798 JR |
662 | %attr(755,root,root) %{_sbindir}/chbind |
663 | %attr(755,root,root) %{_sbindir}/chcontext | |
664 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 665 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 666 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 667 | %attr(755,root,root) %{_sbindir}/naddress |
668 | %attr(755,root,root) %{_sbindir}/nattribute | |
669 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
670 | %attr(755,root,root) %{_sbindir}/reducecap |
671 | %attr(755,root,root) %{_sbindir}/setattr | |
672 | %attr(755,root,root) %{_sbindir}/showattr | |
673 | %attr(755,root,root) %{_sbindir}/vattribute | |
674 | %attr(755,root,root) %{_sbindir}/vcontext | |
675 | %attr(755,root,root) %{_sbindir}/vdlimit | |
676 | %attr(755,root,root) %{_sbindir}/vnamespace | |
677 | %attr(755,root,root) %{_sbindir}/vkill | |
678 | %attr(755,root,root) %{_sbindir}/vlimit | |
893c90d5 | 679 | %attr(755,root,root) %{_sbindir}/vdevmap |
9f81736b | 680 | %attr(755,root,root) %{_sbindir}/vdu |
467f3ad9 | 681 | %attr(755,root,root) %{_sbindir}/vmemctrl |
682 | %attr(755,root,root) %{_sbindir}/vmount | |
e128cb8a | 683 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
684 | %attr(755,root,root) %{_sbindir}/vps |
685 | %attr(755,root,root) %{_sbindir}/vpstree | |
467f3ad9 | 686 | %attr(755,root,root) %{_sbindir}/vspace |
fc8ba798 JR |
687 | %attr(755,root,root) %{_sbindir}/vrsetup |
688 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 689 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 690 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
691 | %attr(755,root,root) %{_sbindir}/vserver-stat |
692 | %attr(755,root,root) %{_sbindir}/vsomething | |
67457f13 | 693 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 694 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 695 | %attr(755,root,root) %{_sbindir}/vuname |
31c082fa | 696 | %attr(755,root,root) %{_sbindir}/vwait |
b2c6ab86 | 697 | %dir %{_libdir}/%{name} |
b7fb7f75 | 698 | %dir %{_libdir}/%{name}/defaults |
fc8ba798 JR |
699 | %{_libdir}/%{name}/FEATURES.txt |
700 | %{_libdir}/%{name}/util-vserver-vars | |
b7fb7f75 | 701 | %{_libdir}/%{name}/defaults/* |
b2c6ab86 | 702 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 703 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 704 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
b7fb7f75 | 705 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
fc8ba798 | 706 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
31c082fa | 707 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
b7fb7f75 | 708 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
709 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
710 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 711 | %{_libdir}/%{name}/functions |
67457f13 | 712 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
713 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
714 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
715 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
716 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
b2c6ab86 | 717 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
b7fb7f75 JR |
718 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
719 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
720 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
721 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
467f3ad9 | 722 | %attr(755,root,root) %{_libdir}/%{name}/tunctl |
b7fb7f75 | 723 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
b7fb7f75 | 724 | %{_libdir}/%{name}/vserver.* |
aaa9538c | 725 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
b2c6ab86 | 726 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
4961db11 PG |
727 | %attr(755,root,root) %{_libdir}/%{name}/vhashify |
728 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
b7fb7f75 JR |
729 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
730 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 731 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
fc8ba798 JR |
732 | %{_mandir}/man8/chbind.8* |
733 | %{_mandir}/man8/chcontext.8* | |
734 | %{_mandir}/man8/reducecap.8* | |
735 | %{_mandir}/man8/vps.8* | |
736 | %{_mandir}/man8/vpstree.8* | |
737 | %{_mandir}/man8/vserver-stat.8* | |
738 | %{_mandir}/man8/vserver.8* | |
739 | %{_mandir}/man8/vtop.8* | |
c993b99d | 740 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 741 | %dir /vservers/.pkg |
9f81736b JR |
742 | %dir %{_localstatedir}/run/vservers |
743 | %dir %{_localstatedir}/run/vservers.rev | |
744 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 745 | %dir /var/cache/vservers |
421cacb8 | 746 | |
d76eaeb7 JB |
747 | %files lib |
748 | %defattr(644,root,root,755) | |
761afb0b ER |
749 | %attr(755,root,root) %{_libdir}/libvserver.so.*.*.* |
750 | %attr(755,root,root) %ghost %{_libdir}/libvserver.so.0 | |
d76eaeb7 | 751 | |
421cacb8 AM |
752 | %files devel |
753 | %defattr(644,root,root,755) | |
ea52b140 | 754 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
761afb0b | 755 | %attr(755,root,root) %{_libdir}/libvserver.so |
b7fb7f75 | 756 | %{_libdir}/lib*.la |
33754dff | 757 | %{_includedir}/vserver*.h |
b7fb7f75 | 758 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
759 | |
760 | %files static | |
761 | %defattr(644,root,root,755) | |
762 | %{_libdir}/libvserver.a | |
9f81736b | 763 | |
9f81736b JR |
764 | %files build |
765 | %defattr(644,root,root,755) | |
8f413f5a | 766 | %doc contrib/yum*.patch package-management.txt |
9f81736b JR |
767 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
768 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
c21e4fcc JR |
769 | %dir %{_sysconfdir}/vservers/.distributions |
770 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
771 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
9f81736b JR |
772 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
773 | %dir %{_libdir}/%{name}/distributions | |
2b8192a7 | 774 | %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults |
2b8192a7 ER |
775 | %dir %{_libdir}/%{name}/distributions/template |
776 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init* | |
777 | %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat | |
9f81736b | 778 | %{_libdir}/%{name}/vserver-setup.functions |
761afb0b | 779 | %{_libdir}/%{name}/vserver-build.* |
9f81736b JR |
780 | %{_libdir}/%{name}/defaults/fstab |
781 | %{_libdir}/%{name}/defaults/debootstrap.uri | |
782 | %{_libdir}/%{name}/defaults/vunify-exclude | |
783 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt | |
784 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker | |
893c90d5 | 785 | %attr(755,root,root) %{_libdir}/%{name}/vclone |
9f81736b | 786 | %attr(755,root,root) %{_libdir}/%{name}/vcopy |
9f81736b | 787 | %attr(755,root,root) %{_libdir}/%{name}/vpkg |
84567ffc | 788 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker |
9f81736b JR |
789 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
790 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build | |
791 | %attr(755,root,root) %{_libdir}/%{name}/vunify | |
792 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
793 | %attr(755,root,root) %{_sbindir}/vapt-get | |
84567ffc | 794 | %attr(755,root,root) %{_sbindir}/vpoldek |
9f81736b JR |
795 | %attr(755,root,root) %{_sbindir}/vrpm |
796 | %attr(755,root,root) %{_sbindir}/vyum | |
761afb0b | 797 | %{_mandir}/man8/vserver-build.8* |
9f81736b | 798 | |
d76eaeb7 JB |
799 | %files init |
800 | %defattr(644,root,root,755) | |
801 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper | |
802 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices | |
803 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
804 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
805 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
806 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
807 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
808 | ||
809 | %files legacy | |
810 | %defattr(644,root,root,755) | |
811 | %dir %{_sysconfdir}/vservices | |
812 | %{_sysconfdir}/vservices/* | |
813 | %dir %{_libdir}/%{name}/legacy | |
814 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
815 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
816 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
817 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
818 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
819 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
820 | %{_mandir}/man8/distrib-info.8* | |
821 | %{_mandir}/man8/rebootmgr.8* | |
822 | %{_mandir}/man8/vserver-copy.8* | |
823 | ||
824 | %files -n vserver-distro-centos | |
825 | %defattr(644,root,root,755) | |
826 | %{_libdir}/util-vserver/distributions/centos* | |
827 | ||
d765f9b1 JB |
828 | %files -n vserver-distro-debian |
829 | %defattr(644,root,root,755) | |
de976288 JB |
830 | %dir %{_libdir}/%{name}/distributions/debian |
831 | %{_libdir}/%{name}/distributions/debian/debootstrap.script | |
832 | %attr(755,root,root) %{_libdir}/%{name}/distributions/debian/initpost | |
d765f9b1 JB |
833 | %{_libdir}/%{name}/distributions/etch |
834 | %{_libdir}/%{name}/distributions/lenny | |
835 | %{_libdir}/%{name}/distributions/sid | |
836 | ||
0e0c7ff7 ER |
837 | %files -n vserver-distro-fedora |
838 | %defattr(644,root,root,755) | |
d765f9b1 JB |
839 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
840 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
841 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
842 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
843 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
844 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
d765f9b1 | 845 | %{_libdir}/%{name}/distributions/f7 |
0e0c7ff7 ER |
846 | %{_libdir}/%{name}/distributions/fc* |
847 | ||
d76eaeb7 JB |
848 | %files -n vserver-distro-gentoo |
849 | %defattr(644,root,root,755) | |
850 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
851 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
852 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
853 | %attr(755,root,root) %{_sbindir}/vemerge | |
854 | %attr(755,root,root) %{_sbindir}/vesync | |
855 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
856 | ||
761afb0b ER |
857 | %files -n vserver-distro-pld |
858 | %defattr(644,root,root,755) | |
859 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld | |
860 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld-* | |
861 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac | |
862 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
863 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d | |
864 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/repos.d/*.conf | |
865 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
866 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
867 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d | |
868 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/repos.d/*.conf | |
869 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti | |
870 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti/poldek | |
871 | %dir %{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d | |
872 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ti/poldek/repos.d/*.conf | |
873 | ||
0e0c7ff7 ER |
874 | %files -n vserver-distro-redhat |
875 | %defattr(644,root,root,755) | |
876 | %dir %{_sysconfdir}/vservers/.distributions/rh* | |
877 | %dir %{_sysconfdir}/vservers/.distributions/rh*/apt | |
878 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list | |
879 | %{_libdir}/%{name}/distributions/rh* | |
880 | ||
881 | %files -n vserver-distro-suse | |
882 | %defattr(644,root,root,755) | |
883 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
884 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
885 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
886 | %{_libdir}/%{name}/distributions/suse* | |
d765f9b1 JB |
887 | |
888 | %files -n vserver-distro-ubuntu | |
889 | %defattr(644,root,root,755) | |
890 | %{_libdir}/%{name}/distributions/breezy | |
891 | %{_libdir}/%{name}/distributions/dapper | |
892 | %{_libdir}/%{name}/distributions/edgy | |
893 | %{_libdir}/%{name}/distributions/feisty | |
894 | %{_libdir}/%{name}/distributions/gutsy | |
895 | %{_libdir}/%{name}/distributions/hoary | |
896 | %{_libdir}/%{name}/distributions/warty |