# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/freebsd-cddl-9.2_rc3.ebuild,v 1.1 2013/08/26 20:41:53 aballier Exp $ EAPI=4 inherit bsdmk freebsd toolchain-funcs multilib DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software" SLOT="0" IUSE="build" LICENSE="CDDL GPL-2" if [[ ${PV} != *9999* ]]; then KEYWORDS="~amd64-fbsd ~x86-fbsd" SRC_URI="mirror://gentoo/${P}.tar.bz2 mirror://gentoo/${CONTRIB}.tar.bz2 mirror://gentoo/${UBIN}.tar.bz2 mirror://gentoo/${LIB}.tar.bz2 mirror://gentoo/${SBIN}.tar.bz2 mirror://gentoo/${SYS}.tar.bz2 build? ( mirror://gentoo/${INCLUDE}.tar.bz2 )" fi # sys is required. RDEPEND="=sys-freebsd/freebsd-lib-${RV}* =sys-freebsd/freebsd-libexec-${RV}* build? ( sys-apps/baselayout )" DEPEND="${RDEPEND} =sys-freebsd/freebsd-mk-defs-${RV}* !build? ( =sys-freebsd/freebsd-sources-${RV}* )" S="${WORKDIR}/cddl" PATCHES=( "${FILESDIR}/${PN}-9.2-libpaths.patch" "${FILESDIR}/${PN}-9.2-underlink.patch" ) src_unpack() { freebsd_src_unpack # Link in include headers. ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.." } src_install() { # Install libraries proper place local mylibdir=$(get_libdir) mkinstall SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" || die gen_usr_ldscript -a avl nvpair umem uutil zfs zpool zfs_core # Install zfs volinit script. newinitd "${FILESDIR}"/zvol.initd-9.0 zvol # Install zfs script newinitd "${FILESDIR}"/zfs.initd zfs keepdir /etc/zfs }