aboutsummaryrefslogtreecommitdiffstats
path: root/main/fuse/APKBUILD
blob: 95e58f46152d2ff39e1374cd4924ef9356a4b133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fuse
pkgver=2.9.3
pkgrel=3
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
url="http://fuse.sourceforge.net/"
arch="all"
license="GPL2"
depends=
makedepends="gettext-dev"
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	fix-includes.patch
	fix-realpath.patch
	fuse.initd"
options="suid"


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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--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 -r "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/dev \
		"$pkgdir"/etc/init.d || return 1

	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="33cae22ca50311446400daf8a6255c6a  fuse-2.9.3.tar.gz
c08ad52ccd6ff8cc7c8ebf73c5d588ea  fix-includes.patch
790b837275346e77d5f88a4778062ab7  fix-realpath.patch
45fb51535c96a7d1fe2eb9690ac48814  fuse.initd"
sha256sums="0beb83eaf2c5e50730fc553406ef124d77bc02c64854631bdfc86bfd6437391c  fuse-2.9.3.tar.gz
72cf0964e5713f363d9dc0f9881512cdbdd05a5866ac95f1ea9df6305a189459  fix-includes.patch
9031e6df6e0b3e46c7e0117bba6e2eeb879de8d742dc54f592a16033d4dda89b  fix-realpath.patch
66ce65e2459fef26bb1711d706a23643a9af7a80e03ee6be836a377310b00682  fuse.initd"
sha512sums="03f43f88694ec7e039ff3579a8e76349b5a5a05872c55901fc1d9ee53dbb6b1e69f6dd0005b620f3b5ead0b14da8eeb31d46b922d10f88f4e3f830aa47e8162c  fuse-2.9.3.tar.gz
147edb099e9dc5dad806882393b9a59feac0d22105764c87f7674b5f8b5242517034ca20ce36c931c5dd6ab18864f5aa267d1e1cd0adb81518f479de3c392d80  fix-includes.patch
5672ceb35acabb4bd97b6efc30614f22def62882fe198e2a8598a074d45b6b5337c082a5e09b5e399b6e5212dc1fbde9071c2a5051534c32091444c350b9c657  fix-realpath.patch
7f6a503ef23cfa8b809c544375c2d83ad56525269b48ad1a7dff0ce36f4bf2f2a3fafed9dc70a71ff6281b261db5f01829e16c06f041921a5d8c8d715a04a8c1  fuse.initd"