mgorny      15/03/08 14:01:56

  Modified:             ChangeLog
  Added:                boot0-10.1.ebuild
  Log:
  Add FreeBSD 10.1 ebuilds, 
https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/46 by nigoro.
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 
EFB4464E!)

Revision  Changes    Path
1.51                 sys-freebsd/boot0/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?rev=1.51&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?rev=1.51&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/ChangeLog?r1=1.50&r2=1.51

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- ChangeLog   18 Feb 2015 17:09:17 -0000      1.50
+++ ChangeLog   8 Mar 2015 14:01:56 -0000       1.51
@@ -1,6 +1,13 @@
 # ChangeLog for sys-freebsd/boot0
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.50 
2015/02/18 17:09:17 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.51 
2015/03/08 14:01:56 mgorny Exp $
+
+*boot0-10.1 (08 Mar 2015)
+
+  08 Mar 2015; Michał Górny <[email protected]> +boot0-10.1.ebuild,
+  +files/boot0-10.1-drop-unsupport-cflags.patch, +files/boot0-10.1-gcc46.patch:
+  Add FreeBSD 10.1 ebuilds, https://github.com/gentoo/gentoo-portage-rsync-
+  mirror/pull/46 by nigoro.
 
   18 Feb 2015; Michał Górny <[email protected]>
   +files/boot0-add-nossp-cflags.patch, boot0-9.1.ebuild, boot0-9.2.ebuild:



1.1                  sys-freebsd/boot0/boot0-10.1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/boot0-10.1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/boot0-10.1.ebuild?rev=1.1&content-type=text/plain

Index: boot0-10.1.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-10.1.ebuild,v 1.1 
2015/03/08 14:01:56 mgorny Exp $

EAPI=3

inherit bsdmk freebsd flag-o-matic toolchain-funcs

DESCRIPTION="FreeBSD's bootloader"
SLOT="0"

IUSE="bzip2 ieee1394 tftp zfs"

if [[ ${PV} != *9999* ]]; then
        KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
        SRC_URI="http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${SYS}.tar.xz
                http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${LIB}.tar.xz
                
http://dev.gentoo.org/~mgorny/dist/freebsd/${RV}/${CONTRIB}.tar.xz";
fi

RDEPEND=""
DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*
        =sys-freebsd/freebsd-lib-${RV}*
        !sparc-fbsd? ( sys-devel/clang )"

S="${WORKDIR}/sys/boot"

PATCHES=( "${FILESDIR}/${PN}-10.1-gcc46.patch"
        "${FILESDIR}/${PN}-10.1-drop-unsupport-cflags.patch"
        "${FILESDIR}/${PN}-add-nossp-cflags.patch" )

boot0_use_enable() {
        use ${1} && mymakeopts="${mymakeopts} LOADER_${2}_SUPPORT=\"yes\""
        use ${1} || mymakeopts="${mymakeopts} WITHOUT_${2}= "
}

pkg_setup() {
        boot0_use_enable ieee1394 FIREWIRE
        boot0_use_enable zfs ZFS
        boot0_use_enable tftp TFTP
        boot0_use_enable bzip2 BZIP2
}

src_prepare() {
        use sparc-fbsd || export CC=clang
        sed -e '/-mno-align-long-strings/d' \
                -i "${S}"/i386/boot2/Makefile \
                -i "${S}"/i386/gptboot/Makefile \
                -i "${S}"/i386/gptzfsboot/Makefile \
                -i "${S}"/i386/zfsboot/Makefile || die
}

src_compile() {
        strip-flags
        append-flags "-fno-strict-aliasing"

        if use amd64-fbsd; then
                cd "${S}/userboot/libstand" || die
                freebsd_src_compile
                cd "${S}/userboot/zfs" || die
                freebsd_src_compile
                cd "${S}/libstand32" || die
                freebsd_src_compile
        fi
        cd "${WORKDIR}/lib/libstand" || die
        freebsd_src_compile

        cd "${S}"
        CFLAGS="${CFLAGS} -I${WORKDIR}/lib/libstand"
        LDFLAGS="${LDFLAGS} -L${WORKDIR}/lib/libstand"
        export LIBSTAND="${WORKDIR}/lib/libstand/libstand.a"
        NOFLAGSTRIP="yes" freebsd_src_compile
}

src_install() {
        dodir /boot/defaults
        mkinstall FILESDIR=/boot || die "mkinstall failed"

        cd "${WORKDIR}/sys/$(tc-arch-kernel)/conf" || die
        insinto /boot
        newins GENERIC.hints device.hints

        echo 'CONFIG_PROTECT="/boot/device.hints"' > "${T}"/50boot0
        doenvd "${T}"/50boot0
}




Reply via email to