mirror of https://github.com/archzfs/archzfs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.6 KiB
80 lines
2.6 KiB
# Maintainer: Jesus Alvarez <jeezusjr at gmail dot com>
|
|
# Contributor: Kyle Fuller <inbox at kylefuller dot co dot uk>
|
|
# See http://github.com/demizer/archzfs for build scripts.
|
|
|
|
pkgname="zfs-utils-git"
|
|
pkgver=
|
|
pkgrel=2
|
|
|
|
# Used incase the i686 and x86_64 linux packages get out of sync with the
|
|
# PKGREL. This occurred on January 31, 2014 where i686 was versioned at
|
|
# 3.12.9-1 and x86_64 was versioned at 3.12.9-2.
|
|
_kernel_version_x32_clean="3.14.0_4"
|
|
_kernel_version_x64_clean="3.14.0_4"
|
|
|
|
[[ $CARCH == "i686" ]] && _kernel_version_clean=${_kernel_version_x32_clean} | \
|
|
_kernel_version_clean=${_kernel_version_x64_clean}
|
|
|
|
pkgdesc="Kernel module support files for the Zettabyte File System."
|
|
depends=("spl")
|
|
arch=("i686" "x86_64")
|
|
url="http://zfsonlinux.org/"
|
|
source=(git+https://github.com/zfsonlinux/zfs.git
|
|
zfs-utils.bash-completion
|
|
zfs-utils.initcpio.install
|
|
zfs-utils.initcpio.hook
|
|
zfs-utils.service)
|
|
groups=("archzfs")
|
|
md5sums=('SKIP'
|
|
'3e1c4a29c4f7d590e6a3041f2c61d6ff'
|
|
'ebea2b1e593a9a19efa0f7ae7451bbc7'
|
|
'b567a95a34759f196bf4be8061a895e5'
|
|
'1f16ea8592509edb8efa4d7da25f8182'
|
|
'b7632a5a80d474272d1de046b6da5f81')
|
|
license=("CDDL")
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/zfs"
|
|
|
|
# cutting off 'spl-' prefix that presents in the git tag
|
|
echo $(git describe --long | \
|
|
sed -r 's/^zfs-//;s/([^-]*-g)/r\1/;s/-/./g')_${_kernel_version_clean}
|
|
}
|
|
|
|
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.service "${pkgdir}"/usr/lib/systemd/system/zfs.service
|
|
# install -D -m644 "${srcdir}"/zfs-utils.bash-completion "${pkgdir}"/usr/share/bash-completion/completions/zfs
|
|
}
|
|
|