/[gentoo-x86]/app-admin/bcfg2/bcfg2-1.2.2.ebuild
Gentoo

Contents of /app-admin/bcfg2/bcfg2-1.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Apr 14 10:39:09 2012 UTC (2 years, 5 months ago) by xmw
Branch: MAIN
Changes since 1.1: +2 -2 lines
Replace gam-server with virtual/fam (thanks ssuominen)

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 xmw 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 xmw 1.2 # $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-1.2.2.ebuild,v 1.1 2012/04/14 10:21:20 xmw Exp $
4 xmw 1.1
5     EAPI="4"
6    
7     PYTHON_DEPEND="2:2.6"
8     SUPPORT_PYTHON_ABIS="1"
9     # ssl module required.
10     RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
11    
12     inherit distutils
13    
14     DESCRIPTION="configuration management tool"
15     HOMEPAGE="http://bcfg2.org"
16     SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz"
17    
18     LICENSE="BSD"
19     SLOT="0"
20     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
21     IUSE="doc server"
22    
23     DEPEND="dev-python/setuptools
24     doc? ( dev-python/sphinx )"
25     RDEPEND="app-portage/gentoolkit
26     dev-python/genshi
27 xmw 1.2 virtual/fam
28 xmw 1.1 server? (
29     dev-python/lxml
30     dev-libs/libgamin[python] )"
31    
32     PYTHON_MODNAME="Bcfg2"
33    
34     distutils_src_install_post_hook() {
35     if ! use server; then
36     rm -f "$(distutils_get_intermediate_installation_image)${EPREFIX}/usr/sbin/bcfg2-"*
37     fi
38     }
39    
40     src_compile() {
41     distutils_src_compile
42    
43     if use doc; then
44     einfo "Building Bcfg2 documentation"
45     PYTHONPATH="build-$(PYTHON -f --ABI)" \
46     sphinx-build doc doc_output || die
47     fi
48     }
49    
50     src_install() {
51     distutils_src_install --record=PY_SERVER_LIBS --install-scripts "${EPREFIX}/usr/sbin"
52    
53     if ! use server; then
54     rm -rf "${ED}usr/share/bcfg2" || die
55     rm -rf "${ED}usr/share/man/man8" || die
56     else
57     newinitd "${FILESDIR}/${PN}-server-1.2.0.rc" bcfg2-server
58     fi
59    
60     insinto /etc
61     doins examples/bcfg2.conf
62    
63     if use doc; then
64     pushd doc_output > /dev/null
65     insinto /usr/share/doc/${PF}/html
66     doins -r [a-z]* _images _static || die "Failed to install documentation"
67     popd > /dev/null
68     fi
69     }
70    
71     pkg_postinst () {
72     distutils_pkg_postinst
73    
74     if use server; then
75     einfo "If this is a new installation, you probably need to run:"
76     einfo " bcfg2-admin init"
77     fi
78     }

  ViewVC Help
Powered by ViewVC 1.1.20