commit:     1d845e110e1d8d7223619ac659a480f112ceec53
Author:     Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 16 03:21:46 2018 +0000
Commit:     Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org>
CommitDate: Mon Apr 16 03:21:46 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d845e11

sys-fs/zfs: removing old versions

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-fs/zfs-kmod/Manifest                   |   3 -
 sys-fs/zfs-kmod/zfs-kmod-0.6.5.4-r1.ebuild | 160 -------------------
 sys-fs/zfs-kmod/zfs-kmod-0.7.6.ebuild      | 145 -----------------
 sys-fs/zfs/Manifest                        |   3 -
 sys-fs/zfs/zfs-0.6.5.4-r4.ebuild           | 245 -----------------------------
 sys-fs/zfs/zfs-0.7.6-r1.ebuild             | 212 -------------------------
 sys-kernel/spl/Manifest                    |   3 -
 sys-kernel/spl/spl-0.6.5.4-r1.ebuild       | 121 --------------
 sys-kernel/spl/spl-0.7.6.ebuild            | 111 -------------
 9 files changed, 1003 deletions(-)

diff --git a/sys-fs/zfs-kmod/Manifest b/sys-fs/zfs-kmod/Manifest
index 9d0eef2a8ba..8fa45ff3ae0 100644
--- a/sys-fs/zfs-kmod/Manifest
+++ b/sys-fs/zfs-kmod/Manifest
@@ -1,5 +1,2 @@
 DIST zfs-0.6.5.11.tar.gz 2521959 BLAKE2B 
95b145a26620995343df1a468367b882bc71ab3e4812c05839d49d0cd877b756185c91b2609986f91939fbfda322809ddefc8ff9207fe076db03e0038e585ea2
 SHA512 
877052da2a0cdc78b10cb5041da55e31242db2618c502997f4df9aa46a14482c7f33adce8d21aaf16164a9fe52edc358922ea89c8e109c3247e107bf607d6451
-DIST zfs-0.6.5.4-patches-p1.tar.xz 64004 BLAKE2B 
e9db3c1bde3a2636b35a4204c484bc4cec0968278519762707849ba138eeb9128130de70c2f40bb28dc9102347465d724a60cebd45ddb12d4217739ecbed7714
 SHA512 
9203356b43bdad2ed78c946af8c95c9fc4d2996b41a09a3b1f5a8657d2742ac69d10b4a87d443db497d591878cf7a70ebb19762b0df135ee25f4e8d2ed6ad71f
-DIST zfs-0.6.5.4.tar.gz 2506470 BLAKE2B 
10a2242081891b94a7863f11b4c3b9e443d3b75b5eb03e8fc88e30484a94555203dec8964075cf23f694777dd699e20acb1a52b5d04cba410b6df84512436e08
 SHA512 
90c87cd95fd06cf34755358e7cc4053d19f351316133f0b808e7585a3fc8f82e7c0f49072c2995d0520de5104fd04d91a166a0d5b6c923c82dfb2fb4f7f57a01
-DIST zfs-0.7.6.tar.gz 6409035 BLAKE2B 
498d02172f0eaaa658e2aad2dd74d37f0ce5d41fda817976cc370ad42ad320f09124e6dc4a609b5eeda7819f538247cf64823871d00902e80a9bc92a374d0d51
 SHA512 
d9d45696b81080234068a4731276f888382e6680a6ca30d302110dbd1fa00d38ef17bd59de4b787b1ce91c3184ccb403c5db6b064a611f6f8572fa077a989cdb
 DIST zfs-0.7.8.tar.gz 6514969 BLAKE2B 
689d96ad7afeb422cbeca724f248ac56b6fcdc0a7ef215f735180406a7fc0d4d3c9700a41e855186d8044b304c9f0c142c2bdca387299c499974e424965970a4
 SHA512 
cdeabe10acd2feeeff8a6362987c757b716bfea6ebad42ce022a081106661f774150c113bdaa9e1ac441efdd6da4cf11e6119323ad60ae15ab445a872d952e35

diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.6.5.4-r1.ebuild 
b/sys-fs/zfs-kmod/zfs-kmod-0.6.5.4-r1.ebuild
deleted file mode 100644
index 10bb6ec3285..00000000000
--- a/sys-fs/zfs-kmod/zfs-kmod-0.6.5.4-r1.ebuild
+++ /dev/null
@@ -1,160 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-AT_M4DIR="config"
-AUTOTOOLS_AUTORECONF="1"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-if [ ${PV} == "9999" ]; then
-       AUTOTOOLS_AUTORECONF="1"
-       EGIT_REPO_URI="https://github.com/zfsonlinux/zfs.git";
-       inherit git-r3
-else
-       
SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/zfs-${PV}.tar.gz
-               https://dev.gentoo.org/~ryao/dist/zfs-${PV}-patches-p1.tar.xz";
-       S="${WORKDIR}/zfs-${PV}"
-       KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
-fi
-
-inherit flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils
-
-DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
-HOMEPAGE="http://zfsonlinux.org/";
-
-LICENSE="CDDL debug? ( GPL-2+ )"
-SLOT="0"
-IUSE="custom-cflags debug +rootfs"
-RESTRICT="debug? ( strip ) test"
-
-DEPEND="
-       =sys-kernel/spl-${PV}*
-       dev-lang/perl
-       virtual/awk
-"
-
-RDEPEND="${DEPEND}
-       !<sys-kernel/spl-0.6.5.3-r1
-       !sys-fs/zfs-fuse
-"
-
-AT_M4DIR="config"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-DOCS=( AUTHORS COPYRIGHT DISCLAIMER README.markdown )
-
-pkg_setup() {
-       linux-info_pkg_setup
-       CONFIG_CHECK="
-               !DEBUG_LOCK_ALLOC
-               !CONFIG_REISER4_FS
-               EFI_PARTITION
-               IOSCHED_NOOP
-               MODULES
-               !PAX_KERNEXEC_PLUGIN_METHOD_OR
-               ZLIB_DEFLATE
-               ZLIB_INFLATE
-       "
-
-       use debug && CONFIG_CHECK="${CONFIG_CHECK}
-               FRAME_POINTER
-               DEBUG_INFO
-               !DEBUG_INFO_REDUCED
-       "
-
-       use rootfs && \
-               CONFIG_CHECK="${CONFIG_CHECK}
-                       BLK_DEV_INITRD
-                       DEVTMPFS
-       "
-
-       kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required"
-
-       [ ${PV} != "9999" ] && \
-               { kernel_is le 4 4 || die "Linux 4.4 is the latest supported 
version."; }
-
-       check_extra_config
-}
-
-src_prepare() {
-       if [ ${PV} != "9999" ]
-       then
-               # Apply patch set
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-               epatch "${WORKDIR}/zfs-${PV}-patches"
-       fi
-
-       # Remove GPLv2-licensed ZPIOS unless we are debugging
-       use debug || sed -e 's/^subdir-m += zpios$//' -i 
"${S}/module/Makefile.in"
-
-       # 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() {
-       local SPL_PATH="$(basename $(echo "${EROOT}usr/src/spl-"*))"
-       use custom-cflags || strip-flags
-       filter-ldflags -Wl,*
-
-       set_arch_to_kernel
-       local myeconfargs=(${myeconfargs}
-               --bindir="${EPREFIX}/bin"
-               --sbindir="${EPREFIX}/sbin"
-               --with-config=kernel
-               --with-linux="${KV_DIR}"
-               --with-linux-obj="${KV_OUT_DIR}"
-               --with-spl="${EROOT}usr/src/${SPL_PATH}"
-               --with-spl-obj="${EROOT}usr/src/${SPL_PATH}/${KV_FULL}"
-               $(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/zfs" ]
-       then
-               ewarn "${PN} now installs modules in 
${EROOT}lib/modules/${KV_FULL}/extra/zfs"
-               ewarn "Old modules were detected in 
${EROOT}lib/modules/${KV_FULL}/addon/zfs"
-               ewarn "Automatically removing old modules to avoid problems."
-               rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot 
remove modules"
-               rmdir --ignore-fail-on-non-empty 
"${EROOT}lib/modules/${KV_FULL}/addon"
-       fi
-
-       if use x86 || use arm
-       then
-               ewarn "32-bit kernels will likely require increasing vmalloc to"
-               ewarn "at least 256M and decreasing zfs_arc_max to some value 
less than that."
-       fi
-
-       ewarn "This version of ZFSOnLinux includes support for new feature 
flags"
-       ewarn "that are incompatible with previous versions. GRUB2 support for"
-       ewarn "/boot with the new feature flags is not yet available."
-       ewarn "Do *NOT* upgrade root pools to use the new feature flags."
-       ewarn "Any new pools will be created with the new feature flags by 
default"
-       ewarn "and will not be compatible with older versions of ZFSOnLinux. To"
-       ewarn "create a newpool that is backward compatible wih GRUB2, use "
-       ewarn
-       ewarn "zpool create -d -o feature@async_destroy=enabled "
-       ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled"
-       ewarn " -o feature@spacemap_histogram=enabled"
-       ewarn " -o feature@enabled_txg=enabled "
-       ewarn " -o feature@extensible_dataset=enabled -o 
feature@bookmarks=enabled"
-       ewarn " ..."
-       ewarn
-       ewarn "GRUB2 support will be updated as soon as either the GRUB2"
-       ewarn "developers do a tag or the Gentoo developers find time to 
backport"
-       ewarn "support from GRUB2 HEAD."
-}

diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.7.6.ebuild 
b/sys-fs/zfs-kmod/zfs-kmod-0.7.6.ebuild
deleted file mode 100644
index 175244af205..00000000000
--- a/sys-fs/zfs-kmod/zfs-kmod-0.7.6.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 1999-2018 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/zfs.git";
-       inherit git-r3
-else
-       
SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/zfs-${PV}.tar.gz";
-       S="${WORKDIR}/zfs-${PV}"
-       KEYWORDS="~amd64"
-fi
-
-inherit flag-o-matic linux-info linux-mod toolchain-funcs autotools-utils
-
-DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
-HOMEPAGE="http://zfsonlinux.org/";
-
-LICENSE="CDDL debug? ( GPL-2+ )"
-SLOT="0"
-IUSE="custom-cflags debug +rootfs"
-RESTRICT="debug? ( strip ) test"
-
-DEPEND="
-       =sys-kernel/spl-${PV}*
-       dev-lang/perl
-       virtual/awk
-"
-
-RDEPEND="${DEPEND}
-       !sys-fs/zfs-fuse
-"
-
-AT_M4DIR="config"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-DOCS=( AUTHORS COPYRIGHT DISCLAIMER README.markdown )
-
-pkg_setup() {
-       linux-info_pkg_setup
-       CONFIG_CHECK="
-               !DEBUG_LOCK_ALLOC
-               EFI_PARTITION
-               IOSCHED_NOOP
-               MODULES
-               !PAX_KERNEXEC_PLUGIN_METHOD_OR
-               ZLIB_DEFLATE
-               ZLIB_INFLATE
-       "
-
-       use debug && CONFIG_CHECK="${CONFIG_CHECK}
-               FRAME_POINTER
-               DEBUG_INFO
-               !DEBUG_INFO_REDUCED
-       "
-
-       use rootfs && \
-               CONFIG_CHECK="${CONFIG_CHECK}
-                       BLK_DEV_INITRD
-                       DEVTMPFS
-       "
-
-       kernel_is ge 2 6 32 || die "Linux 2.6.32 or newer required"
-
-       [ ${PV} != "9999" ] && \
-               { kernel_is le 4 15 || die "Linux 4.15 is the latest supported 
version."; }
-
-       check_extra_config
-}
-
-src_prepare() {
-       # Remove GPLv2-licensed ZPIOS unless we are debugging
-       use debug || sed -e 's/^subdir-m += zpios$//' -i 
"${S}/module/Makefile.in"
-
-       # 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() {
-       local SPL_PATH="$(basename $(echo "${EROOT}usr/src/spl-"*))"
-       use custom-cflags || strip-flags
-       filter-ldflags -Wl,*
-
-       set_arch_to_kernel
-       local myeconfargs=(${myeconfargs}
-               --bindir="${EPREFIX}/bin"
-               --sbindir="${EPREFIX}/sbin"
-               --with-config=kernel
-               --with-linux="${KV_DIR}"
-               --with-linux-obj="${KV_OUT_DIR}"
-               --with-spl="${EROOT}usr/src/${SPL_PATH}"
-               --with-spl-obj="${EROOT}usr/src/${SPL_PATH}/${KV_FULL}"
-               $(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/zfs" ]
-       then
-               ewarn "${PN} now installs modules in 
${EROOT}lib/modules/${KV_FULL}/extra/zfs"
-               ewarn "Old modules were detected in 
${EROOT}lib/modules/${KV_FULL}/addon/zfs"
-               ewarn "Automatically removing old modules to avoid problems."
-               rm -r "${EROOT}lib/modules/${KV_FULL}/addon/zfs" || die "Cannot 
remove modules"
-               rmdir --ignore-fail-on-non-empty 
"${EROOT}lib/modules/${KV_FULL}/addon"
-       fi
-
-       if use x86 || use arm
-       then
-               ewarn "32-bit kernels will likely require increasing vmalloc to"
-               ewarn "at least 256M and decreasing zfs_arc_max to some value 
less than that."
-       fi
-
-       ewarn "This version of ZFSOnLinux includes support for new feature 
flags"
-       ewarn "that are incompatible with previous versions. GRUB2 support for"
-       ewarn "/boot with the new feature flags is not yet available."
-       ewarn "Do *NOT* upgrade root pools to use the new feature flags."
-       ewarn "Any new pools will be created with the new feature flags by 
default"
-       ewarn "and will not be compatible with older versions of ZFSOnLinux. To"
-       ewarn "create a newpool that is backward compatible wih GRUB2, use "
-       ewarn
-       ewarn "zpool create -d -o feature@async_destroy=enabled "
-       ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled"
-       ewarn " -o feature@spacemap_histogram=enabled"
-       ewarn " -o feature@enabled_txg=enabled "
-       ewarn " -o feature@extensible_dataset=enabled -o 
feature@bookmarks=enabled"
-       ewarn " ..."
-       ewarn
-       ewarn "GRUB2 support will be updated as soon as either the GRUB2"
-       ewarn "developers do a tag or the Gentoo developers find time to 
backport"
-       ewarn "support from GRUB2 HEAD."
-}

diff --git a/sys-fs/zfs/Manifest b/sys-fs/zfs/Manifest
index 471b67b7ccc..8fa45ff3ae0 100644
--- a/sys-fs/zfs/Manifest
+++ b/sys-fs/zfs/Manifest
@@ -1,5 +1,2 @@
 DIST zfs-0.6.5.11.tar.gz 2521959 BLAKE2B 
95b145a26620995343df1a468367b882bc71ab3e4812c05839d49d0cd877b756185c91b2609986f91939fbfda322809ddefc8ff9207fe076db03e0038e585ea2
 SHA512 
877052da2a0cdc78b10cb5041da55e31242db2618c502997f4df9aa46a14482c7f33adce8d21aaf16164a9fe52edc358922ea89c8e109c3247e107bf607d6451
-DIST zfs-0.6.5.4-patches-p2.tar.xz 63912 BLAKE2B 
f8bd5d0cd2b6170b45cf40a78b484d9a73017b20a77c603f4bcec63b6c77347b07df74c9d53288b5b2b984135d651d3d3ef830395ff2625576b13d8ce433fbcb
 SHA512 
9f598c2a750b92dadddb677a6a9dda4573fa91421a82270d8104d718da4b945a4d5412bab92037a033cec1ec177f2a0eb52207babd023847918e3754054ec5e9
-DIST zfs-0.6.5.4.tar.gz 2506470 BLAKE2B 
10a2242081891b94a7863f11b4c3b9e443d3b75b5eb03e8fc88e30484a94555203dec8964075cf23f694777dd699e20acb1a52b5d04cba410b6df84512436e08
 SHA512 
90c87cd95fd06cf34755358e7cc4053d19f351316133f0b808e7585a3fc8f82e7c0f49072c2995d0520de5104fd04d91a166a0d5b6c923c82dfb2fb4f7f57a01
-DIST zfs-0.7.6.tar.gz 6409035 BLAKE2B 
498d02172f0eaaa658e2aad2dd74d37f0ce5d41fda817976cc370ad42ad320f09124e6dc4a609b5eeda7819f538247cf64823871d00902e80a9bc92a374d0d51
 SHA512 
d9d45696b81080234068a4731276f888382e6680a6ca30d302110dbd1fa00d38ef17bd59de4b787b1ce91c3184ccb403c5db6b064a611f6f8572fa077a989cdb
 DIST zfs-0.7.8.tar.gz 6514969 BLAKE2B 
689d96ad7afeb422cbeca724f248ac56b6fcdc0a7ef215f735180406a7fc0d4d3c9700a41e855186d8044b304c9f0c142c2bdca387299c499974e424965970a4
 SHA512 
cdeabe10acd2feeeff8a6362987c757b716bfea6ebad42ce022a081106661f774150c113bdaa9e1ac441efdd6da4cf11e6119323ad60ae15ab445a872d952e35

diff --git a/sys-fs/zfs/zfs-0.6.5.4-r4.ebuild b/sys-fs/zfs/zfs-0.6.5.4-r4.ebuild
deleted file mode 100644
index 73910927609..00000000000
--- a/sys-fs/zfs/zfs-0.6.5.4-r4.ebuild
+++ /dev/null
@@ -1,245 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
-
-AT_M4DIR="config"
-AUTOTOOLS_AUTORECONF="1"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-if [ ${PV} == "9999" ] ; then
-       inherit git-r3 linux-mod
-       AUTOTOOLS_AUTORECONF="1"
-       EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git";
-else
-       
SRC_URI="https://github.com/zfsonlinux/${PN}/releases/download/${P}/${P}.tar.gz
-               https://dev.gentoo.org/~ryao/dist/${P}-patches-p2.tar.xz";
-       KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
-fi
-
-inherit autotools-utils bash-completion-r1 flag-o-matic linux-info python-r1 
systemd toolchain-funcs udev
-
-DESCRIPTION="Userland utilities for ZFS Linux kernel module"
-HOMEPAGE="http://zfsonlinux.org/";
-
-LICENSE="BSD-2 CDDL MIT"
-SLOT="0"
-IUSE="custom-cflags debug kernel-builtin +rootfs test-suite static-libs"
-RESTRICT="test"
-
-COMMON_DEPEND="
-       net-libs/libtirpc
-       sys-apps/util-linux[static-libs?]
-       sys-libs/zlib[static-libs(+)?]
-       virtual/awk
-"
-DEPEND="${COMMON_DEPEND}
-       virtual/pkgconfig
-"
-
-# Adding glibc >= 2.25 blocker for ZFS versions lower
-# than 0.7.0, due to bug 617628.
-RDEPEND="${COMMON_DEPEND}
-       !>=sys-libs/glibc-2.25
-       !=sys-apps/grep-2.13*
-       !kernel-builtin? (
-               =sys-fs/zfs-kmod-${PV}*
-               !<sys-fs/zfs-kmod-0.6.5.3-r1
-               )
-       !sys-fs/zfs-fuse
-       !prefix? ( virtual/udev )
-       test-suite? (
-               sys-apps/util-linux
-               sys-devel/bc
-               sys-block/parted
-               sys-fs/lsscsi
-               sys-fs/mdadm
-               sys-process/procps
-               virtual/modutils
-               )
-       rootfs? (
-               app-arch/cpio
-               app-misc/pax-utils
-               !<sys-boot/grub-2.00-r2:2
-               )
-       !>=sys-fs/udev-init-scripts-28
-"
-
-AT_M4DIR="config"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-pkg_setup() {
-       if use kernel_linux && use test-suite; then
-               linux-info_pkg_setup
-               if  ! linux_config_exists; then
-                       ewarn "Cannot check the linux kernel configuration."
-               else
-                       # recheck that we don't have usblp to collide with 
libusb
-                       if use test-suite; then
-                               if linux_chkconfig_present BLK_DEV_LOOP; then
-                                       eerror "The ZFS test suite requires 
loop device support enabled."
-                                       eerror "Please enable it:"
-                                       eerror "    CONFIG_BLK_DEV_LOOP=y"
-                                       eerror "in /usr/src/linux/.config or"
-                                       eerror "    Device Drivers --->"
-                                       eerror "        Block devices --->"
-                                       eerror "            [ ] Loopback device 
support"
-                               fi
-                       fi
-               fi
-       fi
-
-}
-
-src_prepare() {
-       if [ ${PV} != "9999" ]
-       then
-               # Apply patch set
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-               epatch "${WORKDIR}/${P}-patches"
-       fi
-
-       # Update paths
-       sed -e "s|/sbin/lsmod|/bin/lsmod|" \
-               -e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \
-               -e "s|/sbin/parted|/usr/sbin/parted|" \
-               -i scripts/common.sh.in
-
-       autotools-utils_src_prepare
-}
-
-src_configure() {
-       use custom-cflags || strip-flags
-       local myeconfargs=(
-               --bindir="${EPREFIX}/bin"
-               --sbindir="${EPREFIX}/sbin"
-               --with-config=user
-               --with-dracutdir="${EPREFIX}/usr/lib/dracut"
-               --with-linux="${KV_DIR}"
-               --with-linux-obj="${KV_OUT_DIR}"
-               --with-udevdir="$(get_udevdir)"
-               --with-blkid
-               --with-systemdunitdir="$(systemd_get_systemunitdir)"
-               --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
-               $(use_enable debug)
-       )
-       autotools-utils_src_configure
-
-       # prepare systemd unit and helper script
-       cat "${FILESDIR}/zfs.service.in" | \
-               sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
-                       -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
-               > "${T}/zfs.service" || die
-       cat "${FILESDIR}/zfs-init.sh.in" | \
-               sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
-                       -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
-               > "${T}/zfs-init.sh" || die
-}
-
-src_install() {
-       autotools-utils_src_install
-       gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core
-       use test-suite || rm -rf "${ED}usr/share/zfs"
-
-       newbashcomp "${FILESDIR}/bash-completion-r1" zfs
-       bashcomp_alias zfs zpool
-
-       exeinto /usr/libexec
-       doexe "${T}/zfs-init.sh"
-       systemd_dounit "${T}/zfs.service"
-}
-
-pkg_postinst() {
-       if ! use kernel-builtin && [ ${PV} = "9999" ]
-       then
-               einfo "Adding ${P} to the module database to ensure that the"
-               einfo "kernel modules and userland utilities stay in sync."
-               update_moduledb
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/boot/zfs" ]
-       then
-               einfo 'The zfs boot script has been split into the zfs-import,'
-               einfo 'zfs-mount and zfs-share scripts.'
-               einfo
-               einfo 'You had the zfs script in your boot runlevel. For your'
-               einfo 'convenience, it has been automatically removed and the 
three'
-               einfo 'scripts that replace it have been configured to start.'
-               einfo 'The zfs-import and zfs-mount scripts have been added to 
the boot'
-               einfo 'runlevel while the zfs-share script is in the default 
runlevel.'
-
-               rm "${EROOT}etc/runlevels/boot/zfs"
-               ln -snf "${EROOT}etc/init.d/zfs-import" \
-                       "${EROOT}etc/runlevels/boot/zfs-import"
-               ln -snf "${EROOT}etc/init.d/zfs-mount" \
-                       "${EROOT}etc/runlevels/boot/zfs-mount"
-               ln -snf "${EROOT}etc/init.d/zfs-share" \
-                       "${EROOT}etc/runlevels/default/zfs-share"
-       else
-               [ -e "${EROOT}etc/runlevels/boot/zfs-import" ] || \
-                       einfo "You should add zfs-import to the boot runlevel."
-               [ -e "${EROOT}etc/runlevels/boot/zfs-mount" ] || \
-                       einfo "You should add zfs-mount to the boot runlevel."
-               [ -e "${EROOT}etc/runlevels/default/zfs-share" ] || \
-                       einfo "You should add zfs-share to the default 
runlevel."
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/default/zed" ]
-       then
-               einfo 'The downstream OpenRC zed script has replaced by the 
upstream'
-               einfo 'OpenRC zfs-zed script.'
-               einfo
-               einfo 'You had the zed script in your default runlevel. For 
your'
-               einfo 'convenience, it has been automatically removed and the 
zfs-zed'
-               einfo 'script that replaced it has been configured to start.'
-
-               rm "${EROOT}etc/runlevels/boot/zed"
-               ln -snf "${EROOT}etc/init.d/zfs-sed" \
-                       "${EROOT}etc/runlevels/default/zfs-zed"
-       else
-               [ -e "${EROOT}etc/runlevels/default/zfs-zed" ] || \
-                       einfo "You should add zfs-zed to the default runlevel."
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/shutdown/zfs-shutdown" ]
-       then
-               einfo "The zfs-shutdown script is obsolete. Removing it from 
runlevel."
-               rm "${EROOT}etc/runlevels/shutdown/zfs-shutdown"
-       fi
-
-       einfo "sys-kernel/spl-0.6.5.3-r1, sys-fs/zfs-kmod-0.6.5.3-r1 and "
-       einfo "sys-fs/zfs-0.6.5.3-r1 have introduced a partial stable "
-       einfo "/dev/zfs API developed by ClusterHQ. This means that situations "
-       einfo "arising from the kernel modules and userland tools being "
-       einfo "mismatched on future updates will not cause problems."
-       einfo
-       einfo "In specific, this should solve the failure to mount filesystems 
when "
-       einfo "old modules are cached in an old initramfs provided that those "
-       einfo "modules support this API"
-       if use rootfs
-       then
-               einfo
-               ewarn "The older modules will *NOT* work with the new userland 
code."
-               ewarn "It is very important that you update your initramfs 
after this "
-               ewarn "update."
-       fi
-
-       systemd_reenable zfs-zed.service
-       systemd_reenable zfs-import-cache.service
-       systemd_reenable zfs-import-scan.service
-       systemd_reenable zfs-mount.service
-       systemd_reenable zfs-share.service
-       systemd_reenable zfs-import.target
-       systemd_reenable zfs.target
-       systemd_reenable zfs.service
-
-}
-
-pkg_postrm() {
-       if ! use kernel-builtin && [ ${PV} = "9999" ]
-       then
-               remove_moduledb
-       fi
-}

diff --git a/sys-fs/zfs/zfs-0.7.6-r1.ebuild b/sys-fs/zfs/zfs-0.7.6-r1.ebuild
deleted file mode 100644
index b625fe321e0..00000000000
--- a/sys-fs/zfs/zfs-0.7.6-r1.ebuild
+++ /dev/null
@@ -1,212 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
-
-if [ ${PV} == "9999" ] ; then
-       inherit git-r3 linux-mod
-       AUTOTOOLS_AUTORECONF="1"
-       EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git"
-else
-       
SRC_URI="https://github.com/zfsonlinux/${PN}/releases/download/${P}/${P}.tar.gz";
-       KEYWORDS="~amd64"
-fi
-
-inherit autotools-utils bash-completion-r1 flag-o-matic linux-info python-r1 
systemd toolchain-funcs udev
-
-DESCRIPTION="Userland utilities for ZFS Linux kernel module"
-HOMEPAGE="http://zfsonlinux.org/";
-
-LICENSE="BSD-2 CDDL MIT"
-SLOT="0"
-IUSE="custom-cflags debug kernel-builtin +rootfs test-suite static-libs"
-RESTRICT="test"
-
-COMMON_DEPEND="
-       net-libs/libtirpc
-       sys-apps/util-linux[static-libs?]
-       sys-libs/zlib[static-libs(+)?]
-       virtual/awk
-"
-DEPEND="${COMMON_DEPEND}
-       virtual/pkgconfig
-"
-
-RDEPEND="${COMMON_DEPEND}
-       !=sys-apps/grep-2.13*
-       !kernel-builtin? ( =sys-fs/zfs-kmod-${PV}* )
-       !sys-fs/zfs-fuse
-       !prefix? ( virtual/udev )
-       test-suite? (
-               sys-apps/util-linux
-               sys-devel/bc
-               sys-block/parted
-               sys-fs/lsscsi
-               sys-fs/mdadm
-               sys-process/procps
-               virtual/modutils
-               )
-       rootfs? (
-               app-arch/cpio
-               app-misc/pax-utils
-               !<sys-boot/grub-2.00-r2:2
-               !<sys-kernel/genkernel-3.5.1.1
-               !<sys-kernel/genkernel-next-67
-               !<sys-kernel/bliss-initramfs-7.1.0
-               !<sys-kernel/dracut-044-r1
-               )
-       sys-fs/udev-init-scripts
-"
-
-AT_M4DIR="config"
-AUTOTOOLS_IN_SOURCE_BUILD="1"
-
-pkg_setup() {
-       if use kernel_linux && use test-suite; then
-               linux-info_pkg_setup
-               if  ! linux_config_exists; then
-                       ewarn "Cannot check the linux kernel configuration."
-               else
-                       # recheck that we don't have usblp to collide with 
libusb
-                       if use test-suite; then
-                               if linux_chkconfig_present BLK_DEV_LOOP; then
-                                       eerror "The ZFS test suite requires 
loop device support enabled."
-                                       eerror "Please enable it:"
-                                       eerror "    CONFIG_BLK_DEV_LOOP=y"
-                                       eerror "in /usr/src/linux/.config or"
-                                       eerror "    Device Drivers --->"
-                                       eerror "        Block devices --->"
-                                       eerror "            [ ] Loopback device 
support"
-                               fi
-                       fi
-               fi
-       fi
-
-}
-
-src_prepare() {
-       # Update paths
-       sed -e "s|/sbin/lsmod|/bin/lsmod|" \
-               -e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \
-               -e "s|/sbin/parted|/usr/sbin/parted|" \
-               -i scripts/common.sh.in
-
-       autotools-utils_src_prepare
-}
-
-src_configure() {
-       use custom-cflags || strip-flags
-       local myeconfargs=(
-               --bindir="${EPREFIX}/bin"
-               --sbindir="${EPREFIX}/sbin"
-               --with-config=user
-               --with-dracutdir="${EPREFIX}/usr/lib/dracut"
-               --with-linux="${KV_DIR}"
-               --with-linux-obj="${KV_OUT_DIR}"
-               --with-udevdir="$(get_udevdir)"
-               --with-systemdunitdir="$(systemd_get_systemunitdir)"
-               --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset"
-               $(use_enable debug)
-       )
-       autotools-utils_src_configure
-
-       # prepare systemd unit and helper script
-       cat "${FILESDIR}/zfs.service.in" | \
-               sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
-                       -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
-               > "${T}/zfs.service" || die
-       cat "${FILESDIR}/zfs-init.sh.in" | \
-               sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
-                       -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
-               > "${T}/zfs-init.sh" || die
-}
-
-src_install() {
-       autotools-utils_src_install
-       gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core
-       use test-suite || rm -rf "${ED}usr/share/zfs"
-
-       newbashcomp "${FILESDIR}/bash-completion-r1" zfs
-       bashcomp_alias zfs zpool
-
-       exeinto /usr/libexec
-       doexe "${T}/zfs-init.sh"
-       systemd_dounit "${T}/zfs.service"
-}
-
-pkg_postinst() {
-       if ! use kernel-builtin && [ ${PV} = "9999" ]
-       then
-               einfo "Adding ${P} to the module database to ensure that the"
-               einfo "kernel modules and userland utilities stay in sync."
-               update_moduledb
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/boot/zfs" ]
-       then
-               einfo 'The zfs boot script has been split into the zfs-import,'
-               einfo 'zfs-mount and zfs-share scripts.'
-               einfo
-               einfo 'You had the zfs script in your boot runlevel. For your'
-               einfo 'convenience, it has been automatically removed and the 
three'
-               einfo 'scripts that replace it have been configured to start.'
-               einfo 'The zfs-import and zfs-mount scripts have been added to 
the boot'
-               einfo 'runlevel while the zfs-share script is in the default 
runlevel.'
-
-               rm "${EROOT}etc/runlevels/boot/zfs"
-               ln -snf "${EROOT}etc/init.d/zfs-import" \
-                       "${EROOT}etc/runlevels/boot/zfs-import"
-               ln -snf "${EROOT}etc/init.d/zfs-mount" \
-                       "${EROOT}etc/runlevels/boot/zfs-mount"
-               ln -snf "${EROOT}etc/init.d/zfs-share" \
-                       "${EROOT}etc/runlevels/default/zfs-share"
-       else
-               [ -e "${EROOT}etc/runlevels/boot/zfs-import" ] || \
-                       einfo "You should add zfs-import to the boot runlevel."
-               [ -e "${EROOT}etc/runlevels/boot/zfs-mount" ] || \
-                       einfo "You should add zfs-mount to the boot runlevel."
-               [ -e "${EROOT}etc/runlevels/default/zfs-share" ] || \
-                       einfo "You should add zfs-share to the default 
runlevel."
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/default/zed" ]
-       then
-               einfo 'The downstream OpenRC zed script has replaced by the 
upstream'
-               einfo 'OpenRC zfs-zed script.'
-               einfo
-               einfo 'You had the zed script in your default runlevel. For 
your'
-               einfo 'convenience, it has been automatically removed and the 
zfs-zed'
-               einfo 'script that replaced it has been configured to start.'
-
-               rm "${EROOT}etc/runlevels/boot/zed"
-               ln -snf "${EROOT}etc/init.d/zfs-sed" \
-                       "${EROOT}etc/runlevels/default/zfs-zed"
-       else
-               [ -e "${EROOT}etc/runlevels/default/zfs-zed" ] || \
-                       einfo "You should add zfs-zed to the default runlevel."
-       fi
-
-       if [ -e "${EROOT}etc/runlevels/shutdown/zfs-shutdown" ]
-       then
-               einfo "The zfs-shutdown script is obsolete. Removing it from 
runlevel."
-               rm "${EROOT}etc/runlevels/shutdown/zfs-shutdown"
-       fi
-
-       systemd_reenable zfs-zed.service
-       systemd_reenable zfs-import-cache.service
-       systemd_reenable zfs-import-scan.service
-       systemd_reenable zfs-mount.service
-       systemd_reenable zfs-share.service
-       systemd_reenable zfs-import.target
-       systemd_reenable zfs.target
-       systemd_reenable zfs.service
-
-}
-
-pkg_postrm() {
-       if ! use kernel-builtin && [ ${PV} = "9999" ]
-       then
-               remove_moduledb
-       fi
-}

diff --git a/sys-kernel/spl/Manifest b/sys-kernel/spl/Manifest
index 7f2b65c70e7..704af6d5146 100644
--- a/sys-kernel/spl/Manifest
+++ b/sys-kernel/spl/Manifest
@@ -1,5 +1,2 @@
 DIST spl-0.6.5.11.tar.gz 531710 BLAKE2B 
e89cb5a023d3f4b3949a385100b56e01c5fd0ff4448bc175f8463a84b74d1d8f1fcf669c2e4b73f2ec3326653594106ebfa3e66987e49a9cd029355bbb317990
 SHA512 
eae1641a0d528cb9182deccd309625e13abf3db88ba1cbb54947055b23d1f94b62c045f939d5e952784f19719eea5fdf85d65c5abd22b9db167ea7780bc55722
-DIST spl-0.6.5.4-patches-p1.tar.xz 2020 BLAKE2B 
82b836df5c18f68ebd967d5d33e65232167ff1c4b1da3998dadf49c1fd0ffad4a86fa418a30ba0ba106ee4baa190fc51dedabec68083af80e5eb5aa1b225dcc5
 SHA512 
2650f06bf23045bd2805ef58baa2561534373862e1fbbaf189cf93283aa8e18cbee989b4e81751b37da3058aeba357cf8e46db97331379e1b5eafde7faa33851
-DIST spl-0.6.5.4.tar.gz 556298 BLAKE2B 
142d92ece51f544ed53f8d15390a97469b322c0e8f16c6510eb72f69493a3489f98ead9fa4138765b364c22777ee0cb49a76c4d9b1c4ac4e5ce8c0e5dbfe9952
 SHA512 
a50d804008237820d6a8e7d938f6699df2966836ebedf0b6a4421f55bd6c24ae69e8f80eaf3aa2b7f6ed308983ab4ca11abfb32f98c8d070e4957b4802e00cac
-DIST spl-0.7.6.tar.gz 550089 BLAKE2B 
c0b1cc87a9b7997f6346a106eb8f23493938357fce9d6209e159016f2df5655678fce5ddc64dc4a63a4f93b715c44d5ff7fd30097c63ab62a1daabb3dcc28908
 SHA512 
b8e74e4ad8c16df1a4742639f00c4c4162607d136145bae58489f9a34539dcc5569da18639a67ac5d9d52b5feac93e052323ebf6efce6a92ba9a2b965f940fdd
 DIST spl-0.7.8.tar.gz 559558 BLAKE2B 
5aa68a8150cb0c922c1ad0df9d1260136cedd95c13df45cc4490d937746a2a0e76e964978128a6f4e553f7bad4adc72a0408ef89969a15ba3f43af26e412b61c
 SHA512 
dcd38dd0971042603baa474460486ed2e7cb59468de7613fa713eb4bdd081026794af7780b5d8970dd17645b04b6dde1e2f43e89a782437a50afc679a8850001

diff --git a/sys-kernel/spl/spl-0.6.5.4-r1.ebuild 
b/sys-kernel/spl/spl-0.6.5.4-r1.ebuild
deleted file mode 100644
index 887c46dc770..00000000000
--- a/sys-kernel/spl/spl-0.6.5.4-r1.ebuild
+++ /dev/null
@@ -1,121 +0,0 @@
-# Copyright 1999-2018 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
-               https://dev.gentoo.org/~ryao/dist/${P}-patches-p1.tar.xz";
-       KEYWORDS="~amd64 ~arm ~ppc ~ppc64"
-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
-               !CONFIG_REISER4_FS
-               !GRKERNSEC_RANDSTRUCT
-               KALLSYMS
-               MODULES
-               !PAX_KERNEXEC_PLUGIN_METHOD_OR
-               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 4 || die "Linux 4.4 is the latest supported 
version."; }
-
-       check_extra_config
-}
-
-src_prepare() {
-       if [ ${PV} != "9999" ]
-       then
-               # Apply patch set
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-               epatch "${WORKDIR}/${P}-patches"
-       fi
-
-       # 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
-}

diff --git a/sys-kernel/spl/spl-0.7.6.ebuild b/sys-kernel/spl/spl-0.7.6.ebuild
deleted file mode 100644
index 31cf17318cf..00000000000
--- a/sys-kernel/spl/spl-0.7.6.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2018 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 15 || die "Linux 4.15 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
-}

Reply via email to