| 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-kernel/pf-sources/pf-sources-3.4.5.ebuild,v 1.1 2012/07/17 17:33:40 hwoarang Exp $ |
| 4 |
|
| 5 |
EAPI="2" |
| 6 |
|
| 7 |
inherit versionator |
| 8 |
|
| 9 |
COMPRESSTYPE=".bz2" |
| 10 |
K_USEPV="yes" |
| 11 |
UNIPATCH_STRICTORDER="yes" |
| 12 |
K_SECURITY_UNSUPPORTED="1" |
| 13 |
|
| 14 |
CKV="$(get_version_component_range 1-2)" |
| 15 |
ETYPE="sources" |
| 16 |
inherit kernel-2 |
| 17 |
detect_version |
| 18 |
K_NOSETEXTRAVERSION="don't_set_it" |
| 19 |
|
| 20 |
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" |
| 21 |
HOMEPAGE="http://pf.natalenko.name/" |
| 22 |
|
| 23 |
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" |
| 24 |
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" |
| 25 |
EXPERIMENTAL_PATCHES=( |
| 26 |
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html |
| 27 |
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch |
| 28 |
) |
| 29 |
EXPERIMENTAL_URI=" |
| 30 |
experimental? ( |
| 31 |
${EXPERIMENTAL_PATCHES[@]} |
| 32 |
) |
| 33 |
" |
| 34 |
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} |
| 35 |
|
| 36 |
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" |
| 37 |
IUSE="" # experimental |
| 38 |
|
| 39 |
KV_FULL="${PVR}-pf" |
| 40 |
S="${WORKDIR}"/linux-"${KV_FULL}" |
| 41 |
|
| 42 |
pkg_setup(){ |
| 43 |
ewarn |
| 44 |
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." |
| 45 |
ewarn "If you need support, please contact the pf developers directly." |
| 46 |
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" |
| 47 |
ewarn "the ebuilds. Thank you." |
| 48 |
ewarn |
| 49 |
kernel-2_pkg_setup |
| 50 |
} |
| 51 |
|
| 52 |
src_prepare(){ |
| 53 |
epatch "${DISTDIR}"/"${PF_FILE}" |
| 54 |
} |
| 55 |
|
| 56 |
pkg_postinst() { |
| 57 |
kernel-2_pkg_postinst |
| 58 |
|
| 59 |
elog |
| 60 |
elog "${P} has the following optional runtime dependencies:" |
| 61 |
elog " sys-apps/tuxonice-userui" |
| 62 |
elog " provides minimal userspace progress information related to" |
| 63 |
elog " suspending and resuming process" |
| 64 |
elog " sys-power/hibernate-script or sys-power/pm-utils" |
| 65 |
elog " runtime utilites for hibernating and suspending your computer" |
| 66 |
elog |
| 67 |
} |
| 68 |
|
| 69 |
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, |
| 70 |
see: ${HOMEPAGE}." |