### this file is sourced not run
PKGVER=2.9.4
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5
TARBALL=fuse-$PKGVER.tar.gz
MD5SUM=ecb712b5ffc6dffd54f4a405c9b372d8
SRC_URL=http://downloads.sourceforge.net/fuse/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libfuse: libfuse $PKGVER (Filesystem in Userspace core library)  
libfuse:  
libfuse: FUSE (Filesystem in Userspace) is a simple interface for userspace 
libfuse: programs to export a virtual filesystem to the Linux kernel. Fuse 
libfuse: also aims to provide a secure method for non privileged users to 
libfuse: create and mount their own filesystem implementations.  
libfuse: 
libfuse: 
libfuse: 
libfuse: 
libfuse:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static INIT_D_PATH=/tmp/init.d "
	pkg_build_autoconf &&
	
	# relocate from /usr/$LIBDIR to /$LIBDIR
	mv -v   /usr/$LIBDIR/libfuse.so.* /$LIBDIR &&
	ln -sfv ../../$LIBDIR/libfuse.so.$PKGVER /usr/$LIBDIR/libfuse.so &&
	rm -rf  /tmp/init.d &&

	install -v -m755 -d /usr/share/doc/fuse-$PKGVER &&
	install -v -m644    doc/{how-fuse-works,kernel.txt} \
                    /usr/share/doc/fuse-$PKGVER &&
                    
	pkg_build_slackdesc &&
	
	# default config - override in fatdog-scripts
	cat > /etc/fuse.conf << "EOF"
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#
#mount_max = 1000

# Allow non-root users to specify the 'allow_other' or 'allow_root'
# mount options.
#
#user_allow_other
EOF

}


