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