Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040416
en ru br
Репозитории ALT
S:7.0.254-alt2
D:3.0.22-alt2.1
5.1: 3.0.23-alt3
4.1: 3.0.22-alt3
4.0: 3.0.22-alt2
+updates:3.0.18-alt1
www.altlinux.org/Changes

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

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

Name: vzctl
Version: 3.0.22
Release: alt2.1

Summary: OpenVZ Virtual Environments control utility
License: GPL
Group: System/Configuration/Other
Url: http://openvz.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

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

Source: %name-%version-%release.tar

Requires(pre): coreutils, shadow-utils
Requires(post): %post_service
Requires(preun): %preun_service

# these reqs are for vz helper scripts

Requires: vzquota >= 2.7.0-4
Requires: network-config-subsystem
# vzmigrate
Requires: rsync

BuildRequires: setproctitle-devel

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

%description
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.

%prep
%setup -q -n %name-%version-%release

%build
autoreconf -fisv
%add_optflags -fno-strict-aliasing
%configure --enable-bashcomp --enable-logrotate
%make_build

%install
make install install-altlinux DESTDIR=%buildroot
if [ %_initdir != /etc/init.d ]; then
mkdir -p `dirname %buildroot%_initdir`
mv %buildroot/etc/init.d %buildroot%_initdir
fi
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

install -pD -m600 /dev/null %buildroot/etc/cron.d/vz

%pre
/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/* \
%_pkgconfdir/conf/
fi
fi

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

%preun
%preun_service vz

%postun -p %postun_ldconfig

%files
%doc ChangeLog
%defattr(-,root,root,-)
%config %_initdir/*
%config(noreplace) /etc/logrotate.d/*
%_datadir/vzctl
%_sbindir/*
%_libdir/lib*
%_mandir/man?/*
%dir %_pkgconfdir
%dir %_pkgconfdir/names
%config(noreplace) %_pkgconfdir/vz.conf
%config(noreplace) %_pkgconfdir/cron
%config %_pkgconfdir/conf
%config %_pkgconfdir/dists
%config /etc/sysconfig/network-scripts/*
%config /etc/net/*/*
%config /etc/udev/rules.d/*
%config /etc/bash_completion.d/*
%ghost /etc/cron.d/vz

%defattr(-,root,_vzctl,-)
/var/lib/vz

%changelog

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

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