summaryrefslogtreecommitdiffstats
path: root/gentoo/bcfg2-0.9.2.ebuild
blob: 76e5bee0cd81cf0b41d2bc5546a1d17a0bb7b694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Bcfg2 is a configuration management tool.  Package includes client
and server."
HOMEPAGE="http://www.mcs.anl.gov/cobalt/bcfg2"

# handle the "pre" case
MY_P="${P/_/}"
SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"

LICENSE="BSD"

SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-portage/gentoolkit
    dev-python/elementtree
	dev-python/pyopenssl
	dev-python/lxml
	( || ( app-admin/gamin
	app-admin/fam ) )"

RDEPEND=""

src_compile() {
	python setup.py build
}

src_install() {
	install -d ${D}/usr/sbin
	install -d ${D}/etc/init.d
	exeinto /etc/init.d
	exeopts -m0755
	newexe ${FILESDIR}/bcfg2-server.rc bcfg2-server
	python setup.py install \
	   --root=${D} \
	   --record=PY_SERVER_LIBS \
	   --install-scripts /usr/sbin
}

pkg_postinst () {
	depscan.sh
}

pkg_postrm () {
	depscan.sh
}