diff options
author | Lance Albertson <ramereth@gentoo.org> | 2008-06-16 16:37:11 +0000 |
---|---|---|
committer | Lance Albertson <ramereth@gentoo.org> | 2008-06-16 16:37:11 +0000 |
commit | 0f2c423f43da4e5f7997c350592240e716e6d5f5 (patch) | |
tree | 1625390bdab31ad6fbb0780c6ae6a52bc007e4ba /net-misc/cfengine | |
parent | New revision of the live ebuild. Upstream switched to cmake, so let's follow ... (diff) | |
download | gentoo-2-0f2c423f43da4e5f7997c350592240e716e6d5f5.tar.gz gentoo-2-0f2c423f43da4e5f7997c350592240e716e6d5f5.tar.bz2 gentoo-2-0f2c423f43da4e5f7997c350592240e716e6d5f5.zip |
bump cfengine to 2.2.7
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-misc/cfengine')
-rw-r--r-- | net-misc/cfengine/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/cfengine/cfengine-2.2.7.ebuild | 82 |
2 files changed, 88 insertions, 1 deletions
diff --git a/net-misc/cfengine/ChangeLog b/net-misc/cfengine/ChangeLog index 886e3d4d9f68..3488e0cea2fd 100644 --- a/net-misc/cfengine/ChangeLog +++ b/net-misc/cfengine/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/cfengine # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.84 2008/06/08 11:58:37 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/ChangeLog,v 1.85 2008/06/16 16:37:11 ramereth Exp $ + +*cfengine-2.2.7 (16 Jun 2008) + + 16 Jun 2008; Lance Albertson <ramereth@gentoo.org> +cfengine-2.2.7.ebuild: + Bump version 08 Jun 2008; nixnut <nixnut@gentoo.org> cfengine-2.1.22-r1.ebuild: Stable on ppc wrt bug 220927 diff --git a/net-misc/cfengine/cfengine-2.2.7.ebuild b/net-misc/cfengine/cfengine-2.2.7.ebuild new file mode 100644 index 000000000000..7f2d5e0fd563 --- /dev/null +++ b/net-misc/cfengine/cfengine-2.2.7.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cfengine/cfengine-2.2.7.ebuild,v 1.1 2008/06/16 16:37:11 ramereth Exp $ + +inherit eutils + +DESCRIPTION="An automated suite of programs for configuring and maintaining +Unix-like computers" +HOMEPAGE="http://www.cfengine.org/" +SRC_URI="http://www.cfengine.org/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-libs/db-4 + >=dev-libs/openssl-0.9.7 + app-portage/portage-utils" + +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 + + # Fix man pages + sed -i -e 's/\/usr\/local/\/usr/' doc/*.8 + + emake || die +} + +src_install() { + newinitd "${FILESDIR}"/cfservd.rc6 cfservd + newinitd "${FILESDIR}"/cfenvd.rc6 cfenvd + newinitd "${FILESDIR}"/cfexecd.rc6 cfexecd + + make DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog README TODO INSTALL + + # Manually install doc and inputs + doman doc/*.8 + 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 +} + +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 "NOTE: The cfportage module has been deprecated in favor of the" + einfo " upstream 'packages' action." + einfo + einfo "Init scripts for cfservd, cfenvd, and cfexecd are now provided." + einfo + einfo "To run cfengine out of cron every half hour modify your crontab:" + einfo "0,30 * * * * /usr/sbin/cfexecd -F" + einfo +} |