summaryrefslogtreecommitdiff
path: root/sys-kernel/spl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-01-12 16:58:08 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-01-12 16:58:08 +0000
commitc8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch)
tree9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /sys-kernel/spl
parent2891d29af8907ce881662f4a02844926d7a293c7 (diff)
gentoo resync : 12.01.2019
Diffstat (limited to 'sys-kernel/spl')
-rw-r--r--sys-kernel/spl/Manifest1
-rw-r--r--sys-kernel/spl/spl-0.7.12-r1.ebuild112
2 files changed, 113 insertions, 0 deletions
diff --git a/sys-kernel/spl/Manifest b/sys-kernel/spl/Manifest
index 1d6d35e83f67..026961f73dfb 100644
--- a/sys-kernel/spl/Manifest
+++ b/sys-kernel/spl/Manifest
@@ -6,6 +6,7 @@ DIST spl-0.7.9-r1-patches.tar.xz 2428 BLAKE2B 5a8550be587c511975d579bdba889538ed
DIST spl-0.7.9.tar.gz 551115 BLAKE2B 0ebb801ff60e5f8691c0b3386b5b1c326ea9d40decc20fb455ddb103d108923f28cd870e1c1dc465af5e24e8627973f2b60e7b9b88b3fdbd3ac45f3bd167def2 SHA512 89a42a65b3c09a654ffc3bcef84a0735eefe080c2d790400a3691cccf01e9f0a95cd40a4eed37542cfa7f4a94f20e06aae44886325473713407833d247751ec3
EBUILD spl-0.6.5.11.ebuild 2705 BLAKE2B 4961a28af850b8d94691a307cf3b045cf21269d0901155fe1ef14d575ae08b5eb5fc8d6ac2aa53a5f6efd31f1953479127e0ffe43fcf66fc7a7f4558bd5eb39b SHA512 22bc59c1967cd85d74117a76aa85ebc3b30bd444979193b7bf479481dcca55c75a31cb16873ee3b93fcad2e5c86141e8274e71cc025042fb9a997eb9cd77435d
EBUILD spl-0.7.11.ebuild 2685 BLAKE2B 1050f8204c574867b9c0041893717796820dc3951b3ede273b0d53ace2c36361728fc647ff368ebfb525145b176d7af43eaba7c5bac8c394d43cb818d276b3a3 SHA512 097d3d0aa14617c86bb3106faa039cfc74688376effdec5ca5f11ee5de54beee70274ede52bdb7846c711c31f243e65775dc4cf0991d77b4f987e1412ab04d59
+EBUILD spl-0.7.12-r1.ebuild 2706 BLAKE2B 513b5ae0fcdbaee98b2c3b55c6010f365c17d64a5d643a89431a73a690c9cee364c74884fa0c2eede2ea18ea9bf957af967554729971f3ee0951bc6f56dc4188 SHA512 48963d0ea4fbf8b79ffba45efe8da9a585d871043d822d1351eecaaafe41890cad1aee3923839ee5c9986d4c67e012eafb9038ad8a9c3b53bc6a94eab0a6ee1d
EBUILD spl-0.7.12.ebuild 2706 BLAKE2B 7152aaec08023c166b894d843749e9aeabbec5db3bc79d66e665687f2837b5718b13be491cfefeced51c22cda9b37b3f60d9e03e9e4044deeaeb67f6263efe35 SHA512 a298b643d9e4a2efbfe552b76e04c5078b34a7dfe997a3cee2a91b01e24775448023bbe943dcb36cb7db4547a1e24367644a41b0aac90446cb23de3585524250
EBUILD spl-0.7.8.ebuild 2684 BLAKE2B ef7ca0d1783aa6c5afcbe382cbd771f5212680e7f395af5336a0feaf983031f1ea21cdbfa5c271f35dcbc9f348219dd7996beac937ff13754df07082265519b1 SHA512 0a9c349fdc90066ac0f1e21fee71d9d89aad17f125f82cd0aeafbf7fd7256738823eef63c40456308e693b7e13e027c120e78c29f4052039fa1f6cc5ce3eb8cf
EBUILD spl-0.7.9-r1.ebuild 2881 BLAKE2B b5ec81b194584dc6e5cb88507873b7be4b0e7ec92c39a7734cd663249d33558fde3342764f72d235cf098aa1c120070c2b6bb45b290a1583a81d5d6b42de31b0 SHA512 64d03d5c0136d593b1b2a1c72de71eaa3f9652d40d1440a9983aa2e534292f7d3c72fd4293f3c5e9f0e9e1a0e021fc1d1d5216ff837254caedfb858a2b09c8b7
diff --git a/sys-kernel/spl/spl-0.7.12-r1.ebuild b/sys-kernel/spl/spl-0.7.12-r1.ebuild
new file mode 100644
index 000000000000..3fc2610b1ca7
--- /dev/null
+++ b/sys-kernel/spl/spl-0.7.12-r1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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="https://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
+ !TRIM_UNUSED_KSYMS
+ 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 20 || die "Linux 4.20 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
+}