Gentoo Archives: gentoo-commits

From: "Stefan Schweizer (genstef)" <genstef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/fuse: ChangeLog fuse-2.7.4.ebuild
Date: Tue, 20 Jan 2009 19:19:50
Message-Id: E1LPM8W-0001Xn-Mf@stork.gentoo.org
1 genstef 09/01/20 19:19:44
2
3 Modified: ChangeLog
4 Added: fuse-2.7.4.ebuild
5 Log:
6 version bump, bug 237961
7 (Portage version: 2.2_rc9/cvs/Linux 2.6.20-vs2.2.0-gentoo i686)
8
9 Revision Changes Path
10 1.116 sys-fs/fuse/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/fuse/ChangeLog?rev=1.116&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/fuse/ChangeLog?rev=1.116&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/fuse/ChangeLog?r1=1.115&r2=1.116
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/fuse/ChangeLog,v
19 retrieving revision 1.115
20 retrieving revision 1.116
21 diff -u -r1.115 -r1.116
22 --- ChangeLog 8 Sep 2008 05:07:34 -0000 1.115
23 +++ ChangeLog 20 Jan 2009 19:19:44 -0000 1.116
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-fs/fuse
26 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/ChangeLog,v 1.115 2008/09/08 05:07:34 jer Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/ChangeLog,v 1.116 2009/01/20 19:19:44 genstef Exp $
30 +
31 +*fuse-2.7.4 (20 Jan 2009)
32 +
33 + 20 Jan 2009; Stefan Schweizer <genstef@g.o> +fuse-2.7.4.ebuild:
34 + version bump, bug 237961
35
36 08 Sep 2008; Jeroen Roovers <jer@g.o> fuse-2.7.3.ebuild:
37 Stable for HPPA (bug #229709).
38
39
40
41 1.1 sys-fs/fuse/fuse-2.7.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/fuse/fuse-2.7.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/fuse/fuse-2.7.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: fuse-2.7.4.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/fuse/fuse-2.7.4.ebuild,v 1.1 2009/01/20 19:19:44 genstef Exp $
51
52 inherit linux-mod eutils libtool
53
54 MY_P=${P/_/-}
55 DESCRIPTION="An interface for filesystems implemented in userspace."
56 HOMEPAGE="http://fuse.sourceforge.net"
57 SRC_URI="mirror://sourceforge/fuse/${MY_P}.tar.gz"
58 LICENSE="GPL-2"
59 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
60 IUSE="kernel_linux kernel_FreeBSD"
61 S=${WORKDIR}/${MY_P}
62 PDEPEND="kernel_FreeBSD? ( sys-fs/fuse4bsd )"
63
64 pkg_setup() {
65 if use kernel_linux ; then
66 if kernel_is ge 2 6 25; then
67 CONFIG_CHECK="FUSE_FS"
68 FUSE_FS_ERROR="You need to build the FUSE module from the kernel source, because your kernel is too new"
69 else
70 MODULE_NAMES="fuse(fs:${S}/kernel)"
71 CONFIG_CHECK="@FUSE_FS:fuse"
72 FUSE_FS_ERROR="We have detected FUSE already built into the kernel.
73 We will continue, but we wont build the module this time."
74
75 fi
76 linux-mod_pkg_setup
77 kernel_is 2 4 && die "kernel 2.4 is not supported by this ebuild. Get an
78 older version from viewcvs"
79
80 BUILD_PARAMS="majver=${KV_MAJOR}.${KV_MINOR} \
81 fusemoduledir=\"${ROOT}\"/lib/modules/${KV_FULL/\ }/fs"
82 BUILD_TARGETS="all"
83 ECONF_PARAMS="--with-kernel=${KV_DIR} --with-kernel-build=${KV_OUT_DIR}"
84 fi
85 }
86
87 src_unpack() {
88 unpack ${A}
89 cd "${S}"
90 epatch "${FILESDIR}"/fuse-fix-lazy-binding.patch
91 elibtoolize
92 }
93
94 src_compile() {
95 econf \
96 --disable-kernel-module \
97 --disable-example \
98 || die "econf failed for fuse userland"
99 emake || die "emake failed"
100
101 if use kernel_linux ; then
102 cd "${S}"
103 sed -i -e 's/.*depmod.*//g' kernel/Makefile.in
104 convert_to_m kernel/Makefile.in
105 linux-mod_src_compile
106 fi
107 }
108
109 src_install() {
110 emake DESTDIR="${D}" install || die "emake install failed"
111
112 dodoc AUTHORS ChangeLog Filesystems README \
113 README.NFS NEWS doc/how-fuse-works \
114 doc/kernel.txt FAQ
115 docinto example
116 dodoc example/*
117
118 if use kernel_linux ; then
119 linux-mod_src_install
120 newinitd ${FILESDIR}/fuse.init fuse
121 else
122 insinto /usr/include/fuse
123 doins include/fuse_kernel.h
124 newinitd ${FILESDIR}/fuse-fbsd.init fuse
125 fi
126
127 rm -rf "${D}/dev"
128
129 dodir /etc
130 cat > ${D}/etc/fuse.conf <<EOF
131 # Set the maximum number of FUSE mounts allowed to non-root users.
132 # The default is 1000.
133 #
134 #mount_max = 1000
135
136 # Allow non-root users to specify the 'allow_other' or 'allow_root'
137 # mount options.
138 #
139 #user_allow_other
140 EOF
141 }
142
143 pkg_postinst() {
144 use kernel_linux && linux-mod_pkg_postinst
145 }