| 1 |
hwoarang |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-fs/e4rat/e4rat-0.2.1-r1.ebuild,v 1.1 2011/12/11 21:58:42 mgorny Exp $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
inherit cmake-utils linux-info
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Toolset to accelerate the boot process and application startup"
|
| 10 |
|
|
HOMEPAGE="http://e4rat.sourceforge.net/"
|
| 11 |
|
|
SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="GPL-3"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 16 |
|
|
IUSE=""
|
| 17 |
|
|
|
| 18 |
|
|
DEPEND="dev-lang/perl
|
| 19 |
|
|
>=dev-libs/boost-1.42
|
| 20 |
|
|
sys-fs/e2fsprogs
|
| 21 |
|
|
sys-process/audit"
|
| 22 |
|
|
RDEPEND="${DEPEND}"
|
| 23 |
|
|
|
| 24 |
|
|
CONFIG_CHECK="~AUDITSYSCALL"
|
| 25 |
|
|
|
| 26 |
|
|
PATCHES=(
|
| 27 |
|
|
"${FILESDIR}"/${PN}-shared-build.patch
|
| 28 |
|
|
"${FILESDIR}"/${PN}-libdir.patch
|
| 29 |
|
|
)
|
| 30 |
|
|
|
| 31 |
|
|
pkg_setup() {
|
| 32 |
|
|
check_extra_config
|
| 33 |
|
|
}
|
| 34 |
|
|
|
| 35 |
|
|
src_install() {
|
| 36 |
|
|
cmake-utils_src_install
|
| 37 |
|
|
# relocate binaries to /sbin. If someone knows of a better way to do it
|
| 38 |
|
|
# please do tell me
|
| 39 |
|
|
dodir sbin
|
| 40 |
|
|
find "${D}"/usr/sbin -type f -exec mv {} "${D}"/sbin/. \; \
|
| 41 |
|
|
|| die
|
| 42 |
|
|
}
|
| 43 |
|
|
|
| 44 |
|
|
pkg_postinst() {
|
| 45 |
|
|
elog
|
| 46 |
|
|
elog "Please consult the upstream wiki if you need help"
|
| 47 |
|
|
elog "configuring your system"
|
| 48 |
|
|
elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page"
|
| 49 |
|
|
elog
|
| 50 |
|
|
if has_version sys-apps/preload; then
|
| 51 |
|
|
elog "It appears you have sys-apps/preload installed. This may"
|
| 52 |
|
|
elog "has negative effects on ${PN}. You may want to disable preload"
|
| 53 |
|
|
elog "when using ${PN}."
|
| 54 |
|
|
elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page#Debian.2FUbuntu"
|
| 55 |
|
|
fi
|
| 56 |
|
|
}
|