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

Contents of /net-misc/cfengine/cfengine-2.1.10-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Apr 30 02:39:37 2005 UTC (14 years, 7 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump, ebuild cleanup
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.10-r2.ebuild,v 1.2 2005/01/27 21:40:48 klieber Exp $
4
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 epatch ${FILESDIR}/${PN}-2.1.10-setnetgrent.patch
25 }
26
27 src_compile() {
28
29 # Enforce /var/cfengine for historical compatibility
30 econf \
31 --with-workdir=/var/cfengine \
32 --with-berkeleydb=/usr || die
33
34 # Fix Makefile to skip doc & inputs install to wrong locations
35 sed -i -e 's/\(SUBDIRS.*\) inputs doc/\1/' Makefile
36
37 emake || die
38 }
39
40 src_install() {
41 make DESTDIR=${D} install || die
42 dodoc AUTHORS ChangeLog COPYING README TODO
43
44 # Manually install doc and inputs
45 doinfo doc/*.info*
46 dohtml doc/*.html
47 dodoc inputs/*.example
48
49 # Create cfengine working directory
50 mkdir -p ${D}/var/cfengine
51 fperms 700 /var/cfengine
52 keepdir /var/cfengine/bin
53 keepdir /var/cfengine/inputs
54 dodir /var/cfengine/modules
55 cd ${D}/var/cfengine/modules
56 tar pjxf ${FILESDIR}/module-cfportage.tbz2
57 }
58
59 pkg_postinst() {
60 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
61 then
62 einfo "Generating keys for localhost."
63 /usr/sbin/cfkey
64 fi
65
66
67 # Copy cfagent into the cfengine tree otherwise cfexecd won't
68 # find it. Most hosts cache their copy of the cfengine
69 # binaries here. This is the default search location for the
70 # binaries.
71
72 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
73 }

  ViewVC Help
Powered by ViewVC 1.1.20