/[gentoo-x86]/sys-fs/fuse/fuse-2.9.4.ebuild
Gentoo

Contents of /sys-fs/fuse/fuse-2.9.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jul 23 09:33:16 2015 UTC (4 years, 5 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for sparc, wrt bug #550152

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/fuse-2.9.4.ebuild,v 1.9 2015/07/19 18:18:12 zlogene Exp $
4
5 EAPI=5
6 inherit eutils libtool linux-info udev toolchain-funcs
7
8 MY_P=${P/_/-}
9 DESCRIPTION="An interface for filesystems implemented in userspace"
10 HOMEPAGE="http://fuse.sourceforge.net"
11 SRC_URI="mirror://sourceforge/fuse/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
16 IUSE="examples kernel_linux kernel_FreeBSD static-libs"
17
18 PDEPEND="kernel_FreeBSD? ( sys-fs/fuse4bsd )"
19 DEPEND="virtual/pkgconfig"
20
21 S=${WORKDIR}/${MY_P}
22
23 pkg_setup() {
24 if use kernel_linux ; then
25 if kernel_is lt 2 6 9 ; then
26 die "Your kernel is too old."
27 fi
28 CONFIG_CHECK="~FUSE_FS"
29 FUSE_FS_WARNING="You need to have FUSE module built to use user-mode utils"
30 linux-info_pkg_setup
31 fi
32 }
33
34 src_prepare() {
35 epatch "${FILESDIR}"/${PN}-2.9.3-kernel-types.patch
36 # sandbox violation with mtab writability wrt #438250
37 # don't sed configure.in without eautoreconf because of maintainer mode
38 sed -i 's:umount --fake:true --fake:' configure || die
39 elibtoolize
40 }
41
42 src_configure() {
43 econf \
44 INIT_D_PATH="${EPREFIX}/etc/init.d" \
45 MOUNT_FUSE_PATH="${EPREFIX}/sbin" \
46 UDEV_RULES_PATH="${EPREFIX}/$(get_udevdir)/rules.d" \
47 $(use_enable static-libs static) \
48 --disable-example
49 }
50
51 src_install() {
52 default
53
54 dodoc AUTHORS ChangeLog Filesystems README \
55 README.NFS NEWS doc/how-fuse-works \
56 doc/kernel.txt FAQ
57
58 if use examples ; then
59 docinto examples
60 dodoc example/*
61 fi
62
63 if use kernel_linux ; then
64 newinitd "${FILESDIR}"/fuse.init fuse
65 elif use kernel_FreeBSD ; then
66 insinto /usr/include/fuse
67 doins include/fuse_kernel.h
68 newinitd "${FILESDIR}"/fuse-fbsd.init fuse
69 else
70 die "We don't know what init code install for your kernel, please file a bug."
71 fi
72
73 prune_libtool_files
74 rm -rf "${D}"/dev
75
76 dodir /etc
77 cat > "${ED}"/etc/fuse.conf <<-EOF
78 # Set the maximum number of FUSE mounts allowed to non-root users.
79 # The default is 1000.
80 #
81 #mount_max = 1000
82
83 # Allow non-root users to specify the 'allow_other' or 'allow_root'
84 # mount options.
85 #
86 #user_allow_other
87 EOF
88 }

  ViewVC Help
Powered by ViewVC 1.1.20