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