Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/bcfg2: bcfg2-1.2.2-r1.ebuild ChangeLog
Date: Fri, 29 Jun 2012 06:28:50
Message-Id: 20120629062841.3FB272004C@flycatcher.gentoo.org
1 xmw 12/06/29 06:28:41
2
3 Modified: ChangeLog
4 Added: bcfg2-1.2.2-r1.ebuild
5 Log:
6 Revbump to fix trigger plugin security problem (bug 424025)
7
8 (Portage version: 2.1.11.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.26 app-admin/bcfg2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/bcfg2/ChangeLog?rev=1.26&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/bcfg2/ChangeLog?rev=1.26&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/bcfg2/ChangeLog?r1=1.25&r2=1.26
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v
20 retrieving revision 1.25
21 retrieving revision 1.26
22 diff -u -r1.25 -r1.26
23 --- ChangeLog 29 Jun 2012 06:16:32 -0000 1.25
24 +++ ChangeLog 29 Jun 2012 06:28:41 -0000 1.26
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-admin/bcfg2
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v 1.25 2012/06/29 06:16:32 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v 1.26 2012/06/29 06:28:41 xmw Exp $
30 +
31 +*bcfg2-1.2.2-r1 (29 Jun 2012)
32 +
33 + 29 Jun 2012; Michael Weber <xmw@g.o> +bcfg2-1.2.2-r1.ebuild,
34 + +files/bcfg2-1.2.2-CVE-2012-3366-Trigger-plugin.patch:
35 + Revbump to fix trigger plugin security problem (bug 424025)
36
37 29 Jun 2012; Michael Weber <xmw@g.o> bcfg2-1.2.2.ebuild, metadata.xml:
38 Add IUSE cheetah (bug 423231 by Alexandr Tiurin)
39
40
41
42 1.1 app-admin/bcfg2/bcfg2-1.2.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/bcfg2/bcfg2-1.2.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/bcfg2/bcfg2-1.2.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bcfg2-1.2.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-1.2.2-r1.ebuild,v 1.1 2012/06/29 06:28:40 xmw Exp $
52
53 EAPI="4"
54
55 PYTHON_DEPEND="2:2.6"
56 SUPPORT_PYTHON_ABIS="1"
57 # ssl module required.
58 RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
59
60 inherit distutils eutils
61
62 DESCRIPTION="configuration management tool"
63 HOMEPAGE="http://bcfg2.org"
64 SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz"
65
66 LICENSE="BSD"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
69 IUSE="doc cheetah genshi server"
70
71 DEPEND="dev-python/setuptools
72 doc? ( dev-python/sphinx )"
73 RDEPEND="app-portage/gentoolkit
74 cheetah? ( dev-python/cheetah )
75 genshi? ( dev-python/genshi )
76 server? (
77 virtual/fam
78 dev-python/lxml
79 dev-libs/libgamin[python] )"
80
81 PYTHON_MODNAME="Bcfg2"
82
83 distutils_src_install_post_hook() {
84 if ! use server; then
85 rm -f "$(distutils_get_intermediate_installation_image)${EPREFIX}/usr/sbin/bcfg2-"*
86 fi
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${P}-CVE-2012-3366-Trigger-plugin.patch
91 distutils_src_prepare
92 }
93
94 src_compile() {
95 distutils_src_compile
96
97 if use doc; then
98 einfo "Building Bcfg2 documentation"
99 PYTHONPATH="build-$(PYTHON -f --ABI)" \
100 sphinx-build doc doc_output || die
101 fi
102 }
103
104 src_install() {
105 distutils_src_install --record=PY_SERVER_LIBS --install-scripts "${EPREFIX}/usr/sbin"
106
107 if ! use server; then
108 rm -rf "${ED}usr/share/bcfg2" || die
109 rm -rf "${ED}usr/share/man/man8" || die
110 else
111 newinitd "${FILESDIR}/${PN}-server-1.2.0.rc" bcfg2-server
112 fi
113
114 insinto /etc
115 doins examples/bcfg2.conf
116
117 if use doc; then
118 pushd doc_output > /dev/null
119 insinto /usr/share/doc/${PF}/html
120 doins -r [a-z]* _images _static || die "Failed to install documentation"
121 popd > /dev/null
122 fi
123 }
124
125 pkg_postinst () {
126 distutils_pkg_postinst
127
128 if use server; then
129 einfo "If this is a new installation, you probably need to run:"
130 einfo " bcfg2-admin init"
131 fi
132 }