1 |
pva 10/07/30 10:29:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vzctl-3.0.24.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.71 sys-cluster/vzctl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/vzctl/ChangeLog?rev=1.71&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/vzctl/ChangeLog?rev=1.71&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/vzctl/ChangeLog?r1=1.70&r2=1.71 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v |
19 |
retrieving revision 1.70 |
20 |
retrieving revision 1.71 |
21 |
diff -u -r1.70 -r1.71 |
22 |
--- ChangeLog 2 Jul 2010 15:11:05 -0000 1.70 |
23 |
+++ ChangeLog 30 Jul 2010 10:29:50 -0000 1.71 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sys-cluster/vzctl |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v 1.70 2010/07/02 15:11:05 pva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/ChangeLog,v 1.71 2010/07/30 10:29:50 pva Exp $ |
29 |
+ |
30 |
+*vzctl-3.0.24.1 (30 Jul 2010) |
31 |
+ |
32 |
+ 30 Jul 2010; Peter Volkov <pva@g.o> +vzctl-3.0.24.1.ebuild, |
33 |
+ +files/vzctl-3.0.24.1-vzpostup.patch: |
34 |
+ Version bump. |
35 |
|
36 |
02 Jul 2010; Peter Volkov <pva@g.o> vzctl-3.0.24.ebuild: |
37 |
Fix QA warning: econf should be in src_configure. |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-cluster/vzctl/vzctl-3.0.24.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.24.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.24.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vzctl-3.0.24.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vzctl/vzctl-3.0.24.1.ebuild,v 1.1 2010/07/30 10:29:50 pva Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit bash-completion eutils |
55 |
|
56 |
DESCRIPTION="OpenVZ ConTainers control utility" |
57 |
HOMEPAGE="http://openvz.org/" |
58 |
SRC_URI="http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ia64 ~ppc64 ~sparc ~x86" |
63 |
IUSE="bash-completion" |
64 |
|
65 |
RDEPEND=" |
66 |
net-firewall/iptables |
67 |
sys-apps/ed |
68 |
sys-apps/iproute2 |
69 |
sys-fs/vzquota |
70 |
virtual/cron" |
71 |
|
72 |
DEPEND="${RDEPEND}" |
73 |
|
74 |
src_prepare() { |
75 |
# Set default OSTEMPLATE on gentoo |
76 |
sed -e 's:=redhat-:=gentoo-:' -i etc/dists/default || die |
77 |
epatch "${FILESDIR}/${P}-vzpostup.patch" |
78 |
} |
79 |
|
80 |
src_configure() { |
81 |
econf \ |
82 |
--localstatedir=/var \ |
83 |
--enable-cron \ |
84 |
--enable-udev \ |
85 |
$(use_enable bash-completion bashcomp) \ |
86 |
--enable-logrotate |
87 |
} |
88 |
|
89 |
src_install() { |
90 |
make DESTDIR="${D}" install install-gentoo || die "make install failed" |
91 |
|
92 |
# install the bash-completion script into the right location |
93 |
rm -rf "${D}"/etc/bash_completion.d |
94 |
dobashcompletion "${S}"/etc/bash_completion.d/vzctl.sh vzctl |
95 |
|
96 |
# We need to keep some dirs |
97 |
keepdir /vz/{dump,lock,root,private,template/cache} |
98 |
keepdir /etc/vz/names /var/lib/vzctl/veip |
99 |
} |
100 |
|
101 |
pkg_postinst() { |
102 |
bash-completion_pkg_postinst |
103 |
local conf_without_OSTEMPLATE |
104 |
for file in \ |
105 |
$(find "${ROOT}/etc/vz/conf/" \( -name *.conf -a \! -name 0.conf \)); do |
106 |
if ! grep '^OSTEMPLATE' $file > /dev/null; then |
107 |
conf_without_OSTEMPLATE+=" $file" |
108 |
fi |
109 |
done |
110 |
|
111 |
if [[ -n ${conf_without_OSTEMPLATE} ]]; then |
112 |
ewarn |
113 |
ewarn "OSTEMPLATE default was changed from redhat-like to gentoo." |
114 |
ewarn "This means that any VEID.conf files without explicit or correct" |
115 |
ewarn "OSTEMPLATE set will use gentoo scripts instead of redhat." |
116 |
ewarn "Please check the following configs:" |
117 |
for file in ${conf_without_OSTEMPLATE}; do |
118 |
ewarn "${file}" |
119 |
done |
120 |
ewarn |
121 |
fi |
122 |
|
123 |
ewarn "To avoid loosing network to CTs on iface down/up, please, add the" |
124 |
ewarn "following code to /etc/conf.d/net:" |
125 |
ewarn " postup() {" |
126 |
ewarn " /usr/sbin/vzifup-post \${IFACE}" |
127 |
ewarn " }" |
128 |
|
129 |
elog "NOTE: Starting with vzctl-3.0.22 the mechanism for choosing the" |
130 |
elog "interfaces to send ARP requests to has been improved (see description" |
131 |
elog "of NEIGHBOUR_DEVS in vz.conf(5) man page). In case CT IP addresses" |
132 |
elog "are not on the same subnet as HN IPs, it may lead to such CTs being" |
133 |
elog "unreachable from the outside world." |
134 |
elog |
135 |
elog "The solution is to set up a device route(s) for the network your CTs are" |
136 |
elog "in. For more details, see http://bugzilla.openvz.org/show_bug.cgi?id=771#c1" |
137 |
elog |
138 |
elog "The old vzctl behavior can be restored by setting NEIGHBOUR_DEVS to any" |
139 |
elog 'value other than "detect" in /etc/vz/vz.conf.' |
140 |
} |