Semi-automated update for 0.7.6

master
Jesus Alvarez 5 years ago
parent cd832d122d
commit 0564bf3f44
  1. 8
      .SRCINFO
  2. 12
      PKGBUILD
  3. 13
      zfs-utils.install

@ -1,8 +1,6 @@
# Generated by mksrcinfo v8
# Fri Dec 22 00:52:38 UTC 2017
pkgbase = zfs-utils-common
pkgdesc = Kernel module support files for the Zettabyte File System.
pkgver = 0.7.5
pkgver = 0.7.6
pkgrel = 1
url = http://zfsonlinux.org/
install = zfs-utils.install
@ -18,11 +16,11 @@ pkgbase = zfs-utils-common
conflicts = zfs-utils-linux-lts-git
replaces = zfs-utils-linux,
replaces = zfs-utils-linux-lts
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.5/zfs-0.7.5.tar.gz
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.6/zfs-0.7.6.tar.gz
source = zfs-utils.bash-completion-r1
source = zfs-utils.initcpio.install
source = zfs-utils.initcpio.hook
sha256sums = SKIP
sha256sums = 1687f4041a990e35caccc4751aa736e8e55123b81d5f5a35b11916d9e580c23d
sha256sums = b60214f70ffffb62ffe489cbfabd2e069d14ed2a391fac0e36f914238394b540
sha256sums = e33adabbe3f2f4866802c9d63c7810c7a42b4df2288d0cdd23376519b15b36e4
sha256sums = b5f87d1d1d10443d8919125a4c139d5f4c579ca4433b2905ee826bb01defa56a

@ -7,18 +7,18 @@
#
pkgname="zfs-utils-common"
pkgver=0.7.5
pkgver=0.7.6
pkgrel=1
pkgdesc="Kernel module support files for the Zettabyte File System."
depends=("")
makedepends=("git")
arch=("x86_64")
url="http://zfsonlinux.org/"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.5/zfs-0.7.5.tar.gz"
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.6/zfs-0.7.6.tar.gz"
"zfs-utils.bash-completion-r1"
"zfs-utils.initcpio.install"
"zfs-utils.initcpio.hook")
sha256sums=("SKIP"
sha256sums=("1687f4041a990e35caccc4751aa736e8e55123b81d5f5a35b11916d9e580c23d"
"b60214f70ffffb62ffe489cbfabd2e069d14ed2a391fac0e36f914238394b540"
"e33adabbe3f2f4866802c9d63c7810c7a42b4df2288d0cdd23376519b15b36e4"
"b5f87d1d1d10443d8919125a4c139d5f4c579ca4433b2905ee826bb01defa56a")
@ -30,17 +30,17 @@ conflicts=('zfs-utils-common-git' 'zfs-utils-linux-git' 'zfs-utils-linux' 'zfs-u
replaces=("zfs-utils-linux", "zfs-utils-linux-lts")
build() {
cd "${srcdir}/zfs-0.7.5"
cd "${srcdir}/zfs-0.7.6"
./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=/lib/udev --libexecdir=/usr/lib/zfs-0.7.5 \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs-0.7.6 \
--with-config=user --enable-systemd
make
}
package() {
cd "${srcdir}/zfs-0.7.5"
cd "${srcdir}/zfs-0.7.6"
make DESTDIR="${pkgdir}" install
# Remove uneeded files
rm -r "${pkgdir}"/etc/init.d

@ -1,14 +1,11 @@
show_zfs_import_warning() {
echo ">>> WARNING: A new systemd unit file was added to archzfs!"
echo ">>> You may need enable zfs-import.target"
echo ">>> See https://github.com/archzfs/archzfs/issues/186"
}
post_upgrade() {
# If upgrading from 0.7.4-1 or older
# display zfs-import warning
if [[ $(vercmp $2 0.7.4-1) -le 0 ]]; then
show_zfs_import_warning
echo '>>> WARNING: A new systemd unit file was added to archzfs!'
echo '>>> You may need enable zfs-import.target'
echo '>>> See https://github.com/archzfs/archzfs/issues/186'
fi
}

Loading…
Cancel
Save