diff options
Diffstat (limited to 'sys-apps/preload')
-rw-r--r-- | sys-apps/preload/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/preload/preload-0.6.4.ebuild | 48 |
2 files changed, 55 insertions, 2 deletions
diff --git a/sys-apps/preload/ChangeLog b/sys-apps/preload/ChangeLog index f987104cf7cf..102b28e6f78f 100644 --- a/sys-apps/preload/ChangeLog +++ b/sys-apps/preload/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/preload -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/ChangeLog,v 1.8 2008/10/28 13:04:57 darkside Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/ChangeLog,v 1.9 2009/05/07 03:06:49 darkside Exp $ + +*preload-0.6.4 (07 May 2009) + + 07 May 2009; Jeremy Olexa <darkside@gentoo.org> +preload-0.6.4.ebuild: + version bump, bug 267538 28 Oct 2008; Jeremy Olexa <darkside@gentoo.org> files/init.d-preload: sys-apps/preload - fix another bashisms. bug #244491 diff --git a/sys-apps/preload/preload-0.6.4.ebuild b/sys-apps/preload/preload-0.6.4.ebuild new file mode 100644 index 000000000000..de90b022105e --- /dev/null +++ b/sys-apps/preload/preload-0.6.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/preload-0.6.4.ebuild,v 1.1 2009/05/07 03:06:49 darkside Exp $ + +inherit eutils + +DESCRIPTION="Adaptive readahead daemon." +HOMEPAGE="http://sourceforge.net/projects/preload" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="vanilla" + +RDEPEND="dev-libs/glib" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + use vanilla || epatch "${FILESDIR}/${PN}-0.6.3-forking-children.patch" + use vanilla || epatch "${FILESDIR}/${PN}-0.6.3-overlapping-io-bursts.patch" +} + +src_compile() { + econf --localstatedir=/var + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + rm -rf "${D}/etc/rc.d/" || die "rm rc.d failed" + rm -rf "${D}/etc/sysconfig/" || die "rm sysconfig failed" + rm -f "${D}/var/lib/preload/preload.state" || die "cleanup1 failed" + rm -f "${D}/var/log/preload.log" || die "cleanup2 failed" + keepdir /var/lib/preload + keepdir /var/log + newinitd "${FILESDIR}/init.d-preload" preload || die "initd failed" + newconfd "${FILESDIR}/conf.d-preload" preload || die "confd failed" + dodoc AUTHORS ChangeLog NEWS README THANKS TODO +} + +pkg_postinst() { + elog "To start preload at boot, remember to add it to a runlevel:" + elog "# rc-update add preload default" +} |