diff options
Diffstat (limited to 'sys-kernel/zfs-dkms')
-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 |
3 files changed, 120 insertions, 0 deletions
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 +} |