1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools
8 DESCRIPTION="User-mode filesystem implementation"
9 HOMEPAGE="https://sourceforge.net/projects/lufs/"
10 SRC_URI="mirror://sourceforge/lufs/${P}.tar.gz"
14 KEYWORDS="x86 ppc ~amd64"
17 RDEPEND="sys-fs/lufis"
24 epatch "${FILESDIR}"/${P}-fPIC.patch
25 epatch "${FILESDIR}"/lufs-automount-port.diff
26 epatch "${FILESDIR}"/${P}-enable-gnome-2.patch
27 epatch "${FILESDIR}"/lufs-no-kernel.patch
28 epatch "${FILESDIR}"/${P}-gcc43.patch
30 filesystems="ftpfs localfs"
31 use amd64 || filesystems+=" sshfs"
37 einfo "Compiling for ${filesystems}"
39 econf $(use_enable debug) || die
43 for i in ${filesystems} ; do
45 emake || die "emake ${i} failed"
53 for i in ${filesystems} ; do
55 emake DESTDIR="${D}" install || die "emake install ${i} failed"
61 ewarn "Lufs Kernel support and lufsd,lufsmnt have been disabled in favour"
62 ewarn "of lufis, please use lufis to mount lufs-filesystems, eg:"
64 elog "# lufis fs=ftpfs,host=ftp.kernel.org /mnt/lufis/ -s"
66 elog "# lufis fs=sshfs,host=dev.gentoo.org,username=genstef /mnt/lufis/ -s"
68 ewarn "If something does not work for you with this setup please"
69 ewarn "complain to bugs.gentoo.org"
70 einfo "Note: There is also the native sshfs implementation now"
71 use amd64 && ewarn "lufs-sshfs does not work on amd64 and is disabled there."