]>
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 |
ebf4e1f7 | 22 | Release: 2 |
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 |
8e7b0f24 | 44 | Patch2: %{name}-vrpm.patch |
01331769 JR |
45 | Patch3: %{name}-include.patch |
46 | Patch4: %{name}-m4-diet.patch | |
f16cd315 JR |
47 | Patch6: %{name}-build-umask.patch |
48 | Patch7: %{name}-utmpx.patch | |
33beda22 | 49 | Patch8: %{name}-vprocunhide.patch |
616759c3 | 50 | Patch9: %{name}-dev.patch |
f5385f4a | 51 | Patch10: %{name}-no-dynamic-ctx.patch |
3a527d22 | 52 | Patch11: %{name}-more-ip.patch |
fe9ea50c | 53 | Patch12: %{name}-rpm-fake-resolver-badperm-errorlogging.patch |
6d43167c | 54 | Patch13: %{name}-tmpdir.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 |
2d6d0c17 | 179 | Requires: e2fsprogs |
4b5d1b66 | 180 | Requires: which |
2d6d0c17 | 181 | Conflicts: poldek < 0.18.8-10 |
9f81736b JR |
182 | |
183 | %description build | |
184 | util-vserver provides the components and a framework to setup virtual | |
185 | servers. A virtual server runs inside a linux server. It is | |
186 | nevertheless highly independent. As such, you can run various services | |
187 | with normal configuration. The various vservers can't interact with | |
188 | each other and can't interact with services in the main server. | |
189 | ||
190 | This package contains utilities which assist in building Vservers. | |
191 | ||
aa0485fb JR |
192 | %description build -l pl.UTF-8 |
193 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
194 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
195 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
196 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
197 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 198 | |
aa0485fb | 199 | Ten pakiet zawiera narzędzia pomagające przy budowaniu Vserwerów. |
7a93d1d4 | 200 | |
9f81736b JR |
201 | %package init |
202 | Summary: initscripts for vserver | |
33f71e01 | 203 | Summary(pl.UTF-8): Skrypty inicjalizujące dla vserwera |
fc8ba798 | 204 | Group: Applications/System |
7a93d1d4 | 205 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 206 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 JB |
207 | Requires: diffutils |
208 | Requires: make | |
209 | Requires: rc-scripts | |
9f81736b JR |
210 | |
211 | %description init | |
212 | util-vserver provides the components and a framework to setup virtual | |
213 | servers. A virtual server runs inside a linux server. It is | |
214 | nevertheless highly independent. As such, you can run various services | |
215 | with normal configuration. The various vservers can't interact with | |
216 | each other and can't interact with services in the main server. | |
217 | ||
218 | This package contains the SysV initscripts which start and stop | |
7a93d1d4 JB |
219 | Vservers and related tools. |
220 | ||
aa0485fb JR |
221 | %description init -l pl.UTF-8 |
222 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
223 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
224 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
225 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
226 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 227 | |
aa0485fb JR |
228 | Ten pakiet zawiera skrypty inicjalizujące SysV uruchamiające i |
229 | zatrzymujące Vserwery oraz powiązane narzędzia. | |
9f81736b JR |
230 | |
231 | %package legacy | |
232 | Summary: Legacy utilities for util-vserver | |
33f71e01 | 233 | Summary(pl.UTF-8): Stare narzędzia dla util-vserver |
9f81736b | 234 | Group: Applications/System |
7a93d1d4 | 235 | Requires(post,preun): /sbin/chkconfig |
9f81736b | 236 | Requires: %{name} = %{version}-%{release} |
7a93d1d4 | 237 | Requires: rc-scripts |
9f81736b JR |
238 | |
239 | %description legacy | |
240 | util-vserver provides the components and a framework to setup virtual | |
241 | servers. A virtual server runs inside a linux server. It is | |
242 | nevertheless highly independent. As such, you can run various services | |
243 | with normal configuration. The various vservers can't interact with | |
244 | each other and can't interact with services in the main server. | |
245 | ||
7a93d1d4 | 246 | This package contains the tools which are needed to work with Vservers |
9f81736b JR |
247 | having an old-style configuration. |
248 | ||
aa0485fb JR |
249 | %description legacy -l pl.UTF-8 |
250 | util-vserver dostarcza składniki i szkielet do tworzenia wirtualnych | |
251 | serwerów. Wirtualny serwer działa wewnątrz serwera linuksowego, lecz | |
252 | jest od niego w dużym stopniu niezależny. Jako taki może uruchamiać | |
253 | różne usługi z normalną konfiguracją. Różne vserwery nie mogą wchodzić | |
254 | w interakcję z innymi ani z usługami na głównym serwerze. | |
7a93d1d4 | 255 | |
aa0485fb JR |
256 | Ten pakiet zawiera narzędzia potrzebne do pracy z Vserwerami mającymi |
257 | konfigurację w starym stylu. | |
7a93d1d4 | 258 | |
d765f9b1 JB |
259 | %package -n vserver-distro-debian |
260 | Summary: VServer build templates for Debian | |
261 | Summary(pl): Szablony do tworzenia VServerów dla dystrybucji Debian | |
262 | Group: Applications/System | |
263 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 264 | Requires: dpkg |
d765f9b1 JB |
265 | |
266 | %description -n vserver-distro-debian | |
267 | VServer build templates for Debian. | |
268 | ||
269 | %description -n vserver-distro-debian -l pl | |
270 | Szablony do tworzenia VServerów dla dystrybucji Debian. | |
271 | ||
d76eaeb7 | 272 | %package -n vserver-distro-centos |
d765f9b1 JB |
273 | Summary: VServer build template for CentOS |
274 | Summary(pl.UTF-8): Szablon budowania VServerów dla dystrybucji CentOS | |
d76eaeb7 JB |
275 | Group: Applications/System |
276 | Requires: %{name}-build = %{version}-%{release} | |
277 | Requires: yum | |
278 | ||
279 | %description -n vserver-distro-centos | |
d765f9b1 | 280 | VServer build template for CentOS 4.2 and 5. |
d76eaeb7 JB |
281 | |
282 | %description -n vserver-distro-centos -l pl.UTF-8 | |
d765f9b1 | 283 | Szablon budowania VServerów dla dystrybucji CentOS 4.2 i 5. |
d76eaeb7 JB |
284 | |
285 | %package -n vserver-distro-fedora | |
d765f9b1 JB |
286 | Summary: VServer build templates for Fedora |
287 | Summary(pl.UTF-8): Szablony do tworzenia VServerów dla dystrybucji Fedora | |
d76eaeb7 JB |
288 | Group: Applications/System |
289 | Requires: %{name}-build = %{version}-%{release} | |
290 | Requires: binutils | |
291 | Requires: e2fsprogs | |
292 | Requires: rpm | |
d76eaeb7 JB |
293 | Requires: wget |
294 | ||
295 | %description -n vserver-distro-fedora | |
d765f9b1 | 296 | VServer build templates for Fedora Core 1,2,3,4,5,6 and Fedora 7. |
d76eaeb7 JB |
297 | |
298 | %description -n vserver-distro-fedora -l pl.UTF-8 | |
d765f9b1 JB |
299 | Szablony do tworzenia VServerów dla dystrybucji Fedora Core |
300 | 1,2,3,4,5,6 oraz Fedora 7. | |
d76eaeb7 JB |
301 | |
302 | %package -n vserver-distro-gentoo | |
303 | Summary: VServer build template for Gentoo | |
d765f9b1 | 304 | Summary(pl.UTF-8): Szablon budowania VServerów dla Gentoo |
d76eaeb7 JB |
305 | Group: Applications/System |
306 | Requires: %{name}-build = %{version}-%{release} | |
307 | ||
308 | %description -n vserver-distro-gentoo | |
309 | VServer build template for Gentoo. | |
310 | ||
311 | %description -n vserver-distro-gentoo -l pl.UTF-8 | |
d765f9b1 | 312 | Szablon budowania VServerów dla Gentoo. |
d76eaeb7 JB |
313 | |
314 | %package -n vserver-distro-redhat | |
315 | Summary: VServer build template for Red Hat Linux 9 | |
316 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9 | |
317 | Group: Applications/System | |
318 | Requires: %{name}-build = %{version}-%{release} | |
319 | Requires: binutils | |
320 | Requires: e2fsprogs | |
321 | Requires: rpm | |
d76eaeb7 JB |
322 | Requires: wget |
323 | ||
324 | %description -n vserver-distro-redhat | |
325 | VServer build template for RedHat Linux 9. | |
326 | ||
327 | %description -n vserver-distro-redhat -l pl.UTF-8 | |
328 | Szablon do tworzenia VServerów dla dystrybucji Red Hat Linux 9. | |
329 | ||
330 | %package -n vserver-distro-suse | |
331 | Summary: VServer build template for SuSE 9.1 | |
332 | Summary(pl.UTF-8): Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1 | |
333 | Group: Applications/System | |
334 | Requires: %{name}-build = %{version}-%{release} | |
335 | Requires: binutils | |
336 | Requires: e2fsprogs | |
337 | Requires: rpm | |
d76eaeb7 JB |
338 | Requires: wget |
339 | ||
340 | %description -n vserver-distro-suse | |
341 | VServer build template for SuSE Linux 9.1. | |
342 | ||
343 | %description -n vserver-distro-suse -l pl.UTF-8 | |
344 | Szablon do tworzenia VServerów dla dystrybucji SuSE 9.1. | |
345 | ||
d765f9b1 JB |
346 | %package -n vserver-distro-ubuntu |
347 | Summary: VServer build templates for Ubuntu | |
348 | Summary(pl): Szablony do tworzenia VServerów dla dystrybucji Ubuntu | |
349 | Group: Applications/System | |
350 | Requires: %{name}-build = %{version}-%{release} | |
b351d620 | 351 | Requires: dpkg |
d765f9b1 JB |
352 | |
353 | %description -n vserver-distro-ubuntu | |
354 | VServer build templates for Ubuntu. | |
355 | ||
356 | %description -n vserver-distro-ubuntu -l pl | |
357 | Szablony do tworzenia VServerów dla dystrybucji Ubuntu. | |
358 | ||
c4036d6e | 359 | %prep |
e128cb8a | 360 | %setup -q -a11 |
b7fb7f75 | 361 | %patch0 -p1 |
9f81736b | 362 | %patch1 -p1 |
84567ffc | 363 | %patch2 -p1 |
e8b52e06 | 364 | %patch3 -p1 |
33754dff | 365 | %patch4 -p1 |
f16cd315 | 366 | %patch6 -p1 |
1cfbc735 | 367 | %patch7 -p1 |
33beda22 | 368 | %patch8 -p1 |
616759c3 | 369 | %patch9 -p1 |
204e5db3 | 370 | %{?with_no_dynamic_context:%patch10 -p1} |
3a527d22 | 371 | %patch11 -p1 |
b3024b38 | 372 | %patch12 -p1 |
6d43167c | 373 | %patch13 -p1 |
c4036d6e | 374 | |
8f413f5a | 375 | install %{SOURCE9} package-management.txt |
47f9cd5f | 376 | |
33754dff JR |
377 | cp -a compat.h vserver-compat.h |
378 | ||
c4036d6e | 379 | %build |
ac7f10fe AM |
380 | unset LD_SYMBOLIC_FUNCTIONS || : |
381 | ||
b6503b78 | 382 | %if %{with dietlibc} |
fcf60dd0 | 383 | CFLAGS="%{rpmcflags} -D__GLIBC__ -D__KERNEL_STRICT_NAMES=1 -U__STRICT_ANSI__" |
b6503b78 | 384 | %endif |
84567ffc JR |
385 | %{__aclocal} -I m4 |
386 | %{__automake} | |
31c082fa | 387 | %{__autoconf} |
9f81736b JR |
388 | %configure \ |
389 | --with-initrddir=/etc/rc.d/init.d \ | |
390 | --enable-release \ | |
6f41121b | 391 | --enable-apis=NOLEGACY \ |
893c90d5 | 392 | --with-initscripts=sysv \ |
393 | --%{?with_dietlibc:en}%{!?with_dietlibc:dis}able-dietlibc \ | |
e8b52e06 | 394 | MKTEMP=/bin/mktemp \ |
84567ffc | 395 | MOUNT=/bin/mount \ |
e8b52e06 | 396 | PS=/bin/ps \ |
7ae711b9 | 397 | UMOUNT=/bin/umount \ |
2151e92d | 398 | IP=/sbin/ip \ |
c993b99d | 399 | IPTABLES=%{_usrsbin}/iptables \ |
e8b52e06 JR |
400 | MODPROBE=/sbin/modprobe \ |
401 | NAMEIF=/sbin/nameif \ | |
402 | RMMOD=/sbin/rmmod \ | |
403 | VCONFIG=/sbin/vconfig \ | |
c993b99d | 404 | WGET=%{_usrbin}/wget \ |
c4036d6e | 405 | |
9f81736b | 406 | %{__make} all |
ea52b140 | 407 | %{?with_doc:%{__make} doc} |
c4036d6e | 408 | |
e128cb8a ER |
409 | %{__make} -C vproc-%{_vproc_version} \ |
410 | CC="%{__cc}" \ | |
411 | CFLAGS="%{rpmcflags}" | |
412 | ||
c4036d6e AM |
413 | %install |
414 | rm -rf $RPM_BUILD_ROOT | |
4961db11 | 415 | install -d $RPM_BUILD_ROOT{/vservers,/etc/{sysconfig,rc.d/init.d,cron.d},/dev/pts} \ |
084b5d80 | 416 | $RPM_BUILD_ROOT{%{_sysconfdir}/vservices,/vservers/.pkg} |
27ad8b1b | 417 | |
e8d85bc2 | 418 | %{__make} -j1 install install-distribution \ |
c4036d6e AM |
419 | DESTDIR=$RPM_BUILD_ROOT |
420 | ||
c993b99d | 421 | cp -a vserver-compat.h $RPM_BUILD_ROOT%{_includedir} |
33754dff | 422 | |
47f9cd5f JR |
423 | chmod -R +rX $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/* |
424 | ||
9f81736b JR |
425 | ln -s /vservers $RPM_BUILD_ROOT%{_sysconfdir}/vservers/vdirbase |
426 | ln -s %{_localstatedir}/run/vservers.rev $RPM_BUILD_ROOT%{_sysconfdir}/vservers/run.rev | |
427 | ||
428 | for i in $RPM_BUILD_ROOT/etc/rc.d/init.d/v_* ; do | |
429 | s=`basename $i | sed s/v_//` | |
c993b99d | 430 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/vservices/$s << EOF |
9f81736b JR |
431 | # IP addresses/interfaces to bound $s service to |
432 | #IP=10.0.0.1 | |
433 | #IP=eth0 | |
434 | EOF | |
435 | done | |
c4036d6e | 436 | |
c993b99d | 437 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE1} > \ |
a91f83e5 | 438 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vprocunhide |
c993b99d | 439 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE2} > \ |
f16cd315 | 440 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers |
c993b99d | 441 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE3} > \ |
a91f83e5 | 442 | $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-legacy |
c993b99d | 443 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE4} > \ |
a91f83e5 | 444 | $RPM_BUILD_ROOT/etc/rc.d/init.d/rebootmgr |
f16cd315 JR |
445 | sed 's|%{_usrlib}/util-vserver|%{_libdir}/%{name}|g' %{SOURCE5} > \ |
446 | $RPM_BUILD_ROOT/etc/sysconfig/vservers | |
a91f83e5 | 447 | |
9f81736b | 448 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/vservers-legacy |
536c7360 | 449 | |
e5f7ee9a JR |
450 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vrootdevices |
451 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/vrootdevices | |
14d38be9 | 452 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/initpost |
e970f749 | 453 | install %{SOURCE10} $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/initpost |
e128cb8a | 454 | install vproc-%{_vproc_version}/vproc $RPM_BUILD_ROOT%{_sbindir} |
4961db11 PG |
455 | install %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/%{name}/vhashify.cron |
456 | ||
457 | cat > $RPM_BUILD_ROOT/etc/cron.d/vservers << EOF | |
458 | 02 2 * * 0 root %{_libdir}/%{name}/vhashify.cron | |
459 | EOF | |
e5f7ee9a | 460 | |
f996608b | 461 | ln -sf null $RPM_BUILD_ROOT/dev/initctl |
b5d3f919 | 462 | |
eed0f0e7 | 463 | %ifarch %{x8664} |
51986043 AM |
464 | # ac i686 |
465 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac \ | |
466 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac-i686 | |
30f41eb5 AM |
467 | echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/rpm/platform |
468 | echo "i686-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac-i686/rpm/platform | |
51986043 AM |
469 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac \ |
470 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686 | |
471 | sed -i 's/x86_64/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/*.conf | |
472 | ||
473 | # th i686 | |
474 | cp -a $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th \ | |
475 | $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th-i686 | |
30f41eb5 AM |
476 | echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th/rpm/platform |
477 | echo "i686-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-th-i686/rpm/platform | |
51986043 AM |
478 | cp -a $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th \ |
479 | $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686 | |
480 | sed -i 's/x86_64/i686/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/*.conf | |
481 | ||
482 | # ac x86_64 | |
db9064d3 AM |
483 | sed -i 's/^glibc$/glibc64/' $RPM_BUILD_ROOT%{_libdir}/%{name}/distributions/pld-ac/pkgs/01 |
484 | 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 |
485 | sed -i 's/x86_64/amd64/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf |
486 | %endif | |
487 | %ifarch i486 | |
488 | sed -i 's/i486/i386/g' $RPM_BUILD_ROOT%{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf | |
eed0f0e7 JR |
489 | %endif |
490 | ||
2c4297d9 | 491 | # XXX baggins check this: needed but seems unused |
2d6d0c17 ER |
492 | install -d $RPM_BUILD_ROOT/var/cache/vservers |
493 | ||
2c4297d9 ER |
494 | # we have our own initscript which does the same |
495 | rm -f $RPM_BUILD_ROOT/etc/rc.d/init.d/vservers-default | |
6d43167c | 496 | rm -f $RPM_BUILD_ROOT%{_libdir}/util-vserver/vserver-wrapper |
2c4297d9 | 497 | # probaly the part of them |
6d43167c | 498 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/vservers.conf |
2c4297d9 | 499 | |
421cacb8 AM |
500 | %clean |
501 | rm -rf $RPM_BUILD_ROOT | |
c4036d6e | 502 | |
9f81736b JR |
503 | %post |
504 | %{_sbindir}/setattr --barrier /vservers || : | |
505 | ||
7a93d1d4 | 506 | %post lib -p /sbin/ldconfig |
9f81736b JR |
507 | %postun lib -p /sbin/ldconfig |
508 | ||
d76eaeb7 JB |
509 | %triggerpostun build -- %{name}-build < 0.30.210-5.2 |
510 | if [ -f /etc/vservers/.distributions/pld2.0/poldek/poldek.conf.rpmsave ]; then | |
511 | mv -f /etc/vservers/.distributions/{pld2.0,pld-ac}/poldek/poldek.conf.rpmsave | |
512 | fi | |
513 | ||
514 | # kill old vserver specific package ignores which are no longer needed | |
515 | l=`egrep '^ignore.*(basesystem|SysVinit|rc-scripts)' /etc/vservers/*/apps/pkgmgmt/base/poldek/etc/poldek.conf -l 2>/dev/null` | |
516 | if [ "$l" ]; then | |
517 | %{__sed} -i -e '/^ignore/s, \(basesystem\|SysVinit\|rc-scripts\),,g' $l | |
518 | fi | |
519 | ||
9f81736b | 520 | %post init |
3996b68e | 521 | /sbin/chkconfig --add vrootdevices |
9f81736b | 522 | /sbin/chkconfig --add vprocunhide |
09abf0a6 | 523 | /sbin/chkconfig --add vservers |
3996b68e | 524 | if [ ! -f /var/lock/subsys/vrootdevices ]; then |
2d9f659e | 525 | echo "Type \"/sbin/service vrootdevices start\" to assign virtual root devices" 1>&2 |
3996b68e | 526 | fi |
26dd3d85 | 527 | if [ ! -f /var/lock/subsys/vprocunhide ]; then |
2d9f659e | 528 | echo "Type \"/sbin/service vprocunhide start\" to set /proc visibility for vservers" 1>&2 |
26dd3d85 | 529 | fi |
09abf0a6 | 530 | if [ ! -f /var/lock/subsys/vservers ]; then |
2d9f659e | 531 | echo "Type \"/sbin/service vservers start\" to start vservers" 1>&2 |
26dd3d85 | 532 | fi |
9f81736b JR |
533 | |
534 | %preun init | |
535 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
536 | %service vservers stop |
537 | %service vprocunhide stop | |
538 | %service vrootdevices stop | |
09abf0a6 | 539 | /sbin/chkconfig --del vservers |
26dd3d85 | 540 | /sbin/chkconfig --del vprocunhide |
3996b68e | 541 | /sbin/chkconfig --del vrootdevices |
9f81736b JR |
542 | fi |
543 | ||
544 | %post legacy | |
545 | /sbin/chkconfig --add rebootmgr | |
546 | /sbin/chkconfig --add vservers-legacy | |
26dd3d85 | 547 | if [ ! -f /var/lock/subsys/rebootmgr ] ; then |
2d9f659e | 548 | echo "Type \"/sbin/service rebootmgr start\" to start reboot manager for legacy vservers" 1>&2 |
26dd3d85 ER |
549 | fi |
550 | if [ ! -f /var/lock/subsys/vservers-legacy ] ; then | |
2d9f659e | 551 | echo "Type \"/sbin/service vservers-legacy start\" to start legacy vservers" 1>&2 |
26dd3d85 | 552 | fi |
9f81736b JR |
553 | |
554 | %preun legacy | |
555 | if [ "$1" = "0" ]; then | |
2d9f659e ER |
556 | %service rebootmgr stop |
557 | %service vservers-legacy stop | |
9f81736b JR |
558 | /sbin/chkconfig --del rebootmgr |
559 | /sbin/chkconfig --del vservers-legacy | |
560 | fi | |
b2c6ab86 | 561 | |
c4036d6e AM |
562 | %files |
563 | %defattr(644,root,root,755) | |
ea52b140 | 564 | %doc AUTHORS ChangeLog NEWS THANKS doc/intro.txt |
565 | %{?with_doc:%doc doc/*.html} | |
b7fb7f75 | 566 | %dir %{_sysconfdir}/vservers |
9f81736b JR |
567 | %dir %{_sysconfdir}/vservers/.defaults |
568 | %dir %{_sysconfdir}/vservers/.defaults/apps | |
569 | %dir %{_sysconfdir}/vservers/.defaults/files | |
047cae91 JR |
570 | %{_sysconfdir}/vservers/.defaults/vdirbase |
571 | %{_sysconfdir}/vservers/.defaults/run.rev | |
9f81736b JR |
572 | %{_sysconfdir}/vservers/vdirbase |
573 | %{_sysconfdir}/vservers/run.rev | |
574 | /sbin/vshelper | |
fc8ba798 JR |
575 | %attr(755,root,root) %{_sbindir}/chbind |
576 | %attr(755,root,root) %{_sbindir}/chcontext | |
577 | %attr(755,root,root) %{_sbindir}/chxid | |
9f81736b | 578 | %attr(755,root,root) %{_sbindir}/exec-cd |
fc8ba798 | 579 | %attr(755,root,root) %{_sbindir}/lsxid |
328586ba | 580 | %attr(755,root,root) %{_sbindir}/naddress |
581 | %attr(755,root,root) %{_sbindir}/nattribute | |
582 | %attr(755,root,root) %{_sbindir}/ncontext | |
fc8ba798 JR |
583 | %attr(755,root,root) %{_sbindir}/reducecap |
584 | %attr(755,root,root) %{_sbindir}/setattr | |
585 | %attr(755,root,root) %{_sbindir}/showattr | |
586 | %attr(755,root,root) %{_sbindir}/vattribute | |
587 | %attr(755,root,root) %{_sbindir}/vcontext | |
588 | %attr(755,root,root) %{_sbindir}/vdlimit | |
589 | %attr(755,root,root) %{_sbindir}/vnamespace | |
590 | %attr(755,root,root) %{_sbindir}/vkill | |
591 | %attr(755,root,root) %{_sbindir}/vlimit | |
893c90d5 | 592 | %attr(755,root,root) %{_sbindir}/vdevmap |
9f81736b | 593 | %attr(755,root,root) %{_sbindir}/vdu |
e128cb8a | 594 | %attr(755,root,root) %{_sbindir}/vproc |
9f81736b JR |
595 | %attr(755,root,root) %{_sbindir}/vps |
596 | %attr(755,root,root) %{_sbindir}/vpstree | |
fc8ba798 JR |
597 | %attr(755,root,root) %{_sbindir}/vrsetup |
598 | %attr(755,root,root) %{_sbindir}/vsched | |
9f81736b | 599 | %attr(755,root,root) %{_sbindir}/vserver |
fc8ba798 | 600 | %attr(755,root,root) %{_sbindir}/vserver-info |
9f81736b JR |
601 | %attr(755,root,root) %{_sbindir}/vserver-stat |
602 | %attr(755,root,root) %{_sbindir}/vsomething | |
67457f13 | 603 | %attr(755,root,root) %{_sbindir}/vtag |
9f81736b | 604 | %attr(755,root,root) %{_sbindir}/vtop |
fc8ba798 | 605 | %attr(755,root,root) %{_sbindir}/vuname |
31c082fa | 606 | %attr(755,root,root) %{_sbindir}/vwait |
b2c6ab86 | 607 | %dir %{_libdir}/%{name} |
b7fb7f75 | 608 | %dir %{_libdir}/%{name}/defaults |
fc8ba798 JR |
609 | %{_libdir}/%{name}/FEATURES.txt |
610 | %{_libdir}/%{name}/util-vserver-vars | |
b7fb7f75 | 611 | %{_libdir}/%{name}/defaults/* |
b2c6ab86 | 612 | %attr(755,root,root) %{_libdir}/%{name}/capchroot |
b7fb7f75 | 613 | %attr(755,root,root) %{_libdir}/%{name}/chain-echo |
328586ba | 614 | %attr(755,root,root) %{_libdir}/%{name}/chbind-compat |
b7fb7f75 | 615 | %attr(755,root,root) %{_libdir}/%{name}/check-unixfile |
fc8ba798 | 616 | %attr(755,root,root) %{_libdir}/%{name}/chcontext-compat |
31c082fa | 617 | %attr(755,root,root) %{_libdir}/%{name}/chroot-sh |
b7fb7f75 | 618 | %attr(755,root,root) %{_libdir}/%{name}/exec-ulimit |
b2c6ab86 JB |
619 | %attr(755,root,root) %{_libdir}/%{name}/fakerunlevel |
620 | %attr(755,root,root) %{_libdir}/%{name}/filetime | |
b7fb7f75 | 621 | %{_libdir}/%{name}/functions |
67457f13 | 622 | %attr(755,root,root) %{_libdir}/%{name}/h2ext |
623 | %attr(755,root,root) %{_libdir}/%{name}/h2ext-worker | |
b7fb7f75 JR |
624 | %attr(755,root,root) %{_libdir}/%{name}/keep-ctx-alive |
625 | %attr(755,root,root) %{_libdir}/%{name}/lockfile | |
626 | %attr(755,root,root) %{_libdir}/%{name}/mask2prefix | |
b2c6ab86 | 627 | %attr(755,root,root) %{_libdir}/%{name}/readlink |
b7fb7f75 JR |
628 | %attr(755,root,root) %{_libdir}/%{name}/save_ctxinfo |
629 | %attr(755,root,root) %{_libdir}/%{name}/secure-mount | |
630 | %attr(755,root,root) %{_libdir}/%{name}/sigexec | |
631 | %attr(755,root,root) %{_libdir}/%{name}/start-vservers | |
b7fb7f75 | 632 | %attr(755,root,root) %{_libdir}/%{name}/vprocunhide |
b7fb7f75 | 633 | %{_libdir}/%{name}/vserver.* |
d2e6de4d | 634 | %{_libdir}/%{name}/vserver-setup.* |
aaa9538c | 635 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build |
d2e6de4d | 636 | %{_libdir}/%{name}/vserver-build.* |
b2c6ab86 | 637 | %attr(755,root,root) %{_libdir}/%{name}/vservers.grabinfo.sh |
4961db11 PG |
638 | %attr(755,root,root) %{_libdir}/%{name}/vhashify |
639 | %attr(755,root,root) %{_libdir}/%{name}/vhashify.cron | |
b7fb7f75 JR |
640 | %attr(755,root,root) %{_libdir}/%{name}/vshelper |
641 | %attr(755,root,root) %{_libdir}/%{name}/vshelper-sync | |
893c90d5 | 642 | %attr(755,root,root) %{_libdir}/%{name}/vsysctl |
fc8ba798 JR |
643 | %{_mandir}/man8/chbind.8* |
644 | %{_mandir}/man8/chcontext.8* | |
645 | %{_mandir}/man8/reducecap.8* | |
646 | %{_mandir}/man8/vps.8* | |
647 | %{_mandir}/man8/vpstree.8* | |
648 | %{_mandir}/man8/vserver-stat.8* | |
649 | %{_mandir}/man8/vserver.8* | |
650 | %{_mandir}/man8/vtop.8* | |
c993b99d | 651 | %attr(000,root,root) %dir /vservers |
2b3c93e4 | 652 | %dir /vservers/.pkg |
9f81736b JR |
653 | %dir %{_localstatedir}/run/vservers |
654 | %dir %{_localstatedir}/run/vservers.rev | |
655 | %dir %{_localstatedir}/run/vshelper | |
2d6d0c17 | 656 | %dir /var/cache/vservers |
421cacb8 | 657 | |
d76eaeb7 JB |
658 | %files lib |
659 | %defattr(644,root,root,755) | |
660 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
661 | ||
421cacb8 AM |
662 | %files devel |
663 | %defattr(644,root,root,755) | |
ea52b140 | 664 | %{?with_doc:%doc lib/apidoc/latex/refman.pdf lib/apidoc/html} |
b7fb7f75 JR |
665 | %attr(755,root,root) %{_libdir}/lib*.so |
666 | %{_libdir}/lib*.la | |
33754dff | 667 | %{_includedir}/vserver*.h |
b7fb7f75 | 668 | %{_pkgconfigdir}/*.pc |
421cacb8 AM |
669 | |
670 | %files static | |
671 | %defattr(644,root,root,755) | |
672 | %{_libdir}/libvserver.a | |
9f81736b | 673 | |
9f81736b JR |
674 | %files build |
675 | %defattr(644,root,root,755) | |
8f413f5a | 676 | %doc contrib/yum*.patch package-management.txt |
9f81736b JR |
677 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify |
678 | %dir %{_sysconfdir}/vservers/.defaults/apps/vunify/hash | |
c21e4fcc JR |
679 | %dir %{_sysconfdir}/vservers/.distributions |
680 | %dir %{_sysconfdir}/vservers/.distributions/.common | |
681 | %dir %{_sysconfdir}/vservers/.distributions/.common/pubkeys | |
14d38be9 ER |
682 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac |
683 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac/poldek | |
8e7b0f24 | 684 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac/poldek/*.conf |
39f02c0d | 685 | %ifarch %{x8664} |
51986043 AM |
686 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686 |
687 | %dir %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek | |
688 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-ac-i686/poldek/*.conf | |
51986043 AM |
689 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686 |
690 | %dir %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek | |
691 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th-i686/poldek/*.conf | |
39f02c0d AM |
692 | %endif |
693 | %dir %{_sysconfdir}/vservers/.distributions/pld-th | |
694 | %dir %{_sysconfdir}/vservers/.distributions/pld-th/poldek | |
695 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/pld-th/poldek/*.conf | |
9f81736b JR |
696 | %attr(755,root,root) %{_libdir}/%{name}/rpm-fake* |
697 | %dir %{_libdir}/%{name}/distributions | |
2b8192a7 ER |
698 | %attr(-,root,root) %{_libdir}/%{name}/distributions/defaults |
699 | %attr(-,root,root) %{_libdir}/%{name}/distributions/pld* | |
700 | %dir %{_libdir}/%{name}/distributions/template | |
701 | %attr(755,root,root) %{_libdir}/%{name}/distributions/template/init* | |
702 | %attr(-,root,root) %{_libdir}/%{name}/distributions/redhat | |
9f81736b JR |
703 | %{_libdir}/%{name}/vserver-build.* |
704 | %{_libdir}/%{name}/vserver-setup.functions | |
705 | %{_libdir}/%{name}/defaults/fstab | |
706 | %{_libdir}/%{name}/defaults/debootstrap.uri | |
707 | %{_libdir}/%{name}/defaults/vunify-exclude | |
708 | %attr(755,root,root) %{_libdir}/%{name}/pkgmgmt | |
709 | %attr(755,root,root) %{_libdir}/%{name}/vapt-get-worker | |
893c90d5 | 710 | %attr(755,root,root) %{_libdir}/%{name}/vclone |
9f81736b | 711 | %attr(755,root,root) %{_libdir}/%{name}/vcopy |
9f81736b | 712 | %attr(755,root,root) %{_libdir}/%{name}/vpkg |
84567ffc | 713 | %attr(755,root,root) %{_libdir}/%{name}/vpoldek-worker |
9f81736b JR |
714 | %attr(755,root,root) %{_libdir}/%{name}/vrpm-* |
715 | %attr(755,root,root) %{_libdir}/%{name}/vserver-build | |
716 | %attr(755,root,root) %{_libdir}/%{name}/vunify | |
717 | %attr(755,root,root) %{_libdir}/%{name}/vyum-worker | |
718 | %attr(755,root,root) %{_sbindir}/vapt-get | |
84567ffc | 719 | %attr(755,root,root) %{_sbindir}/vpoldek |
9f81736b JR |
720 | %attr(755,root,root) %{_sbindir}/vrpm |
721 | %attr(755,root,root) %{_sbindir}/vyum | |
9f81736b | 722 | |
d76eaeb7 JB |
723 | %files init |
724 | %defattr(644,root,root,755) | |
725 | %attr(755,root,root) %{_libdir}/%{name}/vsysvwrapper | |
726 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vrootdevices | |
727 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers | |
728 | %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/vservers | |
729 | %attr(754,root,root) /etc/rc.d/init.d/vprocunhide | |
730 | %attr(754,root,root) /etc/rc.d/init.d/vrootdevices | |
731 | %attr(754,root,root) /etc/rc.d/init.d/vservers | |
732 | ||
733 | %files legacy | |
734 | %defattr(644,root,root,755) | |
735 | %dir %{_sysconfdir}/vservices | |
736 | %{_sysconfdir}/vservices/* | |
737 | %dir %{_libdir}/%{name}/legacy | |
738 | %attr(755,root,root) %{_libdir}/%{name}/legacy/* | |
739 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vservers-legacy | |
740 | %attr(754,root,root) /etc/rc.d/init.d/v_* | |
741 | %attr(754,root,root) /etc/rc.d/init.d/rebootmgr | |
742 | %attr(754,root,root) /etc/rc.d/init.d/vservers-legacy | |
743 | %attr(755,root,root) %{_sbindir}/vserver-copy | |
744 | %{_mandir}/man8/distrib-info.8* | |
745 | %{_mandir}/man8/rebootmgr.8* | |
746 | %{_mandir}/man8/vserver-copy.8* | |
747 | ||
748 | %files -n vserver-distro-centos | |
749 | %defattr(644,root,root,755) | |
750 | %{_libdir}/util-vserver/distributions/centos* | |
751 | ||
d765f9b1 JB |
752 | %files -n vserver-distro-debian |
753 | %defattr(644,root,root,755) | |
754 | %{_libdir}/%{name}/distributions/debian | |
755 | %{_libdir}/%{name}/distributions/etch | |
756 | %{_libdir}/%{name}/distributions/lenny | |
757 | %{_libdir}/%{name}/distributions/sid | |
758 | ||
0e0c7ff7 ER |
759 | %files -n vserver-distro-fedora |
760 | %defattr(644,root,root,755) | |
d765f9b1 JB |
761 | %dir %{_sysconfdir}/vservers/.distributions/f7 |
762 | %dir %{_sysconfdir}/vservers/.distributions/f7/apt | |
763 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/f7/apt/sources.list | |
0e0c7ff7 ER |
764 | %dir %{_sysconfdir}/vservers/.distributions/fc* |
765 | %dir %{_sysconfdir}/vservers/.distributions/fc*/apt | |
766 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/fc*/apt/sources.list | |
d765f9b1 | 767 | %{_libdir}/%{name}/distributions/f7 |
0e0c7ff7 ER |
768 | %{_libdir}/%{name}/distributions/fc* |
769 | ||
d76eaeb7 JB |
770 | %files -n vserver-distro-gentoo |
771 | %defattr(644,root,root,755) | |
772 | %dir %{_libdir}/util-vserver/distributions/gentoo | |
773 | %attr(755,root,root) %{_libdir}/util-vserver/distributions/gentoo/* | |
774 | %attr(755,root,root) %{_sbindir}/vdispatch-conf | |
775 | %attr(755,root,root) %{_sbindir}/vemerge | |
776 | %attr(755,root,root) %{_sbindir}/vesync | |
777 | %attr(755,root,root) %{_sbindir}/vupdateworld | |
778 | ||
0e0c7ff7 ER |
779 | %files -n vserver-distro-redhat |
780 | %defattr(644,root,root,755) | |
781 | %dir %{_sysconfdir}/vservers/.distributions/rh* | |
782 | %dir %{_sysconfdir}/vservers/.distributions/rh*/apt | |
783 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/rh*/apt/sources.list | |
784 | %{_libdir}/%{name}/distributions/rh* | |
785 | ||
786 | %files -n vserver-distro-suse | |
787 | %defattr(644,root,root,755) | |
788 | %dir %{_sysconfdir}/vservers/.distributions/suse* | |
789 | %dir %{_sysconfdir}/vservers/.distributions/suse*/apt | |
790 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vservers/.distributions/suse*/apt/sources.list | |
791 | %{_libdir}/%{name}/distributions/suse* | |
d765f9b1 JB |
792 | |
793 | %files -n vserver-distro-ubuntu | |
794 | %defattr(644,root,root,755) | |
795 | %{_libdir}/%{name}/distributions/breezy | |
796 | %{_libdir}/%{name}/distributions/dapper | |
797 | %{_libdir}/%{name}/distributions/edgy | |
798 | %{_libdir}/%{name}/distributions/feisty | |
799 | %{_libdir}/%{name}/distributions/gutsy | |
800 | %{_libdir}/%{name}/distributions/hoary | |
801 | %{_libdir}/%{name}/distributions/warty |