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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Apr 19 06:05:23 2004 UTC (15 years, 7 months ago) by klieber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
unmask x86 for 2.1.5

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $
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 IUSE=""
12 KEYWORDS="~x86 ~ppc ~sparc"
13
14 DEPEND="virtual/glibc
15 >=sys-libs/db-3.2
16 >=dev-libs/openssl-0.9.6k"
17
18 S="${WORKDIR}/${P}"
19
20 src_compile() {
21
22 # Enforce /var/cfengine for historical compatibility
23 econf \
24 --with-workdir=/var/cfengine \
25 --with-berkeleydb=/usr || die
26
27 # Fix Makefile to skip doc & inputs install to wrong locations
28 sed -i -e 's/\(SUBDIRS.*\) inputs doc/\1/' Makefile
29
30 emake || die
31 }
32
33 src_install() {
34 make DESTDIR=${D} install || die
35 dodoc AUTHORS ChangeLog COPYING README TODO
36
37 # Manually install doc and inputs
38 doinfo doc/*.info*
39 dohtml doc/*.html
40 dodoc inputs/*.example
41
42 # Create cfengine working directory
43 mkdir -p ${D}/var/cfengine
44 fperms 700 /var/cfengine
45 keepdir /var/cfengine/bin
46 keepdir /var/cfengine/inputs
47 }
48
49 pkg_postinst() {
50 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
51 then
52 einfo "Generating keys for localhost."
53 /usr/sbin/cfkey
54 fi
55
56
57 # Copy cfagent into the cfengine tree otherwise cfexecd won't
58 # find it. Most hosts cache their copy of the cfengine
59 # binaries here. This is the default search location for the
60 # binaries.
61
62 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
63 }

  ViewVC Help
Powered by ViewVC 1.1.20