|
|
|
# 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-utils-git"
|
|
|
|
pkgver=0.6.3_r0_g07dabd2_3.15.3_1
|
|
|
|
pkgrel=2
|
|
|
|
license=('CDDL')
|
|
|
|
pkgdesc="Kernel module support files for the Zettabyte File System."
|
|
|
|
depends=("spl-git")
|
|
|
|
makedepends=("git")
|
|
|
|
arch=("i686" "x86_64")
|
|
|
|
url="http://zfsonlinux.org/"
|
|
|
|
source=("git+https://github.com/zfsonlinux/zfs.git#commit=07dabd23"
|
|
|
|
"zfs-utils.bash-completion-r1"
|
|
|
|
"zfs-utils.initcpio.install"
|
|
|
|
"zfs-utils.initcpio.hook")
|
|
|
|
groups=("archzfs-git")
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'9ddb0c8a94861f929d0fa741fdc49950'
|
|
|
|
'a812c07d44548d35c8d63f84e96fb6eb'
|
|
|
|
'cdae71622688bc0325023e561a4fca37')
|
|
|
|
replaces=("zfs-utils")
|
|
|
|
provides=("zfs-utils")
|
|
|
|
conflicts=("zfs-utils" "zfs-utils-lts")
|
|
|
|
|
|
|
|
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=user
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/zfs"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Remove uneeded files
|
|
|
|
rm -r "${pkgdir}"/etc/init.d
|
|
|
|
rm -r "${pkgdir}"/usr/lib/dracut
|
|
|
|
|
|
|
|
# move module tree /lib -> /usr/lib
|
|
|
|
cp -r "${pkgdir}"/{lib,usr}
|
|
|
|
rm -r "${pkgdir}"/lib
|
|
|
|
|
|
|
|
# Fixup path
|
|
|
|
mv "${pkgdir}"/sbin/mount.zfs "${pkgdir}"/usr/bin/
|
|
|
|
rm -r "${pkgdir}"/sbin
|
|
|
|
|
|
|
|
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.bash-completion-r1 "${pkgdir}"/usr/share/bash-completion/completions/zfs
|
|
|
|
}
|