mirror of
https://aur.archlinux.org/zfs-linux.git
synced 2025-06-06 23:57:24 +02:00
Update for kernel 4.0.7-2
This commit is contained in:
commit
2deb085c92
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
pkgbase = zfs-git
|
||||||
|
pkgdesc = Kernel modules for the Zettabyte File System.
|
||||||
|
pkgver = 0.6.4.2_r0_g44b5ec8_4.0.7_2
|
||||||
|
pkgrel = 1
|
||||||
|
url = http://zfsonlinux.org/
|
||||||
|
install = zfs.install
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
groups = archzfs-git
|
||||||
|
license = CDDL
|
||||||
|
makedepends = git
|
||||||
|
makedepends = linux-headers=4.0.7-2
|
||||||
|
depends = spl-git
|
||||||
|
depends = zfs-utils-git
|
||||||
|
depends = linux=4.0.7-2
|
||||||
|
provides = zfs
|
||||||
|
conflicts = zfs
|
||||||
|
conflicts = zfs-lts
|
||||||
|
replaces = zfs
|
||||||
|
source = git+https://github.com/zfsonlinux/zfs.git#commit=44b5ec8f
|
||||||
|
md5sums = SKIP
|
||||||
|
|
||||||
|
pkgname = zfs-git
|
||||||
|
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
zfs/
|
||||||
|
*.tar.xz
|
||||||
|
*.sig
|
70
PKGBUILD
Normal file
70
PKGBUILD
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
|
||||||
|
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
|
||||||
|
#
|
||||||
|
# This PKGBUILD was generated by the archzfs build scripts located at
|
||||||
|
#
|
||||||
|
# http://github.com/demizer/archzfs
|
||||||
|
#
|
||||||
|
# The build script generates and updates the pkgver and _kernel* variables.
|
||||||
|
#
|
||||||
|
pkgname="zfs-git"
|
||||||
|
pkgver=0.6.4.2_r0_g44b5ec8_4.0.7_2
|
||||||
|
pkgrel=1
|
||||||
|
license=('CDDL')
|
||||||
|
|
||||||
|
# Used incase the i686 and x86_64 linux packages get out of sync with the
|
||||||
|
# PKGREL. This occurred on January 31, 2014 where i686 was versioned at
|
||||||
|
# 3.12.9-1 and x86_64 was versioned at 3.12.9-2.
|
||||||
|
_kernel_version_x32="4.0.7-2"
|
||||||
|
_kernel_version_x32_full="4.0.7-2"
|
||||||
|
_kernel_version_x64="4.0.7-2"
|
||||||
|
_kernel_version_x64_full="4.0.7-2"
|
||||||
|
|
||||||
|
if [[ $CARCH == "i686" ]]; then
|
||||||
|
_kernel_version=${_kernel_version_x32}
|
||||||
|
_kernel_version_full=${_kernel_version_x32_full}
|
||||||
|
else
|
||||||
|
_kernel_version=${_kernel_version_x64}
|
||||||
|
_kernel_version_full=${_kernel_version_x64_full}
|
||||||
|
fi
|
||||||
|
|
||||||
|
pkgdesc="Kernel modules for the Zettabyte File System."
|
||||||
|
depends=("spl-git" "zfs-utils-git" "linux=${_kernel_version}")
|
||||||
|
makedepends=("git" "linux-headers=${_kernel_version}")
|
||||||
|
arch=("i686" "x86_64")
|
||||||
|
url="http://zfsonlinux.org/"
|
||||||
|
source=("git+https://github.com/zfsonlinux/zfs.git#commit=44b5ec8f")
|
||||||
|
groups=("archzfs-git")
|
||||||
|
md5sums=('SKIP')
|
||||||
|
replaces=("zfs")
|
||||||
|
provides=("zfs")
|
||||||
|
conflicts=("zfs" "zfs-lts")
|
||||||
|
install=zfs.install
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/zfs"
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--sbindir=/usr/bin \
|
||||||
|
--libdir=/usr/lib \
|
||||||
|
--datadir=/usr/share \
|
||||||
|
--includedir=/usr/include \
|
||||||
|
--with-udevdir=/lib/udev \
|
||||||
|
--libexecdir=/usr/lib/zfs \
|
||||||
|
--with-config=kernel \
|
||||||
|
--with-linux=/usr/lib/modules/${_kernel_version_full}-ARCH/build
|
||||||
|
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/zfs"
|
||||||
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
|
cp -r "$pkgdir"/{lib,usr}
|
||||||
|
rm -r "$pkgdir"/lib
|
||||||
|
|
||||||
|
sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/${_kernel_version_full}-ARCH/Module.symvers
|
||||||
|
}
|
34
zfs.install
Normal file
34
zfs.install
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
post_install() {
|
||||||
|
check_initramfs
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
check_initramfs 'remove'
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
check_initramfs
|
||||||
|
}
|
||||||
|
|
||||||
|
check_initramfs() {
|
||||||
|
echo ">>> Updating module dependencies. Please wait ..."
|
||||||
|
|
||||||
|
_kernel_version_x32_full="4.0.7-2"
|
||||||
|
_kernel_version_x64_full="4.0.7-2"
|
||||||
|
|
||||||
|
[[ $CARCH == "i686" ]] && _kernel_version_full=${_kernel_version_x32_full} || _kernel_version_full=${_kernel_version_x64_full}
|
||||||
|
|
||||||
|
depmod ${_kernel_version_full}-ARCH
|
||||||
|
|
||||||
|
MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?);
|
||||||
|
if [[ $MK_CONF == '0' ]]; then
|
||||||
|
if [[ $1 == 'remove' ]]; then
|
||||||
|
echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"'
|
||||||
|
echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the '
|
||||||
|
echo '>>> "hooks" list and then regenerate the initial ramdisk.'
|
||||||
|
else
|
||||||
|
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
|
||||||
|
mkinitcpio -p linux
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user