From a5332b59346f7cbf0fdbd148b54aa8a84aaf8190 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 10 Nov 2017 00:43:02 +0000 Subject: gentoo resync : 10.11.2017 --- sys-kernel/spl/Manifest | 2 + sys-kernel/spl/spl-0.7.3.ebuild | 110 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 sys-kernel/spl/spl-0.7.3.ebuild (limited to 'sys-kernel/spl') diff --git a/sys-kernel/spl/Manifest b/sys-kernel/spl/Manifest index 609132e3dcb2..e33d6e800880 100644 --- a/sys-kernel/spl/Manifest +++ b/sys-kernel/spl/Manifest @@ -31,6 +31,7 @@ DIST spl-0.6.5.9.tar.gz 594271 SHA256 d9ccd24786bb5a8616748a93a3c0b1270aa891175e DIST spl-0.7.0.tar.gz 608150 SHA256 567f461435f99f862efb1b740ed0876b52a2a539aafad6e5372a84a06a5da4d3 SHA512 a01798fad4f46788cf91d97699837526d5a33e35dcd46247a9e00747d3d439b949113eb42c8d9fe9cbc4a7b1ee645a5ac09eb764db82a2a07eaddbbb9605d11c WHIRLPOOL 7087089423c3515945af9de27879b8f009cf39ee3840400bde2aebd967bfe2be41d513ca6368774ad06d1871c81c3abd50f442d5ea9602da456cbe6a3e8cecd4 DIST spl-0.7.1.tar.gz 547932 SHA256 e6a83dc50bc83a5ce6f20238da16fb941ab6090c419be8af8fc9223210f637fd SHA512 1edd0d21f6bc24c3c1295a3e1002ccc03954b1a8657f34050ca9992aac33eb2caa4356c92c74b1c1767ce69f67f3463bcab749b411b2676b5ed16c6ca838e0fe WHIRLPOOL 8facc1c8bc10481a09b92d16f7c4e3c6612749d55014c28444d0b62382940c84857f2f4c165b45f55aa917172a562dcc2897bc8bc5b8045793e9ebe96345fe5e DIST spl-0.7.2.tar.gz 547903 SHA256 c22e410c661a29acfa16caee21b82f8bb166f5b6611ec56431cd9c172ab4729e SHA512 89aef037306b29d6fde8543f2cd0ef300e3a71620a10695f57646154a6122c02a8f8907221a93ee32344c2a07a54cde4635710318dd8d67b1904b64729c3ee40 WHIRLPOOL 4240467e6188bd499511a5a16e063b912b221dc74cb9c325ba0119e9bff91c18625c6039978023920e97163af01f42210ca17e156bc6afc7f314ac8833efec20 +DIST spl-0.7.3.tar.gz 548434 SHA256 cd8b8624163577bdec1d1d214c942c5771f183432a04d35c00fc6e7f12fa836b SHA512 22d081449e699147f3bcd9791c89709196bb08cf3cd17cdd6fe2472fd9fb5011d6ea52e2c9c95be89d5cc46704b38a4ac57821584e1691b7bb8b0a705a6d78a1 WHIRLPOOL fc02411fd3eb393ea990ff12852cff430aeaf93d8e99dff4037c3437b795e82d7489b6454307448c44dde0e4b66e34c2d0b086354e35544b0f69b085bbb4b47d EBUILD spl-0.6.0_rc13-r2.ebuild 2640 SHA256 5618eb9e561d7e9de3d1cd859ad88783de706184d88c3f57c4f2969d53e72327 SHA512 40bf49e792a9f3d7bf2e35c4dd5c6ed6840f03fc2b72b9514fd7058d7cd794211a5bb4ab41c6639be7ac7159ad8749d91ac7c1b146359d7fef16d371648d3998 WHIRLPOOL 17c7d32ca672058c05bcce093647f892018be641b1047b95fb3c07873f5483ca1f28510e09f71737bee43e822de2d95192aa3d958350b6c75e05be7fa4f5e1a5 EBUILD spl-0.6.0_rc14-r3.ebuild 2926 SHA256 de564fb1f3ddfed9f02c603239697f255e500c314efc9309ae1028ac33f92b3b SHA512 a72dbf022c93656063efcfbe78ba8c1fffc55cbd13d1535bd97de1fd22591c93b52edd6ac5b71ab549c502596a7024f21359f4b3227480f87719546b7fa1c787 WHIRLPOOL fa03c2276f77e18d4bcaffcfdb2cf455c3fb2e27018d2497f7e8489e6b0a284a7db39db7c34158d95610e13facdb1762a6ab7dadf01432ab03de4eb7d794c730 EBUILD spl-0.6.1-r3.ebuild 3093 SHA256 695f1f44b15d038dcb7a76ac57314381f622af8d72bffea9520034c8da0498da SHA512 322eb4cc68c360636f4b2db76697180a9d0ec8afe31f9a6fd00a5ff21817ae49ffa42c1eb73e7e175f8745a489ee5a843a71def1a8d234104331865552f53ad5 WHIRLPOOL 8fefec7b6553136a5cf4a8f8df22ab837085c76400d2b4a1aaaf8888d05c52605b8b440b22d52359c151f7397e593a4cc343e11bf770f656848f82f0e922fbdd @@ -51,6 +52,7 @@ EBUILD spl-0.6.5.9.ebuild 2717 SHA256 56ff526b677d27d476a7b3ab32f98a708fa695b46c EBUILD spl-0.7.0.ebuild 2717 SHA256 e7587d6d038cc443e1a9b551b94e23018dff427c903bafe635e64505169fef06 SHA512 13cea0c1dfe684bebb4783dc0c655278a7a9903402a738c05238de66c131edf328834070adfc8d303949560f8d62eff07a5d9f321bdda45c002bcc64dd5d3431 WHIRLPOOL a4d74dadc6ebc4c768a350f27365b6c7fce5172df7743c81c64f8716074d3159efc2e71040e828feceb0554a8d226c47638ab56b406be7f867864b7a3d6c83fd EBUILD spl-0.7.1.ebuild 2717 SHA256 e7587d6d038cc443e1a9b551b94e23018dff427c903bafe635e64505169fef06 SHA512 13cea0c1dfe684bebb4783dc0c655278a7a9903402a738c05238de66c131edf328834070adfc8d303949560f8d62eff07a5d9f321bdda45c002bcc64dd5d3431 WHIRLPOOL a4d74dadc6ebc4c768a350f27365b6c7fce5172df7743c81c64f8716074d3159efc2e71040e828feceb0554a8d226c47638ab56b406be7f867864b7a3d6c83fd EBUILD spl-0.7.2.ebuild 2717 SHA256 dfc04b9e783b5c216e28e873dece38bf00fa7933545841d49cb06f684022eaeb SHA512 ac51c4aefdc48c7d8c3a382f4333ad31780a01ca571897c1175ffe1a42ed7210c771ca88276096153ac65072a50cf73ea26ebfbbc527f19ed2b3de460422c468 WHIRLPOOL 2978dd970551ef105a716c8d4ed571d0510f1b832ebac917feca3e71d4548650f0671435fcd2394f198e879709dc224b874ab760b5bb48ef009e0af3c0d8f1b3 +EBUILD spl-0.7.3.ebuild 2717 SHA256 dfc04b9e783b5c216e28e873dece38bf00fa7933545841d49cb06f684022eaeb SHA512 ac51c4aefdc48c7d8c3a382f4333ad31780a01ca571897c1175ffe1a42ed7210c771ca88276096153ac65072a50cf73ea26ebfbbc527f19ed2b3de460422c468 WHIRLPOOL 2978dd970551ef105a716c8d4ed571d0510f1b832ebac917feca3e71d4548650f0671435fcd2394f198e879709dc224b874ab760b5bb48ef009e0af3c0d8f1b3 EBUILD spl-9999.ebuild 2752 SHA256 43a4ca3d4f65c05343ae4f5eecefc0811d4eec6dc27d42851f8c99e62c4a119f SHA512 9c1ee1ec008d4f6f9a58a5e2c2942b62979ec0c7e6cb80a136c5b874adb52111beb7302ac347a9d60412ee5165cced4656e276d7ca0125edb7e8e594706bc408 WHIRLPOOL ec8473441c80125b0ee9387b14280e2d502a7596485c438eee70aa2202d76da440c259fd0fcf5c04dc23e723508b25ae2fd4df9b34d3b5134202cb74aaed48e0 MISC ChangeLog 10748 SHA256 7f43e2292109f0e78d4fba1100efdc8f542599774a29e6ce896801dc7677df67 SHA512 b36e5641e1be62a579edc449c882675f4570c0443d0eee4daedad3a494fd814f8dfcbc736cfbd315555e1a9603d5cb95a3fba8e844753c72c2613038fd0428ad WHIRLPOOL d088e4b5ffc56327d4e289dd6331acb90912d3ebd0c02c6a63c50345be650346faa973646bd912a953f4f388368ccd3e5241a14230da7c9f3c1e92ae5bb90abf MISC ChangeLog-2015 16325 SHA256 c81ebdd34dcab30fe1b238f412debae6dfe1997ba55b486029321d6bcad7d9fd SHA512 3b265e5b9fdd79eac7946d7f7be229478960491e4467763e56ac4f5b9cd82855f164173bf32c73fb4b1ac4bd8446d68f86a73a40a6210876dfe88ab53d333e31 WHIRLPOOL 98c9f57885cad957a671985fbb469a329599f1ac4b8ae407765917574e412143b1ee8df3fb73e21b73d1394fe5a5da3f0cc252c6b5b8fb8302056207c12d1ae7 diff --git a/sys-kernel/spl/spl-0.7.3.ebuild b/sys-kernel/spl/spl-0.7.3.ebuild new file mode 100644 index 000000000000..4663b4d58f83 --- /dev/null +++ b/sys-kernel/spl/spl-0.7.3.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 is a Linux kernel module which 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 +} -- cgit v1.2.3