~ressu/bcfg2/debian

« back to all changes in this revision

Viewing changes to gentoo/bcfg2-0.9.2.ebuild

  • Committer: Sami Haahtinen
  • Date: 2007-05-19 21:55:56 UTC
  • mfrom: (616.2.387)
  • Revision ID: ressu@ressukka.net-20070519215556-d20877b7tjfd0m0o
merge 0.9.3 upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
 
2
# Distributed under the terms of the GNU General Public License v2
 
3
# $Header: $
 
4
 
 
5
DESCRIPTION="Bcfg2 is a configuration management tool.  Package includes client
 
6
and server."
 
7
HOMEPAGE="http://www.mcs.anl.gov/cobalt/bcfg2"
 
8
 
 
9
# handle the "pre" case
 
10
MY_P="${P/_/}"
 
11
SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${MY_P}.tar.gz"
 
12
S="${WORKDIR}/${MY_P}"
 
13
 
 
14
LICENSE="BSD"
 
15
 
 
16
SLOT="0"
 
17
KEYWORDS="~x86"
 
18
IUSE=""
 
19
 
 
20
DEPEND="app-portage/gentoolkit
 
21
    dev-python/elementtree
 
22
        dev-python/pyopenssl
 
23
        dev-python/lxml
 
24
        ( || ( app-admin/gamin
 
25
        app-admin/fam ) )"
 
26
 
 
27
RDEPEND=""
 
28
 
 
29
src_compile() {
 
30
        python setup.py build
 
31
}
 
32
 
 
33
src_install() {
 
34
        install -d ${D}/usr/sbin
 
35
        install -d ${D}/etc/init.d
 
36
        exeinto /etc/init.d
 
37
        exeopts -m0755
 
38
        newexe ${FILESDIR}/bcfg2-server.rc bcfg2-server
 
39
        python setup.py install \
 
40
           --root=${D} \
 
41
           --record=PY_SERVER_LIBS \
 
42
           --install-scripts /usr/sbin
 
43
}
 
44
 
 
45
pkg_postinst () {
 
46
        depscan.sh
 
47
}
 
48
 
 
49
pkg_postrm () {
 
50
        depscan.sh
 
51
}