diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-06-05 13:26:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-06-05 13:26:58 +0100 |
commit | 56445d1242dd1124657ec42b3d453fca8e3643ba (patch) | |
tree | e5f655955b4bccc65b286d5cc219b4c012ea73c9 | |
parent | 46398022c8c7ee987d95a77347b04735fd0a34c9 (diff) |
add zfs && spl dkms packages
-rw-r--r-- | sys-kernel/spl-dkms/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/spl-dkms/files/dkms.conf | 57 | ||||
-rw-r--r-- | sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild | 50 | ||||
-rw-r--r-- | sys-kernel/spl/spl-0.6.5.9.ebuild | 17 | ||||
-rw-r--r-- | sys-kernel/zfs-dkms/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/zfs-dkms/files/dkms.conf | 69 | ||||
-rw-r--r-- | sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild | 50 | ||||
-rw-r--r-- | sys-kernel/zfs/zfs-0.6.5.9.ebuild | 18 |
8 files changed, 263 insertions, 0 deletions
diff --git a/sys-kernel/spl-dkms/Manifest b/sys-kernel/spl-dkms/Manifest new file mode 100644 index 00000000..197e6bb5 --- /dev/null +++ b/sys-kernel/spl-dkms/Manifest @@ -0,0 +1 @@ +DIST spl-0.6.5.9.tar.gz 594271 SHA256 d9ccd24786bb5a8616748a93a3c0b1270aa891175e2f5d726195b416f5c03b9c SHA512 356db95fcc93eb4ee298efc1ac25d38743572c539fc10b2d1533af861b4fd60804e61c3fb9f9bbad3d7a51cf123113b5b0bcbd49eba1bad7b1d8823d206022e8 WHIRLPOOL 6565a4939efaeba0cff75496ce9e8ea84b55da97fe47457ca33bcaf07aaa93a27dd410a9264b29539e65475029c0f0c612bc93b9fee4f97c7d6db9c92aab6a34 diff --git a/sys-kernel/spl-dkms/files/dkms.conf b/sys-kernel/spl-dkms/files/dkms.conf new file mode 100644 index 00000000..8ac2b1a7 --- /dev/null +++ b/sys-kernel/spl-dkms/files/dkms.conf @@ -0,0 +1,57 @@ +PACKAGE_NAME="spl-dkms" +PACKAGE_VERSION="0.6.5.9" +PACKAGE_CONFIG="/etc/sysconfig/spl" +PRE_BUILD="configure + --prefix=/usr + --with-config=kernel + --with-linux=${kernel_source_dir} + --with-linux-obj=${kernel_source_dir} + $( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && \ + { + if [[ ${SPL_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]] + then + echo --enable-debug + fi + if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM,,} == @(y|yes) ]] + then + echo --enable-debug-kmem + fi + if [[ ${SPL_DKMS_ENABLE_DEBUG_KMEM_TRACKING,,} == @(y|yes) ]] + then + echo --enable-debug-kmem-tracking + fi + if [[ ${SPL_DKMS_ENABLE_ATOMIC_SPINLOCKS,,} == @(y|yes) ]] + then + echo --enable-atomic-spinlocks + fi + } + ) +" +POST_BUILD="scripts/dkms.postbuild + -n ${PACKAGE_NAME} + -v ${PACKAGE_VERSION} + -a ${arch} + -k ${kernelver} + -t ${dkms_tree} +" +AUTOINSTALL="yes" +REMAKE_INITRD="no" +MAKE[0]="make" +STRIP[0]="$( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && [[ ${SPL_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \ + && echo -n no +)" +STRIP[1]="${STRIP[0]}" +BUILT_MODULE_NAME[0]="spl" +BUILT_MODULE_LOCATION[0]="module/spl/" +DEST_MODULE_LOCATION[0]="/extra/spl/spl" +BUILT_MODULE_NAME[1]="splat" +BUILT_MODULE_LOCATION[1]="module/splat/" +DEST_MODULE_LOCATION[1]="/extra/splat/splat" diff --git a/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild b/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild new file mode 100644 index 00000000..8c83f24b --- /dev/null +++ b/sys-kernel/spl-dkms/spl-dkms-0.6.5.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PN="spl" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Solaris Porting Layer sources for linux" +HOMEPAGE="http://zfsonlinux.org/" +SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64" +IUSE="" +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + cp "${FILESDIR}/dkms.conf" "${S}" || die + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r ${S}/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} diff --git a/sys-kernel/spl/spl-0.6.5.9.ebuild b/sys-kernel/spl/spl-0.6.5.9.ebuild new file mode 100644 index 00000000..add8442a --- /dev/null +++ b/sys-kernel/spl/spl-0.6.5.9.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Solaris Porting Layer meta-package (Gentoo compatibility ebuild)" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="~sys-fs/spl-utils-${PV} + ~sys-kernel/spl-dkms-${PV}" +RDEPEND="" diff --git a/sys-kernel/zfs-dkms/Manifest b/sys-kernel/zfs-dkms/Manifest new file mode 100644 index 00000000..01dbebe5 --- /dev/null +++ b/sys-kernel/zfs-dkms/Manifest @@ -0,0 +1 @@ +DIST zfs-0.6.5.9.tar.gz 2610650 SHA256 b724b57dbddae59246fdc15f88f1224061c712945bb36412a2087e0c7760d77f SHA512 6e175f32421cf0f9e13429f12f0fac0564dc7059ab076831d0ebc4f6a17412160ca3526ebdf894bc7666e82580355b08701dd01c411d3177f82e7330b4529a37 WHIRLPOOL 149d730a26363b50691363b314669756d218c4a16e6d06e319c2b0866c5f8ed6e2da2396a516297c127d3343d51d78072d8b7371e3f4d327d30fa43c90be5cd3 diff --git a/sys-kernel/zfs-dkms/files/dkms.conf b/sys-kernel/zfs-dkms/files/dkms.conf new file mode 100644 index 00000000..a5b3e9f9 --- /dev/null +++ b/sys-kernel/zfs-dkms/files/dkms.conf @@ -0,0 +1,69 @@ +PACKAGE_NAME="zfs-dkms" +PACKAGE_VERSION="0.6.5.9" +PACKAGE_CONFIG="/etc/sysconfig/zfs" +PRE_BUILD="configure + --prefix=/usr + --with-config=kernel + --with-linux=${kernel_source_dir} + --with-linux-obj=${kernel_source_dir} + --with-spl=${source_tree}/spl-dkms-${PACKAGE_VERSION} + --with-spl-obj=${dkms_tree}/spl-dkms/${PACKAGE_VERSION}/${kernelver}/${arch} + --with-spl-timeout=300 + $( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && \ + { + if [[ ${ZFS_DKMS_ENABLE_DEBUG,,} == @(y|yes) ]] + then + echo --enable-debug + fi + if [[ ${ZFS_DKMS_ENABLE_DMU_TX,,} == @(y|yes) ]] + then + echo --enable-debug-dmu-tx + fi + } + ) +" +POST_BUILD="scripts/dkms.postbuild + -n ${PACKAGE_NAME} + -v ${PACKAGE_VERSION} + -a ${arch} + -k ${kernelver} + -t ${dkms_tree} +" +BUILD_DEPENDS[0]="spl" +AUTOINSTALL="yes" +REMAKE_INITRD="no" +MAKE[0]="make" +STRIP[0]="$( + [[ -r ${PACKAGE_CONFIG} ]] \ + && source ${PACKAGE_CONFIG} \ + && shopt -q -s extglob \ + && [[ ${ZFS_DKMS_DISABLE_STRIP,,} == @(y|yes) ]] \ + && echo -n no +)" +STRIP[1]="${STRIP[0]}" +STRIP[2]="${STRIP[0]}" +STRIP[3]="${STRIP[0]}" +STRIP[4]="${STRIP[0]}" +STRIP[5]="${STRIP[0]}" +BUILT_MODULE_NAME[0]="zavl" +BUILT_MODULE_LOCATION[0]="module/avl/" +DEST_MODULE_LOCATION[0]="/extra/avl/avl" +BUILT_MODULE_NAME[1]="znvpair" +BUILT_MODULE_LOCATION[1]="module/nvpair/" +DEST_MODULE_LOCATION[1]="/extra/nvpair/znvpair" +BUILT_MODULE_NAME[2]="zunicode" +BUILT_MODULE_LOCATION[2]="module/unicode/" +DEST_MODULE_LOCATION[2]="/extra/unicode/zunicode" +BUILT_MODULE_NAME[3]="zcommon" +BUILT_MODULE_LOCATION[3]="module/zcommon/" +DEST_MODULE_LOCATION[3]="/extra/zcommon/zcommon" +BUILT_MODULE_NAME[4]="zfs" +BUILT_MODULE_LOCATION[4]="module/zfs/" +DEST_MODULE_LOCATION[4]="/extra/zfs/zfs" +BUILT_MODULE_NAME[5]="zpios" +BUILT_MODULE_LOCATION[5]="module/zpios/" +DEST_MODULE_LOCATION[5]="/extra/zpios/zpios" diff --git a/sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild b/sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild new file mode 100644 index 00000000..7bc7ea25 --- /dev/null +++ b/sys-kernel/zfs-dkms/zfs-dkms-0.6.5.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PN="zfs" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="ZFS sources for linux" +HOMEPAGE="http://zfsonlinux.org/" +SRC_URI="https://github.com/zfsonlinux/zfs/releases/download/zfs-${PV}/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64" +IUSE="" +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + cp "${FILESDIR}/dkms.conf" "${S}" || die + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r ${S}/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} diff --git a/sys-kernel/zfs/zfs-0.6.5.9.ebuild b/sys-kernel/zfs/zfs-0.6.5.9.ebuild new file mode 100644 index 00000000..99704b54 --- /dev/null +++ b/sys-kernel/zfs/zfs-0.6.5.9.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="ZFS meta-package (Gentoo compatibility ebuild)" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="~sys-kernel/spl-${PV} + ~sys-fs/zfs-utils-${PV} + ~sys-kernel/zfs-dkms-${PV}" +RDEPEND="" |