aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-12-23 13:39:15 +0000
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-12-23 13:39:15 +0000
commit352279169511f4d3462ee60e6924147f596a0960 (patch)
tree64920ad09bcee04ff077bc69831eda88223d8202 /sys-kernel
parentnexus-oss-bin: correct bug in base directory name (diff)
downloadssnb-352279169511f4d3462ee60e6924147f596a0960.tar.gz
ssnb-352279169511f4d3462ee60e6924147f596a0960.tar.bz2
ssnb-352279169511f4d3462ee60e6924147f596a0960.zip
update to zfs and spl to version 0.7.4
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/spl/Manifest3
-rw-r--r--sys-kernel/spl/metadata.xml11
-rw-r--r--sys-kernel/spl/spl-0.7.4.ebuild110
3 files changed, 124 insertions, 0 deletions
diff --git a/sys-kernel/spl/Manifest b/sys-kernel/spl/Manifest
new file mode 100644
index 0000000..8e20af2
--- /dev/null
+++ b/sys-kernel/spl/Manifest
@@ -0,0 +1,3 @@
+DIST spl-0.7.4.tar.gz 549297 SHA256 cae43c81838f90a444be25bdff5c6c3ee99ffe515a2f477d9758a6274a1a7dc4 SHA512 59d7f7af7550c09fe0bce1b8c619621631e3b8c4455b455ea711f6f84fb0e538fdc9efef402abb7f03f4ca600f28da31adc6a5377d5933adeef5fd184baf29c2 WHIRLPOOL 6ee22a88c4a401c995c1df6dc6d14179417bdd02873009241a6ac8f7a9a1b4bc722d422e67fda69fba541ad1a86ec2e6de803a82a378b0ced1a9f8af43a94b1a
+EBUILD spl-0.7.4.ebuild 2686 SHA256 fd58c7504a17d097115c041fb6d2479d4d67a91318648f5c47c4fc5d1b42d205 SHA512 40efef0df61bafa6616601a089154322cf632e544682b6ec99c71c10469e0955cf59d5fead2086d034b2e876146cb10c43fed5cf5456be46ae71a992e4e51785 WHIRLPOOL d637bdc7df802668120fd45bea7390484aecc341fff8f9e6eb31ae4a335aae202136b6fab4f98d258b984e4dcefe37abe89217287d05571d493df63b45daa7ca
+MISC metadata.xml 339 SHA256 239e75e812eba596023f53a9720bc9d6f7621c1b2402064dc6051ff6b34feb86 SHA512 dcb07bd65643f0264048bbf9eaa532929d7130ce90fbb9f4db43d9ba92b688df24551f0d5270a01f0dd24068e2f71be425ef5e2d2a42b98ea2bcfbae8294d751 WHIRLPOOL 262051d85386e58a5ed2c30102ff3886199cf13428749a91811efc2567578ac319efa5c16356442af21c68030e6aafbdf1b0f16f6a2c8105584af909cdb620e5
diff --git a/sys-kernel/spl/metadata.xml b/sys-kernel/spl/metadata.xml
new file mode 100644
index 0000000..9d57ab7
--- /dev/null
+++ b/sys-kernel/spl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">zfsonlinux/spl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-kernel/spl/spl-0.7.4.ebuild b/sys-kernel/spl/spl-0.7.4.ebuild
new file mode 100644
index 0000000..2b74e28
--- /dev/null
+++ b/sys-kernel/spl/spl-0.7.4.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+if [[ ${PV} == "9999" ]] ; then
+ AUTOTOOLS_AUTORECONF="1"
+ EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/${P}.tar.gz"
+ KEYWORDS=" ~amd64"
+fi
+
+inherit flag-o-matic linux-info linux-mod autotools-utils
+
+DESCRIPTION="The Solaris Porting Layer provides many of the Solaris kernel APIs"
+HOMEPAGE="http://zfsonlinux.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="custom-cflags debug"
+RESTRICT="debug? ( strip ) test"
+
+COMMON_DEPEND="dev-lang/perl
+ virtual/awk"
+
+DEPEND="${COMMON_DEPEND}"
+
+RDEPEND="${COMMON_DEPEND}
+ !sys-devel/spl"
+
+AT_M4DIR="config"
+AUTOTOOLS_IN_SOURCE_BUILD="1"
+DOCS=( AUTHORS DISCLAIMER )
+
+pkg_setup() {
+ linux-info_pkg_setup
+ CONFIG_CHECK="
+ !DEBUG_LOCK_ALLOC
+ MODULES
+ KALLSYMS
+ !PAX_KERNEXEC_PLUGIN_METHOD_OR
+ !PAX_SIZE_OVERFLOW
+ ZLIB_DEFLATE
+ ZLIB_INFLATE
+ "
+
+ use debug && CONFIG_CHECK="${CONFIG_CHECK}
+ FRAME_POINTER
+ DEBUG_INFO
+ !DEBUG_INFO_REDUCED
+ "
+
+ kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required"
+
+ [ ${PV} != "9999" ] && \
+ { kernel_is le 4 13 || die "Linux 4.13 is the latest supported version."; }
+
+ check_extra_config
+}
+
+src_prepare() {
+ # Workaround for hard coded path
+ sed -i "s|/sbin/lsmod|/bin/lsmod|" "${S}/scripts/check.sh" || \
+ die "Cannot patch check.sh"
+
+ # splat is unnecessary unless we are debugging
+ use debug || { sed -e 's/^subdir-m += splat$//' -i "${S}/module/Makefile.in" || die ; }
+
+ # Set module revision number
+ [ ${PV} != "9999" ] && \
+ { sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" "${S}/META" || die "Could not set Gentoo release"; }
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ use custom-cflags || strip-flags
+ filter-ldflags -Wl,*
+
+ set_arch_to_kernel
+ local myeconfargs=(
+ --bindir="${EPREFIX}/bin"
+ --sbindir="${EPREFIX}/sbin"
+ --with-config=all
+ --with-linux="${KV_DIR}"
+ --with-linux-obj="${KV_OUT_DIR}"
+ $(use_enable debug)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install INSTALL_MOD_PATH="${INSTALL_MOD_PATH:-$EROOT}"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # Remove old modules
+ if [ -d "${EROOT}lib/modules/${KV_FULL}/addon/spl" ]
+ then
+ ewarn "${PN} now installs modules in ${EROOT}lib/modules/${KV_FULL}/extra/spl"
+ ewarn "Old modules were detected in ${EROOT}lib/modules/${KV_FULL}/addon/spl"
+ ewarn "Automatically removing old modules to avoid problems."
+ rm -r "${EROOT}lib/modules/${KV_FULL}/addon/spl" || die "Cannot remove modules"
+ rmdir --ignore-fail-on-non-empty "${EROOT}lib/modules/${KV_FULL}/addon"
+ fi
+}