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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Oct 2 18:26:20 2005 UTC (14 years, 2 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
rev bump, metadata fix, ebuild cleanup, removed unused patch
(Portage version: 2.0.51.22-r2)

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.14.ebuild,v 1.5 2005/08/13 23:25:48 hansmi 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="~amd64 arm ppc sparc x86"
14 IUSE=""
15
16 DEPEND=">=sys-libs/db-3.2
17 >=dev-libs/openssl-0.9.6k"
18
19 src_compile() {
20 # Enforce /var/cfengine for historical compatibility
21 econf \
22 --with-workdir=/var/cfengine \
23 --with-berkeleydb=/usr || die
24
25 # Fix Makefile to skip doc & inputs install to wrong locations
26 sed -i -e 's/\(SUBDIRS.*\) inputs doc/\1/' Makefile
27
28 emake || die
29 }
30
31 src_install() {
32 newinitd "${FILESDIR}"/cfservd.rc6 cfservd
33
34 make DESTDIR="${D}" install || die
35 dodoc AUTHORS ChangeLog README TODO
36
37 # Manually install doc and inputs
38 doinfo doc/*.info*
39 dohtml doc/*.html
40 dodoc inputs/*.example
41 dodoc ${FILESDIR}/cfportage.README
42
43 # Create cfengine working directory
44 mkdir -p ${D}/var/cfengine
45 fperms 700 /var/cfengine
46 keepdir /var/cfengine/bin
47 keepdir /var/cfengine/inputs
48 dodir /var/cfengine/modules
49 tar jxf ${FILESDIR}/module-cfportage.tbz2 -C ${D}/var/cfengine/modules
50 fowners root:root /var/cfengine/modules/module\:cfportage
51 }
52
53 pkg_postinst() {
54 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
55 then
56 einfo "Generating keys for localhost."
57 /usr/sbin/cfkey
58 fi
59
60
61 # Copy cfagent into the cfengine tree otherwise cfexecd won't
62 # find it. Most hosts cache their copy of the cfengine
63 # binaries here. This is the default search location for the
64 # binaries.
65
66 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
67
68 einfo
69 einfo "Now an init script for cfservd is provided."
70 einfo
71 einfo "To run cfengine out of cron every half hour modify your crontab:"
72 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
73 einfo
74 }

  ViewVC Help
Powered by ViewVC 1.1.20