# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-10.1-r6.ebuild,v 1.1 2015/07/29 12:14:42 mgorny Exp $ EAPI=5 inherit bsdmk freebsd flag-o-matic toolchain-funcs DESCRIPTION="FreeBSD kernel sources" SLOT="0" IUSE="+build-kernel debug dtrace zfs" # Security Advisory and Errata patches. UPSTREAM_PATCHES=( "SA-15:02/sctp.patch" "SA-15:03/sctp.patch" "SA-15:04/igmp.patch" "SA-15:04/igmp-errata.patch" "SA-15:09/ipv6.patch" "SA-15:13/tcp.patch" "SA-15:15/tcp-9.3-10.1.patch" "EN-15:01/vt.patch" "EN-15:05/ufs.patch" "EN-15:07/zfs.patch" ) if [[ ${PV} != *9999* ]]; then KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" SRC_URI="${SRC_URI} $(freebsd_upstream_patches)" fi EXTRACTONLY=" sys/ contrib/bmake/ usr.bin/bmake/ " use zfs && EXTRACTONLY+="cddl/" RDEPEND="dtrace? ( >=sys-freebsd/freebsd-cddl-9.2_rc1 ) =sys-freebsd/freebsd-mk-defs-${RV}* !sys-freebsd/virtio-kmod !sys-fs/fuse4bsd !> "${conf}" use dtrace || echo 'nomakeoptions WITH_CTF' >> "${conf}" # Only used with USE=build-kernel, let the kernel build with its own flags, its safer. unset LDFLAGS CFLAGS CXXFLAGS ASFLAGS KERNEL } src_configure() { if use build-kernel ; then tc-export CC cd "${S}/$(tc-arch-kernel)/conf" || die config ${KERN_BUILD} || die fi } src_compile() { if use build-kernel ; then if has_version "=sys-freebsd/freebsd-cddl-9.2_beta1' ; then ewarn "GENERIC config require sys-freebsd/freebsd-cddl. Please emerge it." fi }