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