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

Contents of /net-misc/cfengine/cfengine-2.1.0_beta4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 11 23:14:49 2003 UTC (16 years, 1 month ago) by klieber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
bumped to beta 5

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $
4
5 PARCH=${P/_beta/b}
6 DESCRIPTION="An agent/software robot and a high level policy language for building expert systems to administrate and configure large computer networks"
7 HOMEPAGE="http://www.iu.hio.no/cfengine/"
8 SRC_URI="ftp://ftp.iu.hio.no/pub/cfengine/${PARCH}.tar.gz"
9
10 LICENSE="GPL-2"
11 SLOT="0"
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}/${PARCH}"
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 DOCUMENTATION 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