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

Contents of /sys-fs/fuse/fuse-2.9.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Jul 21 08:56:44 2013 UTC (13 months, 3 weeks ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2013 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.1-r1.ebuild,v 1.12 2013/02/17 20:27:32 zmedico Exp $
4
5 EAPI=4
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 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
16 IUSE="kernel_linux kernel_FreeBSD static-libs"
17
18 PDEPEND="kernel_FreeBSD? ( sys-fs/fuse4bsd )"
19 RDEPEND=""
20 DEPEND="virtual/pkgconfig"
21
22 S=${WORKDIR}/${MY_P}
23
24 pkg_setup() {
25 if use kernel_linux ; then
26 if kernel_is lt 2 6 9 ; then
27 die "Your kernel is too old."
28 fi
29 CONFIG_CHECK="~FUSE_FS"
30 FUSE_FS_WARNING="You need to have FUSE module built to use user-mode utils"
31 linux-info_pkg_setup
32 fi
33 }
34
35 src_prepare() {
36 elibtoolize
37 }
38
39 src_configure() {
40 econf \
41 INIT_D_PATH="${EPREFIX}/etc/init.d" \
42 MOUNT_FUSE_PATH="${EPREFIX}/sbin" \
43 UDEV_RULES_PATH="${EPREFIX}/$(udev_get_udevdir)/rules.d" \
44 $(use_enable static-libs static) \
45 --disable-example
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install
50
51 dodoc AUTHORS ChangeLog Filesystems README \
52 README.NFS NEWS doc/how-fuse-works \
53 doc/kernel.txt FAQ
54 docinto example
55 dodoc example/*
56
57 if use kernel_linux ; then
58 newinitd "${FILESDIR}"/fuse.init fuse
59 elif use kernel_FreeBSD ; then
60 insinto /usr/include/fuse
61 doins include/fuse_kernel.h
62 newinitd "${FILESDIR}"/fuse-fbsd.init fuse
63 else
64 die "We don't know what init code install for your kernel, please file a bug."
65 fi
66
67 prune_libtool_files
68 rm -rf "${D}/dev"
69
70 dodir /etc
71 cat > "${ED}"/etc/fuse.conf <<-EOF
72 # Set the maximum number of FUSE mounts allowed to non-root users.
73 # The default is 1000.
74 #
75 #mount_max = 1000
76
77 # Allow non-root users to specify the 'allow_other' or 'allow_root'
78 # mount options.
79 #
80 #user_allow_other
81 EOF
82 }

  ViewVC Help
Powered by ViewVC 1.1.20