Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/vzctl: ChangeLog vzctl-3.0.22-r10.ebuild
Date: Mon, 13 Oct 2008 09:26:02
Message-Id: E1KpJgd-0008CX-35@stork.gentoo.org
1 pva 08/10/13 09:25:59
2
3 Modified: ChangeLog
4 Added: vzctl-3.0.22-r10.ebuild
5 Log:
6 Made scripts openvz compatible. Skipped revisions to have possibility to put major updates (e.g. security) without this changes applied.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
8
9 Revision Changes Path
10 1.57 sys-cluster/vzctl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/vzctl/ChangeLog?rev=1.57&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/vzctl/ChangeLog?rev=1.57&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/vzctl/ChangeLog?r1=1.56&r2=1.57
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v
19 retrieving revision 1.56
20 retrieving revision 1.57
21 diff -u -r1.56 -r1.57
22 --- ChangeLog 28 Jul 2008 20:58:31 -0000 1.56
23 +++ ChangeLog 13 Oct 2008 09:25:59 -0000 1.57
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-cluster/vzctl
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v 1.56 2008/07/28 20:58:31 pchrist Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v 1.57 2008/10/13 09:25:59 pva Exp $
29 +
30 +*vzctl-3.0.22-r10 (13 Oct 2008)
31 +
32 + 13 Oct 2008; Peter Volkov <pva@g.o>
33 + +files/vzctl-3.0.22-scripts-openrc.patch, +vzctl-3.0.22-r10.ebuild:
34 + Made scripts openvz compatible. Skipped revisions to have possibility to
35 + put major updates (e.g. security) without this changes applied.
36
37 28 Jul 2008; Panagiotis Christopoulos <pchrist@g.o> metadata.xml:
38 Update metadata.xml to include USE flag descriptions. Entries taken from
39
40
41
42 1.1 sys-cluster/vzctl/vzctl-3.0.22-r10.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.22-r10.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.22-r10.ebuild?rev=1.1&content-type=text/plain
46
47 Index: vzctl-3.0.22-r10.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.22-r10.ebuild,v 1.1 2008/10/13 09:25:59 pva Exp $
52
53 inherit bash-completion eutils
54
55 DESCRIPTION="OpenVZ VE control utility"
56 HOMEPAGE="http://openvz.org/"
57 SRC_URI="http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ia64 ~ppc64 ~sparc ~x86"
62 IUSE="bash-completion logrotate"
63
64 RDEPEND="logrotate? ( app-admin/logrotate )
65 net-firewall/iptables
66 sys-apps/ed
67 sys-apps/iproute2
68 sys-fs/vzquota
69 virtual/cron"
70
71 DEPEND="${RDEPEND}"
72
73 src_unpack() {
74 unpack ${A}
75 cd "${S}"
76
77 epatch "${FILESDIR}"/${P}-capability-fix.patch
78 epatch "${FILESDIR}"/${P}-glibc28.patch
79 epatch "${FILESDIR}"/${P}-document-disable-modules.patch
80 epatch "${FILESDIR}"/${P}-workaround-gentoo-add_ip.patch
81 epatch "${FILESDIR}"/${P}-scripts-openrc.patch
82 }
83
84 src_compile() {
85 econf --localstatedir=/var \
86 --enable-cron \
87 --enable-udev \
88 $(use_enable bash-completion bashcomp) \
89 $(use_enable logrotate)
90
91 emake || die "emake failed!"
92 }
93
94 src_install() {
95 make DESTDIR="${D}" install install-gentoo || die "make install failed"
96
97 # install the bash-completion script into the right location
98 rm -rf "${D}"/etc/bash_completion.d
99 dobashcompletion "${S}"/etc/bash_completion.d/vzctl.sh vzctl
100
101 # We need to keep some dirs
102 keepdir /vz/{dump,lock,root,private,template/cache}
103 keepdir /etc/vz/names /var/lib/vzctl/veip
104 }
105
106 pkg_postinst() {
107 bash-completion_pkg_postinst
108 ewarn
109 if has_version "<sys-cluster/vzctl-3.0.10"; then
110 ewarn "The location of some vzctl files have changed. Most notably,"
111 ewarn "VE configuration files and samples directory has changed from"
112 ewarn "/etc/vz to /etc/vz/conf. In order to be able to work with"
113 ewarn "your VEs, please do the following:"
114 ewarn
115 ewarn "bash# mv /etc/vz/[0-9]*.conf /etc/vz/conf/"
116 ewarn
117 fi
118 ewarn "NOTE: Starting with vzctl-3.0.22 the mechanism for choosing the"
119 ewarn "interfaces to send ARP requests to has been improved (see description"
120 ewarn "of NEIGHBOUR_DEVS in vz.conf(5) man page). In case VE IP addresses"
121 ewarn "are not on the same subnet as HN IPs, it may lead to such VEs being"
122 ewarn "unreachable from the outside world."
123 ewarn
124 ewarn "The solution is to set up a device route(s) for the network your VEs are"
125 ewarn "in. For more details, see http://bugzilla.openvz.org/show_bug.cgi?id=771#c1"
126 ewarn
127 ewarn "The old vzctl behavior can be restored by setting NEIGHBOUR_DEVS to any"
128 ewarn 'value other than "detect" in /etc/vz/vz.conf.'
129 }