/[gentoo-x86]/net-misc/cfengine/cfengine-2.0.8_p1-r1.ebuild
Gentoo

Contents of /net-misc/cfengine/cfengine-2.0.8_p1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Oct 12 15:08:46 2003 UTC (16 years, 2 months ago) by klieber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
misc changes

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.0.8_p1-r1.ebuild,v 1.2 2003/10/04 23:24:47 klieber Exp $
4
5 PARCH=${P/_/}
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 econf \
22 --sysconfdir=/etc/cfengine \
23 --localstatedir=/var/lib/cfengine \
24 --with-workdir=/var/cfengine \
25 --with-berkeleydb=/usr || die
26
27 # Fix Makefile to skip docs install to wrong locations
28 cp Makefile Makefile.orig
29 sed 's/\(SUBDIRS.*\) inputs doc/\1/' Makefile.orig > Makefile
30
31 emake || die
32 }
33
34 src_install() {
35 make DESTDIR=${D} install || die
36 dodoc AUTHORS ChangeLog COPYING DOCUMENTATION README TODO
37 doinfo doc/*.info*
38 dohtml doc/*.html
39 dodoc inputs/*.example
40
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 ln -sf /usr/sbin/cfagent /var/cfengine/bin/cfagent
55 }

  ViewVC Help
Powered by ViewVC 1.1.20