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