diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2009-03-28 03:13:02 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2009-03-28 03:13:02 +0000 |
commit | 256d67f11a4c98e0fc58b5d933b4175b3eb7e57b (patch) | |
tree | e50a17f5f391da7bab82507f647858e09e796530 /sys-apps/sreadahead/sreadahead-1.0-r1.ebuild | |
parent | more to the list (diff) | |
download | gentoo-2-256d67f11a4c98e0fc58b5d933b4175b3eb7e57b.tar.gz gentoo-2-256d67f11a4c98e0fc58b5d933b4175b3eb7e57b.tar.bz2 gentoo-2-256d67f11a4c98e0fc58b5d933b4175b3eb7e57b.zip |
Fix init script, create a dir that is needed for runtime. follow-up on bug 257207
(Portage version: 2.1.6.10/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/sreadahead/sreadahead-1.0-r1.ebuild')
-rw-r--r-- | sys-apps/sreadahead/sreadahead-1.0-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sys-apps/sreadahead/sreadahead-1.0-r1.ebuild b/sys-apps/sreadahead/sreadahead-1.0-r1.ebuild new file mode 100644 index 000000000000..5a702e5ee7f3 --- /dev/null +++ b/sys-apps/sreadahead/sreadahead-1.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sreadahead/sreadahead-1.0-r1.ebuild,v 1.1 2009/03/28 03:13:02 darkside Exp $ + +inherit eutils + +DESCRIPTION="A readahead implementation optimized for solid state disks" +HOMEPAGE="http://code.google.com/p/sreadahead/" +SRC_URI="http://sreadahead.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/sreadahead_iter_ctrl.patch" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README "${FILESDIR}/0001-kernel-trace-open.patch" || die + newinitd "${FILESDIR}"/sreadahead.rc sreadahead || die + keepdir "/var/lib/sreadahead/debugfs" || die "dodir failed" +} + +pkg_postinst() { + elog "Sreadahead requires a kernel built with the trace-open patch," + elog "which can be found in /usr/share/doc/${PF}" + elog "If you don't know how to do this, it may be best to stay away from it" + elog + elog "To add sreadahead to your runlevels:" + elog " # rc-update add sreadahead boot" +} |