Skip to content

Instantly share code, notes, and snippets.

@adlerweb
Created August 3, 2023 09:57
Show Gist options
  • Save adlerweb/4568ba004f1de33ded3ea6b249009b00 to your computer and use it in GitHub Desktop.
Save adlerweb/4568ba004f1de33ded3ea6b249009b00 to your computer and use it in GitHub Desktop.
zfs-utils-rc-2.2.0_rc3-1
pkgbase = zfs-utils-rc
pkgdesc = Kernel module support files for the Zettabyte File System.
pkgver = 2.2.0_rc3
pkgrel = 1
url = http://zfsonlinux.org/
install = zfs-utils.install
arch = x86_64
groups = archzfs-linux-rc
license = CDDL
makedepends = python
makedepends = python-setuptools
makedepends = python-cffi
optdepends = python: pyzfs and extra utilities,
optdepends = python-cffi: pyzfs
provides = zfs-utils
provides = spl-utils
conflicts = zfs-utils
conflicts = spl-utils
backup = etc/zfs/zed.d/zed.rc
backup = etc/default/zfs
backup = etc/modules-load.d/zfs.conf
backup = etc/sudoers.d/zfs
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-2.2.0-rc3/zfs-2.2.0-rc3.tar.gz
source = zfs-utils.initcpio.install
source = zfs-utils.initcpio.hook
source = zfs-utils.initcpio.zfsencryptssh.install
sha256sums = 276c911ab4aa24b5c261e1e1822f74ed824a424cacf3f39b14da1aa08ce1906c
sha256sums = 29a8a6d76fff01b71ef1990526785405d9c9410bdea417b08b56107210d00b10
sha256sums = ad3e7244aca20fce005860c5118d46a77a0b4f5644d73e9648ea3ba5ff87c4c3
sha256sums = 93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51
pkgname = zfs-utils-rc
From 28fb7652a66fbe3d0aba4cbd9bd2db1ee4c94eb7 Mon Sep 17 00:00:00 2001
From: adelrweb <git@adlerweb.info>
Date: Thu, 3 Aug 2023 11:51:25 +0200
Subject: [PATCH] 2.2.0-rc3
---
.SRCINFO | 6 +++---
PKGBUILD | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index bb2007a..acb1d79 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zfs-utils-rc
pkgdesc = Kernel module support files for the Zettabyte File System.
- pkgver = 2.1.0_rc8
+ pkgver = 2.2.0_rc3
pkgrel = 1
url = http://zfsonlinux.org/
install = zfs-utils.install
@@ -20,11 +20,11 @@ pkgbase = zfs-utils-rc
backup = etc/default/zfs
backup = etc/modules-load.d/zfs.conf
backup = etc/sudoers.d/zfs
- source = https://github.com/zfsonlinux/zfs/releases/download/zfs-2.1.0-rc8/zfs-2.1.0-rc8.tar.gz
+ source = https://github.com/zfsonlinux/zfs/releases/download/zfs-2.2.0-rc3/zfs-2.2.0-rc3.tar.gz
source = zfs-utils.initcpio.install
source = zfs-utils.initcpio.hook
source = zfs-utils.initcpio.zfsencryptssh.install
- sha256sums = 8627702ac841d38d5211001c76937e4097719c268b110e8836c0da195618fad2
+ sha256sums = 276c911ab4aa24b5c261e1e1822f74ed824a424cacf3f39b14da1aa08ce1906c
sha256sums = 29a8a6d76fff01b71ef1990526785405d9c9410bdea417b08b56107210d00b10
sha256sums = ad3e7244aca20fce005860c5118d46a77a0b4f5644d73e9648ea3ba5ff87c4c3
sha256sums = 93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51
diff --git a/PKGBUILD b/PKGBUILD
index 88fa886..26e3ba1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
#
pkgname="zfs-utils-rc"
-pkgver=2.1.0_rc8
+pkgver=2.2.0_rc3
pkgrel=1
pkgdesc="Kernel module support files for the Zettabyte File System."
makedepends=("python" "python-setuptools" "python-cffi")
@@ -18,7 +18,7 @@ source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver/_/-}/z
"zfs-utils.initcpio.install"
"zfs-utils.initcpio.hook"
"zfs-utils.initcpio.zfsencryptssh.install")
-sha256sums=("8627702ac841d38d5211001c76937e4097719c268b110e8836c0da195618fad2"
+sha256sums=('276c911ab4aa24b5c261e1e1822f74ed824a424cacf3f39b14da1aa08ce1906c'
"29a8a6d76fff01b71ef1990526785405d9c9410bdea417b08b56107210d00b10"
"ad3e7244aca20fce005860c5118d46a77a0b4f5644d73e9648ea3ba5ff87c4c3"
"93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51")
@@ -30,7 +30,7 @@ conflicts=("zfs-utils" "spl-utils")
backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf' 'etc/sudoers.d/zfs')
build() {
- cd "${srcdir}/zfs-${pkgver/_rc*/}"
+ cd "${srcdir}/zfs-${pkgver/_/-}"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
@@ -40,7 +40,7 @@ build() {
}
package() {
- cd "${srcdir}/zfs-${pkgver/_rc*/}"
+ cd "${srcdir}/zfs-${pkgver/_/-}"
make DESTDIR="${pkgdir}" install
# Remove uneeded files
rm -r "${pkgdir}"/etc/init.d
--
2.41.0
# Maintainer: Jan Houben <jan@nexttrex.de>
# Contributor: 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-utils-rc"
pkgver=2.2.0_rc3
pkgrel=1
pkgdesc="Kernel module support files for the Zettabyte File System."
makedepends=("python" "python-setuptools" "python-cffi")
optdepends=("python: pyzfs and extra utilities", "python-cffi: pyzfs")
arch=("x86_64")
url="http://zfsonlinux.org/"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver/_/-}/zfs-${pkgver/_/-}.tar.gz"
"zfs-utils.initcpio.install"
"zfs-utils.initcpio.hook"
"zfs-utils.initcpio.zfsencryptssh.install")
sha256sums=('276c911ab4aa24b5c261e1e1822f74ed824a424cacf3f39b14da1aa08ce1906c'
"29a8a6d76fff01b71ef1990526785405d9c9410bdea417b08b56107210d00b10"
"ad3e7244aca20fce005860c5118d46a77a0b4f5644d73e9648ea3ba5ff87c4c3"
"93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51")
license=("CDDL")
groups=("archzfs-linux-rc")
provides=("zfs-utils" "spl-utils")
install=zfs-utils.install
conflicts=("zfs-utils" "spl-utils")
backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf' 'etc/sudoers.d/zfs')
build() {
cd "${srcdir}/zfs-${pkgver/_/-}"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/usr/lib/udev --libexecdir=/usr/lib \
--with-config=user --enable-systemd --enable-pyzfs
make
}
package() {
cd "${srcdir}/zfs-${pkgver/_/-}"
make DESTDIR="${pkgdir}" install
# Remove uneeded files
rm -r "${pkgdir}"/etc/init.d
rm -r "${pkgdir}"/usr/share/initramfs-tools
rm -r "${pkgdir}"/usr/lib/modules-load.d
# Autoload the zfs module at boot
mkdir -p "${pkgdir}/etc/modules-load.d"
printf "%s\n" "zfs" > "${pkgdir}/etc/modules-load.d/zfs.conf"
# fix permissions
chmod 750 ${pkgdir}/etc/sudoers.d
chmod 440 ${pkgdir}/etc/sudoers.d/zfs
# Install the support files
install -D -m644 "${srcdir}"/zfs-utils.initcpio.hook "${pkgdir}"/usr/lib/initcpio/hooks/zfs
install -D -m644 "${srcdir}"/zfs-utils.initcpio.install "${pkgdir}"/usr/lib/initcpio/install/zfs
install -D -m644 "${srcdir}"/zfs-utils.initcpio.zfsencryptssh.install "${pkgdir}"/usr/lib/initcpio/install/zfsencryptssh
install -D -m644 contrib/bash_completion.d/zfs "${pkgdir}"/usr/share/bash-completion/completions/zfs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment