1 # Contributor: Dmitrij Yu. Naumov
2 # Contributor: Stefano Zamprogno <mie-dot-iscrizioni-at-gmail-dot-com>
3 # Contributor: Thanks to Blind (nick from aur) for zfs-fuse rc.d daemon
8 pkgdesc="A port of the ZFS filesytem to the FUSE framework."
10 url="http://zfs-fuse.net/"
12 depends=('glibc' 'fuse' 'zlib' 'libaio')
13 makedepends=('git' 'scons')
14 options=('zipman' '!strip')
17 backup=('etc/zfs/zfsrc' 'etc/zfs/zfs_pool_alert' 'etc/conf.d/zfs-fuse')
18 source=('zfs-fuse.rcd'
20 'Update-type-qualifier-for-glibc-2.14.patch'
23 md5sums=('1efc3d817f200a86f89b33232c326e15'
24 'c1282d490e1fb5af2fe8210efdcceae1'
25 '3f5ca657d1a5c63a520c7168b1508e32'
28 _gitroot="http://git.zfs-fuse.net"
34 msg "Connecting to GIT server...."
36 if [ -d $_gitname ] ; then
37 cd $_gitname && git pull origin
38 msg "The local files are updated."
40 git clone "$_gitroot/$_gitname" $_gitname
43 msg "GIT checkout done or server timeout"
45 rm -rf ${srcdir}/${_gitname}-build
46 cp -a ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
48 msg "Apply patch(es)..."
50 cd ${srcdir}/${_gitname}-build
54 patch -p0 < ${startdir}/Update-type-qualifier-for-glibc-2.14.patch
56 msg "Starting make..."
58 cd ${srcdir}/${_gitname}-build/src
62 install_dir=${pkgdir}/usr/sbin \
63 man_dir=${pkgdir}/usr/share/man/man8 \
66 # delete misplaced zfs_pool_alert file
67 rm -f ${pkgdir}/etc/zfs_pool_alert
69 install -D -m755 ${startdir}/zfs-fuse.rcd ${pkgdir}/etc/rc.d/zfs-fuse
70 install -D -m644 ${startdir}/zfs-fuse.confd ${pkgdir}/etc/conf.d/zfs-fuse
71 install -D -m644 ${srcdir}/${_gitname}-build/contrib/zfsrc ${pkgdir}/etc/zfs/zfsrc
72 install -D -m644 ${srcdir}/${_gitname}-build/contrib/zfs_pool_alert ${pkgdir}/etc/zfs/zfs_pool_alert
73 install -D -m644 ${srcdir}/${_gitname}-build/contrib/zfs_completion.bash \
74 ${pkgdir}/etc/bash_completion.d/zfs_completion