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