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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Nov 20 03:05:15 2005 UTC (14 years, 2 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump, stable on x86, clean out old ebuild
(Portage version: 2.0.51.22-r3)

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-r1.ebuild,v 1.2 2005/08/17 04:45:02 ramereth 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.7"
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, & contrib install to wrong locations
26 sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile
27 sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile
28 sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile
29
30 emake || die
31 }
32
33 src_install() {
34 newinitd "${FILESDIR}"/cfservd.rc6 cfservd
35
36 make DESTDIR="${D}" install || die
37 dodoc AUTHORS ChangeLog README TODO INSTALL
38
39 # Manually install doc and inputs
40 doinfo doc/*.info*
41 dohtml doc/*.html
42 doman doc/*.8
43 dodoc ${FILESDIR}/cfportage.README
44 docinto examples
45 dodoc inputs/*.example
46
47 # Create cfengine working directory
48 mkdir -p ${D}/var/cfengine
49 fperms 700 /var/cfengine
50 keepdir /var/cfengine/bin
51 keepdir /var/cfengine/inputs
52 dodir /var/cfengine/modules
53 tar jxf ${FILESDIR}/module-cfportage.tbz2 -C ${D}/var/cfengine/modules
54 fowners root:root /var/cfengine/modules/module\:cfportage
55 }
56
57 pkg_postinst() {
58 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
59 then
60 einfo "Generating keys for localhost."
61 /usr/sbin/cfkey
62 fi
63
64
65 # Copy cfagent into the cfengine tree otherwise cfexecd won't
66 # find it. Most hosts cache their copy of the cfengine
67 # binaries here. This is the default search location for the
68 # binaries.
69
70 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
71
72 einfo
73 einfo "Now an init script for cfservd is provided."
74 einfo
75 einfo "To run cfengine out of cron every half hour modify your crontab:"
76 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
77 einfo
78 }

  ViewVC Help
Powered by ViewVC 1.1.20