blob: aa5e7f96d430f08b4c67b8a0ac5b059d65b8345e [file] [log] [blame]
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="6"
inherit arc-build-constants
DESCRIPTION="Ureadahead - Read files in advance during boot"
HOMEPAGE="https://launchpad.net/ureadahead"
SRC_URI="https://launchpad.net/ureadahead/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
IUSE="arcvm"
RDEPEND="
sys-apps/util-linux
>=sys-fs/e2fsprogs-1.41
sys-libs/libnih"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
PATCHES=(
"${FILESDIR}"/${P}-11.patch # Downloaded from upstream
"${FILESDIR}"/${P}-13.patch # Downloaded from upstream
"${FILESDIR}"/${P}-container.patch
"${FILESDIR}"/${P}-detect-rotational.patch
"${FILESDIR}"/${P}-sysmacros.h
"${FILESDIR}"/${P}-fileio-overflow.patch # crbug.com/216504
"${FILESDIR}"/${P}-large-readahead.patch
"${FILESDIR}"/${P}-pack-file-and-path-prefix-filter-options.patch
"${FILESDIR}"/${P}-16.patch # Downloaded from upstream
"${FILESDIR}"/${P}-no-debug-tracing.patch
"${FILESDIR}"/${P}-force-ssd-mode.patch
)
src_configure() {
econf --sbindir=/sbin
}
src_install() {
default
rm -r "${D}/etc/init"
# install init script
insinto /etc/init
doins "${FILESDIR}"/init/*.conf
# install executable into guest vendor image for ARCVM
if use arcvm; then
arc-build-constants-configure
exeinto "${ARC_VM_VENDOR_DIR}/bin"
doexe "${WORKDIR}/${P}/src/ureadahead"
fi
}