Репозиторий Sisyphus
Последнее обновление: 20 сентября 2019 | Пакетов: 17474 | Посещений: 15136216
en ru br
Репозитории ALT
5.1: 3.0.23-alt3
4.1: 3.0.22-alt3
4.0: 3.0.22-alt2

Группа :: Система/Настройка/Прочее
Пакет: vzctl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: vzctl
Version: 4.9.4
Release: alt1

Summary: OpenVZ Virtual Environments control utility
License: GPL
Group: System/Configuration/Other
Url: http://openvz.org/
Packager: Evgenii Terechkov <evg at altlinux.org>

# http://download.openvz.org/utils/vzctl/%version/src/vzctl-%version.tar.bz2

Source: %name-%version.tar
Patch: %name-%version-alt.patch

# these reqs are for vz helper scripts

Requires: vzquota ploop >= 1.4
Requires: network-config-subsystem
# vzmigrate
Requires: rsync
# vzctl create
Requires: attr

BuildRequires: setproctitle-devel ploop libploop-devel libxml2-devel libcgroup-devel

%define _pkgconfdir /etc/vz
%add_findreq_skiplist %_pkgconfdir/dists/scripts/*

OpenVZ is an Operating System-level server virtualization solution, built
on Linux.  OpenVZ creates isolated, secure virtual private servers on a
single physical server enabling better server utilization and ensuring
that applications do not conflict.  Each VE performs and executes exactly
like a stand-alone server; VEs can be rebooted independently and have
root access, users, IP addresses, memory, processes, files, applications,
system libraries and configuration files.

This package contain the control tool to manipulate
OpenVZ Virtual Environments.

%patch -p1

%add_optflags -fno-strict-aliasing
%configure --enable-bashcomp --enable-logrotate --disable-silent-rules vzdir=/var/lib/vz

%makeinstall_std install-altlinux
if [ %_initdir != /etc/init.d ]; then
mkdir -p `dirname %buildroot%_initdir`
mv %buildroot/etc/init.d %buildroot%_initdir
chmod 700 %buildroot%_pkgconfdir
chmod 710 %buildroot/var/lib/vz
chmod 700 %buildroot/var/lib/vz/*
chmod 710 %buildroot/var/lib/vz/template
chmod 3770 %buildroot/var/lib/vz/template/cache

touch %buildroot/etc/sysconfig/vzeventd

/usr/sbin/groupadd -r -f _vzctl
if [ -L %_pkgconfdir/conf -a -d %_pkgconfdir/conf -a ! -e %_pkgconfdir/conf.rpmsave ]; then
mv %_pkgconfdir/conf %_pkgconfdir/conf.rpmsave
if [ "$(readlink %_pkgconfdir/conf.rpmsave)" = ../sysconfig/vz-scripts ]; then
mkdir -p %_pkgconfdir/conf &&
mv %_pkgconfdir/conf.rpmsave/* \

rm -f /dev/vzctl
mknod -m 600 /dev/vzctl c 126 0
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add vz ||:

%post_service vzeventd

if [ ! -e /etc/net/ifup-post-local ]; then
ln -sf %_sbindir/vzifup-post /etc/net/ifup-post-local
elif readlink /etc/net/ifup-post-local | fgrep -q %_sbindir/vzifup-post; then
       : # Nothing to do, symlink already points to our script
       echo " WARNING: file /etc/net/ifup-post-local is present!"
       echo " You have to manually edit the above file so that"
       echo " it calls %_sbindir/vzifup-post"

# (Upgrading from <= vzctl-3.0.24)

# If vz is running and vzeventd is not, start it
if %_initddir/vz status >/dev/null 2>&1; then
if ! %_initddir/vzeventd status >/dev/null 2>&1; then
%_initddir/vzeventd start
exit 0

%preun_service vz
%preun_service vzeventd

%doc ChangeLog
%config %_initdir/*
%config(noreplace) /etc/logrotate.d/*
%dir %_pkgconfdir
%dir %_pkgconfdir/names
%config(noreplace) %_pkgconfdir/vz.conf
%config(noreplace) %_pkgconfdir/download.conf
%config(noreplace) %_pkgconfdir/osrelease.conf
%config(noreplace) %_pkgconfdir/oom-groups.conf
%ghost %config(noreplace) /etc/sysconfig/vzeventd
%config %_pkgconfdir/conf
%config %_pkgconfdir/dists
%config /etc/sysconfig/network-scripts/*
%config /etc/net/*/*
%config /etc/udev/rules.d/*
%config /etc/bash_completion.d/*



Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin