Move dkms PKGBUILDs to submodules

pull/238/merge
Jan Houben 5 years ago
parent 75a63e8fbc
commit 2c7dc83b35
No known key found for this signature in database
GPG Key ID: 6866AADB974DD983
  1. 1
      .gitignore
  2. 9
      .gitmodules
  3. 1
      packages/dkms/spl-dkms
  4. 33
      packages/dkms/spl-dkms/.SRCINFO
  5. 4
      packages/dkms/spl-dkms/.gitignore
  6. 12
      packages/dkms/spl-dkms/60-spl-dkms-install.hook
  7. 44
      packages/dkms/spl-dkms/PKGBUILD
  8. 28
      packages/dkms/spl-dkms/spl-dkms-alpm-hook
  9. 1
      packages/dkms/zfs-dkms
  10. 1
      packages/dkms/zfs-dkms-git
  11. 44
      packages/dkms/zfs-dkms-git/.SRCINFO
  12. 5
      packages/dkms/zfs-dkms-git/.gitignore
  13. 38
      packages/dkms/zfs-dkms-git/PKGBUILD
  14. 42
      packages/dkms/zfs-dkms/.SRCINFO
  15. 4
      packages/dkms/zfs-dkms/.gitignore
  16. 37
      packages/dkms/zfs-dkms/PKGBUILD

1
.gitignore vendored

@ -1,4 +1,5 @@
*!
.directory
*/*.tar.*
*.log
archiso/out/

9
.gitmodules vendored

@ -58,3 +58,12 @@
[submodule "packages/linux-vfio/spl-linux-vfio"]
path = packages/linux-vfio/spl-linux-vfio
url = ssh://aur@aur.archlinux.org/spl-linux-vfio.git
[submodule "packages/dkms/spl-dkms"]
path = packages/dkms/spl-dkms
url = git@github.com:archzfs/spl-dkms.git
[submodule "packages/dkms/zfs-dkms"]
path = packages/dkms/zfs-dkms
url = git@github.com:archzfs/zfs-dkms.git
[submodule "packages/dkms/zfs-dkms-git"]
path = packages/dkms/zfs-dkms-git
url = git@github.com:archzfs/zfs-dkms-git.git

@ -0,0 +1 @@
Subproject commit 0c73b8951e6fdf4912dc7060e8cee24535cb4cb0

@ -1,33 +0,0 @@
pkgbase = spl-dkms
pkgdesc = Solaris Porting Layer kernel modules.
pkgver = 0.7.9
pkgrel = 1
url = http://zfsonlinux.org/
arch = x86_64
groups = archzfs-dkms
license = GPL
depends = spl-utils-common=0.7.9
depends = dkms
provides = spl
conflicts = spl-dkms-git
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 = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/spl-0.7.9.tar.gz
source = 60-spl-dkms-install.hook
source = spl-dkms-alpm-hook
sha256sums = 49832e446a5abce0b55ba245c9b5f94959604d44378320fdffae0233bf1e8c00
sha256sums = 15f71a9ceccf795cdac65743bee338e9987ec77e217721f32d55099be6ecf3d7
sha256sums = 836002f310b9e1d4b1a0e5c30d5b0ac5aa120d335b3ea223228a0b9f037ef8b8
pkgname = spl-dkms

@ -1,4 +0,0 @@
*.tar.xz
*.tar.gz
*.sig
*.log

@ -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"
pkgdesc="Solaris Porting Layer kernel modules."
pkgver=0.7.9
pkgrel=1
makedepends=()
arch=("x86_64")
url="http://zfsonlinux.org/"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/spl-0.7.9.tar.gz"
"60-spl-dkms-install.hook"
"spl-dkms-alpm-hook")
sha256sums=("49832e446a5abce0b55ba245c9b5f94959604d44378320fdffae0233bf1e8c00"
"15f71a9ceccf795cdac65743bee338e9987ec77e217721f32d55099be6ecf3d7"
"836002f310b9e1d4b1a0e5c30d5b0ac5aa120d335b3ea223228a0b9f037ef8b8")
license=("GPL")
depends=("spl-utils-common=0.7.9" "dkms")
provides=("spl")
groups=("archzfs-dkms")
conflicts=('spl-dkms-git' '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-0.7.9"
./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-0.7.9"
install -d "${dkmsdir}"
cp -a ${srcdir}/spl-0.7.9/. ${dkmsdir}
cd "${dkmsdir}"
find . -name ".git*" -print0 | xargs -0 rm -fr --
scripts/dkms.mkconf -v 0.7.9 -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

@ -0,0 +1 @@
Subproject commit e58458975a81f4e93e8f1cf69bfb1941195759e6

@ -0,0 +1 @@
Subproject commit 29764ff16cd0b9b72cdbf6c3e54580cba625af34

@ -1,44 +0,0 @@
pkgbase = zfs-dkms-git
pkgdesc = Kernel modules for the Zettabyte File System.
pkgver = 2018.06.27.r4617.g3be1eb29d
pkgrel = 1
url = http://zfsonlinux.org/
arch = x86_64
groups = archzfs-dkms-git
license = CDDL
makedepends = git
depends = zfs-utils-common-git=2018.06.27.r4617.g3be1eb29d
depends = lsb-release
provides = zfs
conflicts = zfs-dkms
conflicts = spl-dkms-git
conflicts = zfs-archiso-linux
conflicts = zfs-archiso-linux-git
conflicts = zfs-linux-hardened
conflicts = zfs-linux-hardened-git
conflicts = zfs-linux-lts
conflicts = zfs-linux-lts-git
conflicts = zfs-linux
conflicts = zfs-linux-git
conflicts = zfs-linux-vfio
conflicts = zfs-linux-vfio-git
conflicts = zfs-linux-zen
conflicts = zfs-linux-zen-git
conflicts = zfs-archiso-linux-headers
conflicts = zfs-archiso-linux-git-headers
conflicts = zfs-linux-hardened-headers
conflicts = zfs-linux-hardened-git-headers
conflicts = zfs-linux-lts-headers
conflicts = zfs-linux-lts-git-headers
conflicts = zfs-linux-headers
conflicts = zfs-linux-git-headers
conflicts = zfs-linux-vfio-headers
conflicts = zfs-linux-vfio-git-headers
conflicts = zfs-linux-zen-headers
conflicts = zfs-linux-zen-git-headers
replaces = spl-dkms-git
source = git+https://github.com/zfsonlinux/zfs.git#commit=3be1eb29dab4e96249de7832d9b3dae5740c33c8
sha256sums = SKIP
pkgname = zfs-dkms-git

@ -1,5 +0,0 @@
*.tar.xz
*.tar.gz
*.sig
*.log
zfs/

@ -1,38 +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="zfs-dkms-git"
pkgdesc="Kernel modules for the Zettabyte File System."
pkgver=2018.06.27.r4617.g3be1eb29d
pkgrel=1
makedepends=("git")
arch=("x86_64")
url="http://zfsonlinux.org/"
source=("git+https://github.com/zfsonlinux/zfs.git#commit=3be1eb29dab4e96249de7832d9b3dae5740c33c8")
sha256sums=("SKIP")
license=("CDDL")
depends=("zfs-utils-common-git=2018.06.27.r4617.g3be1eb29d" "lsb-release")
provides=("zfs")
groups=("archzfs-dkms-git")
conflicts=('zfs-dkms' 'spl-dkms-git' 'zfs-archiso-linux' 'zfs-archiso-linux-git' 'zfs-linux-hardened' 'zfs-linux-hardened-git' 'zfs-linux-lts' 'zfs-linux-lts-git' 'zfs-linux' 'zfs-linux-git' 'zfs-linux-vfio' 'zfs-linux-vfio-git' 'zfs-linux-zen' 'zfs-linux-zen-git' 'zfs-archiso-linux-headers' 'zfs-archiso-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers' 'zfs-linux-lts-headers' 'zfs-linux-lts-git-headers' 'zfs-linux-headers' 'zfs-linux-git-headers' 'zfs-linux-vfio-headers' 'zfs-linux-vfio-git-headers' 'zfs-linux-zen-headers' 'zfs-linux-zen-git-headers' )
replaces=("spl-dkms-git")
build() {
cd "${srcdir}/zfs"
./autogen.sh
}
package() {
dkmsdir="${pkgdir}/usr/src/zfs-git"
install -d "${dkmsdir}"
cp -a ${srcdir}/zfs/. ${dkmsdir}
cd "${dkmsdir}"
find . -name ".git*" -print0 | xargs -0 rm -fr --
scripts/dkms.mkconf -v git -f dkms.conf -n zfs
chmod g-w,o-w -R .
}

@ -1,42 +0,0 @@
pkgbase = zfs-dkms
pkgdesc = Kernel modules for the Zettabyte File System.
pkgver = 0.7.9
pkgrel = 1
url = http://zfsonlinux.org/
arch = x86_64
groups = archzfs-dkms
license = CDDL
depends = spl-dkms
depends = zfs-utils-common=0.7.9
depends = lsb-release
provides = zfs
conflicts = zfs-dkms-git
conflicts = zfs-archiso-linux
conflicts = zfs-archiso-linux-git
conflicts = zfs-linux-hardened
conflicts = zfs-linux-hardened-git
conflicts = zfs-linux-lts
conflicts = zfs-linux-lts-git
conflicts = zfs-linux
conflicts = zfs-linux-git
conflicts = zfs-linux-vfio
conflicts = zfs-linux-vfio-git
conflicts = zfs-linux-zen
conflicts = zfs-linux-zen-git
conflicts = zfs-archiso-linux-headers
conflicts = zfs-archiso-linux-git-headers
conflicts = zfs-linux-hardened-headers
conflicts = zfs-linux-hardened-git-headers
conflicts = zfs-linux-lts-headers
conflicts = zfs-linux-lts-git-headers
conflicts = zfs-linux-headers
conflicts = zfs-linux-git-headers
conflicts = zfs-linux-vfio-headers
conflicts = zfs-linux-vfio-git-headers
conflicts = zfs-linux-zen-headers
conflicts = zfs-linux-zen-git-headers
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz
sha256sums = f50ca2441c6abde4fe6b9f54d5583a45813031d6bb72b0011b00fc2683cd9f7a
pkgname = zfs-dkms

@ -1,4 +0,0 @@
*.tar.xz
*.tar.gz
*.sig
*.log

@ -1,37 +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="zfs-dkms"
pkgdesc="Kernel modules for the Zettabyte File System."
pkgver=0.7.9
pkgrel=1
makedepends=()
arch=("x86_64")
url="http://zfsonlinux.org/"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz")
sha256sums=("f50ca2441c6abde4fe6b9f54d5583a45813031d6bb72b0011b00fc2683cd9f7a")
license=("CDDL")
depends=('spl-dkms' "zfs-utils-common=0.7.9" "lsb-release")
provides=("zfs")
groups=("archzfs-dkms")
conflicts=('zfs-dkms-git' 'zfs-archiso-linux' 'zfs-archiso-linux-git' 'zfs-linux-hardened' 'zfs-linux-hardened-git' 'zfs-linux-lts' 'zfs-linux-lts-git' 'zfs-linux' 'zfs-linux-git' 'zfs-linux-vfio' 'zfs-linux-vfio-git' 'zfs-linux-zen' 'zfs-linux-zen-git' 'zfs-archiso-linux-headers' 'zfs-archiso-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers' 'zfs-linux-lts-headers' 'zfs-linux-lts-git-headers' 'zfs-linux-headers' 'zfs-linux-git-headers' 'zfs-linux-vfio-headers' 'zfs-linux-vfio-git-headers' 'zfs-linux-zen-headers' 'zfs-linux-zen-git-headers' )
build() {
cd "${srcdir}/zfs-0.7.9"
./autogen.sh
}
package() {
dkmsdir="${pkgdir}/usr/src/zfs-0.7.9"
install -d "${dkmsdir}"
cp -a ${srcdir}/zfs-0.7.9/. ${dkmsdir}
cd "${dkmsdir}"
find . -name ".git*" -print0 | xargs -0 rm -fr --
scripts/dkms.mkconf -v 0.7.9 -f dkms.conf -n zfs
chmod g-w,o-w -R .
}
Loading…
Cancel
Save