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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Nov 1 20:47:03 2004 UTC (15 years, 2 months ago) by klieber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
forgot to inherit gnuconfig

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

  ViewVC Help
Powered by ViewVC 1.1.20