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