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

Contents of /net-misc/cfengine/cfengine-2.1.11-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.11-r2.ebuild,v 1.2 2005/01/27 21:40:48 klieber Exp $
4
5 inherit gnuconfig 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 exeinto /etc/init.d
41 newexe "${FILESDIR}/cfservd.rc6" cfservd
42
43 make DESTDIR=${D} install || die
44 dodoc AUTHORS ChangeLog COPYING README TODO
45
46 # Manually install doc and inputs
47 doinfo doc/*.info*
48 dohtml doc/*.html
49 dodoc inputs/*.example
50 dodoc ${FILESDIR}/cfportage.README
51
52 # Create cfengine working directory
53 mkdir -p ${D}/var/cfengine
54 fperms 700 /var/cfengine
55 keepdir /var/cfengine/bin
56 keepdir /var/cfengine/inputs
57 dodir /var/cfengine/modules
58 tar jxf ${FILESDIR}/module-cfportage.tbz2 -C ${D}/var/cfengine/modules
59 fowners root:root /var/cfengine/modules/module\:cfportage
60 }
61
62 pkg_postinst() {
63 if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ]
64 then
65 einfo "Generating keys for localhost."
66 /usr/sbin/cfkey
67 fi
68
69
70 # Copy cfagent into the cfengine tree otherwise cfexecd won't
71 # find it. Most hosts cache their copy of the cfengine
72 # binaries here. This is the default search location for the
73 # binaries.
74
75 cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/
76
77 einfo
78 einfo "Now an init script for cfservd is provided."
79 einfo
80 einfo "To run cfengine out of cron every half hour modify your crontab:"
81 einfo "0,30 * * * * /usr/sbin/cfexecd -F"
82 einfo
83 }

  ViewVC Help
Powered by ViewVC 1.1.20