/[gentoo-x86]/net-misc/cfengine/cfengine-2.1.6.ebuild
Gentoo

Contents of /net-misc/cfengine/cfengine-2.1.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Oct 30 13:30:31 2004 UTC (15 years, 1 month ago) by klieber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
removed old files

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.1.6.ebuild,v 1.6 2004/10/04 22:18:26 pvdabeel Exp $
4
5 DESCRIPTION="An agent/software robot and a high level policy language for building expert systems to administrate and configure large computer networks"
6 HOMEPAGE="http://www.iu.hio.no/cfengine/"
7 SRC_URI="ftp://ftp.iu.hio.no/pub/cfengine/${P}.tar.gz"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="x86 ppc ~sparc arm"
12 IUSE=""
13
14 DEPEND="virtual/libc
15 >=sys-libs/db-3.2
16 >=dev-libs/openssl-0.9.6k"
17
18 src_compile() {
19
20 # Enforce /var/cfengine for historical compatibility
21 econf \
22 --with-workdir=/var/cfengine \
23 --with-berkeleydb=/usr || die
24
25 # Fix Makefile to skip doc & inputs install to wrong locations
26 sed -i -e 's/\(SUBDIRS.*\) inputs doc/\1/' Makefile
27
28 emake || die
29 }
30
31 src_install() {
32 make DESTDIR=${D} install || die
33 dodoc AUTHORS ChangeLog COPYING README TODO
34
35 # Manually install doc and inputs
36 doinfo doc/*.info*
37 dohtml doc/*.html
38 dodoc inputs/*.example
39
40 # Create cfengine working directory
41 mkdir -p ${D}/var/cfengine
42 fperms 700 /var/cfengine
43 keepdir /var/cfengine/bin
44 keepdir /var/cfengine/inputs
45 }
46
47 pkg_postinst() {
48 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
49 then
50 einfo "Generating keys for localhost."
51 /usr/sbin/cfkey
52 fi
53
54
55 # Copy cfagent into the cfengine tree otherwise cfexecd won't
56 # find it. Most hosts cache their copy of the cfengine
57 # binaries here. This is the default search location for the
58 # binaries.
59
60 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
61 }

  ViewVC Help
Powered by ViewVC 1.1.20