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