aboutsummaryrefslogblamecommitdiffstats
path: root/main/fuse/APKBUILD
blob: ae6679fa4b930a167b4722aac340cc805bbae524 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        

                                                                                            
                 

              
                                               


















                                                                         


                                   






























                                                                     

                                                            
                                             
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fuse
pkgver=2.8.5
pkgrel=0
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
url="http://fuse.sourceforge.net/"
arch="x86 x86_64"
license="GPL2"
depends=
makedepends="pkgconfig libiconv-dev gettext-dev
	autoconf automake libtool"
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	fuse-iconv.patch
	fuse.initd"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/fuse-iconv.patch || return 1
	aclocal -I m4 && libtoolize && autoconf && automake
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-static \
		--enable-shared \
		--disable-example \
		--enable-lib \
		--enable-util \
		--bindir=/bin \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	
	rm -rf "$pkgdir"/dev
	rm -rf "$pkgdir"/etc/init.d

	install -Dm755 "$srcdir"/fuse.initd "$pkgdir"/etc/init.d/fuse
	# create config
	install -d "$pkgdir"/etc
	cat >"$pkgdir"/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_

}

md5sums="8aa2fd689de00b73963620483084ae3b  fuse-2.8.5.tar.gz
1583e4e6f2213290ba47055c41114371  fuse-iconv.patch
5983726cfabf0830dffbbbf9a3abcddc  fuse.initd"