From 596207ca6a24358be8bba0121b7b4c35239aa860 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Mon, 11 Dec 2017 21:31:15 +0300 Subject: sys-cluster/lustre: Version bump Package-Manager: Portage-2.3.17, Repoman-2.3.6 --- sys-cluster/lustre/Manifest | 1 + sys-cluster/lustre/lustre-2.10.1.ebuild | 120 ++++++++++++++++++++++++++++++++ sys-cluster/lustre/lustre-9999.ebuild | 14 ++-- 3 files changed, 129 insertions(+), 6 deletions(-) create mode 100644 sys-cluster/lustre/Manifest create mode 100644 sys-cluster/lustre/lustre-2.10.1.ebuild diff --git a/sys-cluster/lustre/Manifest b/sys-cluster/lustre/Manifest new file mode 100644 index 000000000..a2b8f9bf1 --- /dev/null +++ b/sys-cluster/lustre/Manifest @@ -0,0 +1 @@ +DIST lustre-2.10.1.tar.gz 15281445 BLAKE2B 53961a97c435d3eb03dae1fd0a8e080659d2997222ec847c612f9aff27d0e0c0a2ab07255dd958f61737480c18bd08db0965e072501b4ffa331367b984ab71a9 SHA512 a76bf9f489dc4aedce6716e26421c85a99628153c7644fa537a91cc6db8e1a8540d444acac6b2da4a77da52b0962e146c10427347a5f3916a4338de19e11b1a7 diff --git a/sys-cluster/lustre/lustre-2.10.1.ebuild b/sys-cluster/lustre/lustre-2.10.1.ebuild new file mode 100644 index 000000000..b2b1d1b35 --- /dev/null +++ b/sys-cluster/lustre/lustre-2.10.1.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +WANT_AUTOCONF="2.5" +WANT_AUTOMAKE="1.15" +WANT_LIBTOOL="latest" + +if [[ $PV = *9999* ]]; then + scm="git-r3" + SRC_URI="" + EGIT_REPO_URI="git://git.whamcloud.com/fs/lustre-release.git" + KEYWORDS="" + EGIT_BRANCH="master" +else + scm="" + SRC_URI="https://dev.gentoo.org/~alexxy/distfiles/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +SUPPORTED_KV_MAJOR=4 +SUPPORTED_KV_MINOR=9 + +inherit ${scm} autotools linux-info linux-mod toolchain-funcs udev flag-o-matic + +DESCRIPTION="Lustre is a parallel distributed file system" +HOMEPAGE="http://wiki.whamcloud.com/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+client +utils +modules +dlc server readline tests" + +RDEPEND=" + virtual/awk + dlc? ( dev-libs/libyaml ) + readline? ( sys-libs/readline:0 ) + server? ( + >=sys-kernel/spl-0.6.1 + >=sys-fs/zfs-kmod-0.6.1 + sys-fs/zfs + ) + " +DEPEND="${RDEPEND} + dev-python/docutils + virtual/linux-sources" + +REQUIRED_USE=" + client? ( modules ) + server? ( modules )" + +pkg_pretend() { + KVSUPP=${SUPPORTED_KV_MAJOR}.${SUPPORTED_KV_MINOR}.x + if kernel_is gt ${SUPPORTED_KV_MAJOR} ${SUPPORTED_KV_MINOR}; then + eerror "Unsupported kernel version! Latest supported one is ${KVSUPP}" + die + fi +} + +pkg_setup() { + filter-mfpmath sse + filter-mfpmath i386 + filter-flags -msse* -mavx* -mmmx -m3dnow + linux-mod_pkg_setup + ARCH="$(tc-arch-kernel)" + ABI="${KERNEL_ABI}" +} + +src_prepare() { + if [ ${#PATCHES[0]} -ne 0 ]; then + epatch ${PATCHES[@]} + fi + eapply_user + if [[ ${PV} == "9999" ]]; then + # replace upstream autogen.sh by our src_prepare() + local DIRS="libcfs lnet lustre snmp" + local ACLOCAL_FLAGS + for dir in $DIRS ; do + ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $dir/autoconf" + done + _elibtoolize -q + eaclocal -I config $ACLOCAL_FLAGS + eautoheader + eautomake + eautoconf + fi +} + +src_configure() { + local myconf + if use server; then + SPL_PATH=$(basename $(echo "${EROOT}usr/src/spl-"*)) \ + myconf="${myconf} --with-spl=${EROOT}usr/src/${SPL_PATH} \ + --with-spl-obj=${EROOT}usr/src/${SPL_PATH}/${KV_FULL}" + ZFS_PATH=$(basename $(echo "${EROOT}usr/src/zfs-"*)) \ + myconf="${myconf} --with-zfs=${EROOT}usr/src/${ZFS_PATH} \ + --with-zfs-obj=${EROOT}usr/src/${ZFS_PATH}/${KV_FULL}" + fi + econf \ + ${myconf} \ + --without-ldiskfs \ + --with-linux="${KERNEL_DIR}" \ + $(use_enable dlc) \ + $(use_enable client) \ + $(use_enable utils) \ + $(use_enable modules) \ + $(use_enable server) \ + $(use_enable readline) \ + $(use_enable tests) +} + +src_compile() { + default +} + +src_install() { + default + newinitd "${FILESDIR}/lnet.initd" lnet + newinitd "${FILESDIR}/lustre-client.initd" lustre-client +} diff --git a/sys-cluster/lustre/lustre-9999.ebuild b/sys-cluster/lustre/lustre-9999.ebuild index 3cf01dd73..1f17955bb 100644 --- a/sys-cluster/lustre/lustre-9999.ebuild +++ b/sys-cluster/lustre/lustre-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -8,22 +8,24 @@ WANT_AUTOMAKE="1.15" WANT_LIBTOOL="latest" if [[ $PV = *9999* ]]; then + scm="git-r3" + SRC_URI="" + EGIT_REPO_URI="git://git.whamcloud.com/fs/lustre-release.git" KEYWORDS="" EGIT_BRANCH="master" else + scm="" + SRC_URI="https://dev.gentoo.org/~alexxy/distfiles/${P}.tar.gz" KEYWORDS="~amd64" - EGIT_COMMIT="${PV}" fi SUPPORTED_KV_MAJOR=4 -SUPPORTED_KV_MINOR=1 +SUPPORTED_KV_MINOR=9 -inherit git-r3 autotools linux-info linux-mod toolchain-funcs udev flag-o-matic +inherit ${scm} autotools linux-info linux-mod toolchain-funcs udev flag-o-matic DESCRIPTION="Lustre is a parallel distributed file system" HOMEPAGE="http://wiki.whamcloud.com/" -SRC_URI="" -EGIT_REPO_URI="git://git.whamcloud.com/fs/lustre-release.git" LICENSE="GPL-2" SLOT="0" -- cgit v1.2.3-65-gdbad