blob: 799318a77334e5867c03dff0065413a99b4a2f94 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lufs/lufs-0.9.7-r3.ebuild,v 1.9 2007/01/04 18:25:13 flameeyes Exp $
WANT_AUTOMAKE="latest"
WANT_AUTOCONF="latest"
inherit eutils autotools
DESCRIPTION="User-mode filesystem implementation"
HOMEPAGE="http://lufs.sourceforge.net/lufs/"
SRC_URI="mirror://sourceforge/lufs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~amd64"
IUSE="debug"
DEPEND="sys-fs/lufis
sys-devel/automake
sys-devel/autoconf"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-fPIC.patch
epatch ${FILESDIR}/lufs-automount-port.diff
epatch ${FILESDIR}/${P}-enable-gnome-2.patch
epatch ${FILESDIR}/lufs-no-kernel.patch
filesystems="ftpfs localfs sshfs"
useq amd64 && filesystems="ftpfs localfs"
eautoreconf
}
src_compile() {
einfo "Compiling for ${filesystems}"
unset ARCH
econf $(use_enable debug) || die
cd filesystems
for i in ${filesystems}
do
cd ${i}
emake || die "emake failed"
cd ..
done
}
src_install() {
cd filesystems
for i in ${filesystems}
do
cd ${i}
make DESTDIR=${D} install || die "make install failed"
cd ..
done
}
pkg_postinst() {
ewarn "Lufs Kernel support and lufsd,lufsmnt have been disabled in favour"
ewarn "of lufis, please use lufis to mount lufs-filesystems, eg:"
if useq amd64; then
echo "# lufis fs=ftpfs,host=ftp.kernel.org /mnt/lufis/ -s"
else
echo "# lufis fs=sshfs,host=dev.gentoo.org,username=genstef /mnt/lufis/ -s"
fi
ewarn "If something does not work for you with this setup please"
ewarn "complain to bugs.gentoo.org"
einfo "Note: There is also the native sshfs-fuse implementation now"
useq amd64 && ewarn "lufs-sshfs does not work on amd64 and is disabled there."
}
|