1 # Copyright 1999-2018 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit cmake-utils linux-info readme.gentoo-r1
7 DESCRIPTION="Toolset to accelerate the boot process and application startup"
8 HOMEPAGE="http://e4rat.sourceforge.net/"
9 #SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.tar.gz"
10 SRC_URI="https://dev.gentoo.org/~pacho/${PN}/${PN}-0.2.4_pre20141201.tar.xz"
19 >=dev-libs/boost-1.42:=
21 sys-process/audit[static-libs(+)]
26 CONFIG_CHECK="~AUDITSYSCALL"
29 "${FILESDIR}"/${PN}-0.2.2-shared-build.patch
30 "${FILESDIR}"/${PN}-0.2.2-libdir.patch
31 "${FILESDIR}"/${PN}-0.2.4-sysmacros.patch #580534
32 "${FILESDIR}"/${PN}-0.2.4-gcc6.patch #594046
33 "${FILESDIR}"/${PN}-0.2.4-strdup.patch
39 To launch systemd from e4rat you simply need to edit /etc/e4rat.conf
41 ; path to init process binary (DEFAULT: /sbin/init)\n
42 init /usr/lib/systemd/systemd"
46 cmake-utils_src_install
47 # relocate binaries to /sbin. If someone knows of a better way to do it
50 find "${D}"/usr/sbin -type f -exec mv {} "${D}"/sbin/. \; \
53 readme.gentoo_create_doc
57 readme.gentoo_print_elog
58 if has_version sys-apps/preload; then
59 elog "It appears you have sys-apps/preload installed. This may"
60 elog "has negative effects on ${PN}. You may want to disable preload"
61 elog "when using ${PN}."