diff options
author | Michael Marineau <marineam@gentoo.org> | 2007-03-21 21:05:41 +0000 |
---|---|---|
committer | Michael Marineau <marineam@gentoo.org> | 2007-03-21 21:05:41 +0000 |
commit | 95f30f982cf36b8fa95c25ddbd3888447bb4625d (patch) | |
tree | fce7f0bb9761a1bd90db804ce56acf096206a1a8 /net-misc/cfengine/cfengine-2.1.22-r1.ebuild | |
parent | Version bump (1.0.1) (diff) | |
download | historical-95f30f982cf36b8fa95c25ddbd3888447bb4625d.tar.gz historical-95f30f982cf36b8fa95c25ddbd3888447bb4625d.tar.bz2 historical-95f30f982cf36b8fa95c25ddbd3888447bb4625d.zip |
Fix packages inform output in cfengine-2.1.22
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'net-misc/cfengine/cfengine-2.1.22-r1.ebuild')
-rw-r--r-- | net-misc/cfengine/cfengine-2.1.22-r1.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/cfengine/cfengine-2.1.22-r1.ebuild b/net-misc/cfengine/cfengine-2.1.22-r1.ebuild new file mode 100644 index 000000000000..2d6ac1ad298b --- /dev/null +++ b/net-misc/cfengine/cfengine-2.1.22-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.1.22-r1.ebuild,v 1.1 2007/03/21 21:05:41 marineam Exp $ + +inherit eutils + +DESCRIPTION="An agent/software robot and a high level policy language for building expert systems to administrate and configure large computer networks" +HOMEPAGE="http://www.iu.hio.no/cfengine/" +SRC_URI="ftp://ftp.iu.hio.no/pub/cfengine/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-libs/db-3.2 + >=dev-libs/openssl-0.9.7" + +src_unpack() { + unpack ${A} + + epatch ${FILESDIR}/${P}-package-fix.patch +} + +src_compile() { + # Enforce /var/cfengine for historical compatibility + econf \ + --with-workdir=/var/cfengine \ + --with-berkeleydb=/usr || die + + # Fix Makefile to skip doc,inputs, & contrib install to wrong locations + sed -i -e 's/\(DIST_SUBDIRS.*\) contrib inputs doc/\1/' Makefile + sed -i -e 's/\(SUBDIRS.*\) contrib inputs/\1/' Makefile + sed -i -e 's/\(install-data-am.*\) install-docDATA/\1/' Makefile + + emake || die +} + +src_install() { + newinitd "${FILESDIR}"/cfservd.rc6 cfservd + + make DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog README TODO INSTALL + + # Manually install doc and inputs + doinfo doc/*.info* + dohtml doc/*.html + doman doc/*.8 + dodoc ${FILESDIR}/cfportage.README + docinto examples + dodoc inputs/*.example + + # Create cfengine working directory + mkdir -p ${D}/var/cfengine + fperms 700 /var/cfengine + keepdir /var/cfengine/bin + keepdir /var/cfengine/inputs + dodir /var/cfengine/modules + tar jxf ${FILESDIR}/module-cfportage.tbz2 -C ${D}/var/cfengine/modules + fowners root:0 /var/cfengine/modules/module\:cfportage +} + +pkg_postinst() { + if [ ! -f "/var/cfengine/ppkeys/localhost.priv" ] + then + einfo "Generating keys for localhost." + /usr/sbin/cfkey + fi + + + # Copy cfagent into the cfengine tree otherwise cfexecd won't + # find it. Most hosts cache their copy of the cfengine + # binaries here. This is the default search location for the + # binaries. + + cp /usr/sbin/cf{agent,servd,execd} /var/cfengine/bin/ + + einfo + einfo "Now an init script for cfservd is provided." + einfo + einfo "To run cfengine out of cron every half hour modify your crontab:" + einfo "0,30 * * * * /usr/sbin/cfexecd -F" + einfo +} |