1 # Contributor: Jonathan Liu <net147@gmail.com>
5 _realpkgver=${pkgver/_/-}
7 pkgdesc="Filesystem in Userspace with CUSE support"
9 url="http://userweb.kernel.org/~tj/ossp/"
12 makedepends=('pkgconfig')
13 provides=("fuse=${pkgver}")
15 backup=("etc/fuse.conf" "etc/udev/rules.d/99-fuse.rules")
16 install="fuse.install"
17 source=("http://userweb.kernel.org/~tj/ossp/fuse-${_realpkgver}-cuse.tar.gz"
20 md5sums=('aad8b490dd836dde91a55ce52e845ac1'
21 'c9457cf5b2196da67d5ac816d1c86a4f')
24 cd ${srcdir}/fuse-${pkgver/_/-}
25 ./configure --prefix=/usr --disable-kernel-module --enable-lib \
26 --enable-util --bindir=/bin
28 make DESTDIR=${pkgdir} install || return 1
30 # static device nodes will cause collision.
33 # Remove init script in wrong path
34 # Don't add our own for now, as fusectl fs oopses on 2.6.18
35 rm -rf ${pkgdir}/etc/init.d
36 #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
38 install -d ${pkgdir}/lib
39 mv ${pkgdir}/usr/lib/libfuse.so.${_basever} ${pkgdir}/lib/ || return 1
40 ln -s ../../lib/libfuse.so.${_basever} ${pkgdir}/usr/lib/libfuse.so.${_basever} || return 1
41 ln -s libfuse.so.${_basever} ${pkgdir}/lib/libfuse.so.2 || return 1
42 mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/ || return 1
43 ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 || return 1
44 ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1 || return 1
46 # install sample config file
47 install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
50 # vim:set ts=2 sw=2 et: