mirror of https://github.com/archzfs/archzfs
commit
c847457ccc
@ -1 +0,0 @@ |
||||
Subproject commit eae72a2a352a733b30b5dce7e3bfc9fc3ed07577 |
@ -1,34 +0,0 @@ |
||||
pkgbase = spl-dkms-git |
||||
pkgdesc = Solaris Porting Layer kernel modules. |
||||
pkgver = 2018.05.07.r1074.g1149b62 |
||||
pkgrel = 1 |
||||
url = http://zfsonlinux.org/ |
||||
arch = x86_64 |
||||
groups = archzfs-dkms-git |
||||
license = GPL |
||||
makedepends = git |
||||
depends = spl-utils-common-git=2018.05.07.r1074.g1149b62 |
||||
depends = dkms |
||||
provides = spl |
||||
conflicts = spl-dkms |
||||
conflicts = spl-archiso-linux |
||||
conflicts = spl-archiso-linux-git |
||||
conflicts = spl-linux-hardened |
||||
conflicts = spl-linux-hardened-git |
||||
conflicts = spl-linux-lts |
||||
conflicts = spl-linux-lts-git |
||||
conflicts = spl-linux |
||||
conflicts = spl-linux-git |
||||
conflicts = spl-linux-vfio |
||||
conflicts = spl-linux-vfio-git |
||||
conflicts = spl-linux-zen |
||||
conflicts = spl-linux-zen-git |
||||
source = git+https://github.com/zfsonlinux/spl.git#commit=1149b62d20b7ed9d8ae25d5da7a06213d79b7602 |
||||
source = 60-spl-dkms-install.hook |
||||
source = spl-dkms-alpm-hook |
||||
sha256sums = SKIP |
||||
sha256sums = 15f71a9ceccf795cdac65743bee338e9987ec77e217721f32d55099be6ecf3d7 |
||||
sha256sums = 836002f310b9e1d4b1a0e5c30d5b0ac5aa120d335b3ea223228a0b9f037ef8b8 |
||||
|
||||
pkgname = spl-dkms-git |
||||
|
@ -1,5 +0,0 @@ |
||||
*.tar.xz |
||||
*.tar.gz |
||||
*.sig |
||||
*.log |
||||
spl/ |
@ -1,12 +0,0 @@ |
||||
[Trigger] |
||||
Operation = Install |
||||
Operation = Upgrade |
||||
Type = File |
||||
Target = usr/src/spl-*/dkms.conf |
||||
Target = usr/lib/modules/*/build/include/ |
||||
|
||||
[Action] |
||||
Description = Installing SPL |
||||
Depends = dkms |
||||
When = PostTransaction |
||||
Exec = /usr/lib/dkms/spl-dkms-alpm-hook |
@ -1,44 +0,0 @@ |
||||
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com> |
||||
# |
||||
# This PKGBUILD was generated by the archzfs build scripts located at |
||||
# |
||||
# http://github.com/archzfs/archzfs |
||||
# |
||||
# |
||||
pkgname="spl-dkms-git" |
||||
pkgdesc="Solaris Porting Layer kernel modules." |
||||
|
||||
pkgver=2018.05.07.r1074.g1149b62 |
||||
pkgrel=1 |
||||
makedepends=("git") |
||||
arch=("x86_64") |
||||
url="http://zfsonlinux.org/" |
||||
source=("git+https://github.com/zfsonlinux/spl.git#commit=1149b62d20b7ed9d8ae25d5da7a06213d79b7602" |
||||
"60-spl-dkms-install.hook" |
||||
"spl-dkms-alpm-hook") |
||||
sha256sums=("SKIP" |
||||
"15f71a9ceccf795cdac65743bee338e9987ec77e217721f32d55099be6ecf3d7" |
||||
"836002f310b9e1d4b1a0e5c30d5b0ac5aa120d335b3ea223228a0b9f037ef8b8") |
||||
license=("GPL") |
||||
depends=("spl-utils-common-git=2018.05.07.r1074.g1149b62" "dkms") |
||||
provides=("spl") |
||||
groups=("archzfs-dkms-git") |
||||
conflicts=('spl-dkms' 'spl-archiso-linux' 'spl-archiso-linux-git' 'spl-linux-hardened' 'spl-linux-hardened-git' 'spl-linux-lts' 'spl-linux-lts-git' 'spl-linux' 'spl-linux-git' 'spl-linux-vfio' 'spl-linux-vfio-git' 'spl-linux-zen' 'spl-linux-zen-git' ) |
||||
|
||||
build() { |
||||
cd "${srcdir}/spl" |
||||
./autogen.sh |
||||
} |
||||
|
||||
package() { |
||||
# install alpm hook |
||||
install -D -m 644 ${srcdir}/60-spl-dkms-install.hook ${pkgdir}/usr/share/libalpm/hooks/60-spl-dkms-install.hook |
||||
install -D -m 755 ${srcdir}/spl-dkms-alpm-hook ${pkgdir}/usr/lib/dkms/spl-dkms-alpm-hook |
||||
dkmsdir="${pkgdir}/usr/src/spl-git" |
||||
install -d "${dkmsdir}" |
||||
cp -a ${srcdir}/spl/. ${dkmsdir} |
||||
cd "${dkmsdir}" |
||||
find . -name ".git*" -print0 | xargs -0 rm -fr -- |
||||
scripts/dkms.mkconf -v git -f dkms.conf -n spl |
||||
chmod g-w,o-w -R . |
||||
} |
@ -1,28 +0,0 @@ |
||||
#!/bin/bash |
||||
|
||||
# display what to run and run it quietly |
||||
run() { |
||||
echo "==> $*" |
||||
"$@" > /dev/null |
||||
} |
||||
|
||||
# compile spl for the given kernel |
||||
install_spl() { |
||||
local kernel="${1}" |
||||
for m in $(ls /usr/src); do |
||||
if [[ "${m}" =~ ^spl-(.*)$ ]]; then |
||||
run dkms install "spl/${BASH_REMATCH[1]}" -k "${kernel}" |
||||
fi |
||||
done |
||||
} |
||||
|
||||
# go through all kernels and run install_spl() |
||||
main() { |
||||
for kernel in $(ls /usr/lib/modules); do |
||||
if [[ -d "/usr/lib/modules/${kernel}/kernel" ]]; then |
||||
install_spl "${kernel}" |
||||
fi |
||||
done |
||||
} |
||||
|
||||
main |
@ -1 +0,0 @@ |
||||
Subproject commit 13ff76e1e262d130ab4650c74065b4d50e92821b |
@ -1 +0,0 @@ |
||||
Subproject commit 191d4462bd5b1812bdc166e568e6b32ddb13196c |
@ -1 +0,0 @@ |
||||
Subproject commit 73b86d0ef8b36bd7bf7a1b4b06a512561ffaa2e3 |
@ -1 +0,0 @@ |
||||
Subproject commit 9222dd11a604898d6f29560075a5473eed270001 |
@ -1 +0,0 @@ |
||||
Subproject commit 5bd720649b2224f77ad137004ada2b812d43cc4f |
Loading…
Reference in new issue