1 # Maintainer: Zubkov Alexander <green@msu.ru>
2 pkgname=zfs-behlendorf-git
5 pkgdesc="Native ZFS for Linux (behlendorf)"
7 url="https://github.com/behlendorf"
11 backup=('etc/zfs/zdev.conf')
15 _modules=('spl' 'zfs')
16 _gitroot="https://github.com/behlendorf"
22 for _gitname in ${_modules[*]}
25 msg "Connecting to GIT server ($_gitname)...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot/$_gitname.git" $_gitname
33 msg "GIT checkout done or server timeout"
37 for _gitname in ${_modules[*]}
40 msg "Starting make ($_gitname)..."
42 rm -rf "$srcdir/$_gitname-build"
43 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
49 _conf_opt="--with-spl=$srcdir/spl-build/"
56 --libexecdir=/usr/lib \
64 for _gitname in ${_modules[*]}
67 msg "Installing ($_gitname)..."
68 cd "$srcdir/$_gitname-build"
69 make DESTDIR="$pkgdir/" install