You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.7 KiB
78 lines
1.7 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
5 years ago
|
inherit autotools
|
||
13 years ago
|
|
||
|
DESCRIPTION="User-mode filesystem implementation"
|
||
8 years ago
|
HOMEPAGE="https://sourceforge.net/projects/lufs/"
|
||
13 years ago
|
SRC_URI="mirror://sourceforge/lufs/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ppc x86"
|
||
13 years ago
|
IUSE="debug"
|
||
|
|
||
|
RDEPEND="sys-fs/lufis"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
5 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-fPIC.patch
|
||
|
"${FILESDIR}"/${PN}-automount-port.diff
|
||
|
"${FILESDIR}"/${P}-enable-gnome-2.patch
|
||
|
"${FILESDIR}"/${PN}-no-kernel.patch
|
||
|
"${FILESDIR}"/${P}-gcc43.patch
|
||
|
)
|
||
13 years ago
|
|
||
5 years ago
|
pkg_setup() {
|
||
13 years ago
|
filesystems="ftpfs localfs"
|
||
|
use amd64 || filesystems+=" sshfs"
|
||
5 years ago
|
}
|
||
13 years ago
|
|
||
5 years ago
|
src_prepare() {
|
||
|
default
|
||
13 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
5 years ago
|
src_configure() {
|
||
|
unset ARCH
|
||
|
econf $(use_enable debug)
|
||
|
}
|
||
|
|
||
13 years ago
|
src_compile() {
|
||
|
einfo "Compiling for ${filesystems}"
|
||
|
|
||
5 years ago
|
cd filesystems || die
|
||
13 years ago
|
local i
|
||
|
for i in ${filesystems} ; do
|
||
5 years ago
|
pushd ${i} &>/dev/null || die
|
||
|
emake
|
||
|
popd &>/dev/null || die
|
||
13 years ago
|
done
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
5 years ago
|
cd filesystems || die
|
||
13 years ago
|
local i
|
||
|
for i in ${filesystems} ; do
|
||
5 years ago
|
pushd ${i} &>/dev/null || die
|
||
|
emake DESTDIR="${D}" install
|
||
|
popd &>/dev/null || die
|
||
13 years ago
|
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 use amd64; then
|
||
|
elog "# lufis fs=ftpfs,host=ftp.kernel.org /mnt/lufis/ -s"
|
||
|
else
|
||
|
elog "# 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"
|
||
8 years ago
|
einfo "Note: There is also the native sshfs implementation now"
|
||
13 years ago
|
use amd64 && ewarn "lufs-sshfs does not work on amd64 and is disabled there."
|
||
|
}
|