/[gentoo-x86]/sys-apps/preload/preload-0.6.4-r3.ebuild
Gentoo

Contents of /sys-apps/preload/preload-0.6.4-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 10 20:24:40 2014 UTC (3 years, 5 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/preload-0.6.4-r3.ebuild,v 1.3 2012/11/21 10:11:11 ago Exp $
4
5 EAPI=4
6 inherit eutils autotools
7
8 DESCRIPTION="Adaptive readahead daemon"
9 HOMEPAGE="http://sourceforge.net/projects/preload/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="vanilla"
16
17 WANT_AUTOCONF="2.56"
18
19 RDEPEND=">=dev-libs/glib-2.6:2"
20 DEPEND="${RDEPEND}
21 virtual/pkgconfig
22 sys-apps/help2man"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/00-patch-configure.diff
26 epatch "${FILESDIR}"/02-patch-preload_conf.diff
27 epatch "${FILESDIR}"/02-patch-preload_sysconfig.diff
28 epatch "${FILESDIR}"/${PN}-0.6.4-use-help2man-as-usual.patch
29 epatch "${FILESDIR}"/${PN}-0.6.4-use-make-dependencies.patch
30 use vanilla || epatch "${FILESDIR}"/000{1,2,3}-*.patch
31 cat "${FILESDIR}"/preload-0.6.4.init.in-r2 > preload.init.in || die
32
33 eautoreconf
34 }
35
36 src_configure() {
37 econf --localstatedir=/var
38 }
39
40 src_install() {
41 default
42
43 # Remove log and state file from image or they will be
44 # truncated during merge
45 rm "${ED}"/var/lib/preload/preload.state || die "cleanup failed"
46 rm "${ED}"/var/log/preload.log || die "cleanup failed"
47 keepdir /var/lib/preload
48 keepdir /var/log
49 }
50
51 pkg_postinst() {
52 if [ "$(rc-config list default | grep preload)" = "" ] ; then
53 elog "You probably want to add preload to the default runlevel like so:"
54 elog "# rc-update add preload default"
55 fi
56
57 if has_version sys-fs/e4rat; then
58 elog "It appears you have sys-fs/e4rat installed. This may"
59 elog "has negative effects on it. You may want to disable preload"
60 elog "when using sys-fs/e4rat."
61 elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page#Debian.2FUbuntu"
62
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20