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