/[gentoo-x86]/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild
Gentoo

Contents of /sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 30 09:14:43 2012 UTC (7 years, 7 months ago) by naota
Branch: MAIN
Changes since 1.1: +25 -8 lines
Apply patch to add library search path. #409693; Install library proper place according to requesting binaries' (such as /sbin/zfs) path.

(Portage version: 2.2.0_alpha93/cvs/Linux x86_64)

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-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild,v 1.1 2012/01/16 16:37:08 aballier Exp $
4
5 EAPI=4
6
7 inherit bsdmk freebsd toolchain-funcs multilib
8
9 DESCRIPTION="FreeBSD CDDL (opensolaris/zfs) extra software"
10 SLOT="0"
11 KEYWORDS="~x86-fbsd"
12
13 IUSE="build"
14 LICENSE="CDDL"
15
16 SRC_URI="mirror://gentoo/${P}.tar.bz2
17 mirror://gentoo/${CONTRIB}.tar.bz2
18 mirror://gentoo/${UBIN}.tar.bz2
19 mirror://gentoo/${LIB}.tar.bz2
20 mirror://gentoo/${SBIN}.tar.bz2
21 mirror://gentoo/${SYS}.tar.bz2
22 build? ( mirror://gentoo/${SYS}.tar.bz2
23 mirror://gentoo/${INCLUDE}.tar.bz2 )"
24
25 # sys is required.
26
27 RDEPEND="=sys-freebsd/freebsd-lib-${RV}*
28 =sys-freebsd/freebsd-libexec-${RV}*
29 build? ( sys-apps/baselayout )
30 dev-libs/libelf"
31
32 DEPEND="${RDEPEND}
33 =sys-freebsd/freebsd-mk-defs-${RV}*
34 !build? ( =sys-freebsd/freebsd-sources-${RV}* )"
35
36 S="${WORKDIR}/cddl"
37
38 PATCHES=( "${FILESDIR}/${PN}-9.0-bsdxml.patch"
39 "${FILESDIR}/${PN}-9.0-underlink.patch"
40 "${FILESDIR}/${PN}-8.2-libpaths.patch" )
41
42 src_unpack() {
43 freebsd_src_unpack
44 # Link in include headers.
45 ln -s "/usr/include" "${WORKDIR}/include" || die "Symlinking /usr/include.."
46 }
47
48 src_install() {
49 # Install libraries proper place
50 local mylibdir=$(get_libdir)
51 for d in libavl libctf libdtrace; do
52 cd "${S}"/lib/$d
53 mkinstall SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" || die
54 done
55 for d in libnvpair libumem libuutil libzfs libzpool;do
56 cd "${S}"/lib/$d
57 mkinstall SHLIBDIR="/${mylibdir}" LIBDIR="/${mylibdir}" || die
58 done
59 for d in lib/drti sbin usr.bin usr.sbin; do
60 cd "${S}"/$d
61 mkinstall || die
62 done
63 mv "${ED}"/${mylibdir}/lib{nvpair,umem,uutil,zfs}{,_p}.a \
64 "${ED}"/${mylibdir}/libzpool.a \
65 "${ED}"/usr/${mylibdir} || die
66 gen_usr_ldscript libnvpair.so libumem.so libuutil.so libzfs.so libzpool.so
67 # Install zfs volinit script.
68
69 newinitd "${FILESDIR}"/zvol.initd zvol
70 }

  ViewVC Help
Powered by ViewVC 1.1.20