1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit systemd vcs-snapshot
7 DESCRIPTION="FUSE filesystem for LXC"
8 HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/"
12 if [[ ${PV} == "9999" ]] ; then
13 EGIT_REPO_URI="https://github.com/lxc/lxcfs.git"
19 SRC_URI="https://github.com/lxc/lxcfs/archive/${P}.tar.gz"
23 # Omit all dbus. Upstream appears to require it because systemd, but
24 # lxcfs makes no direct use of dbus.
33 PATCHES="${FILESDIR}/${PN}-fusermount-path.patch"
37 ./bootstrap.sh || die "Failed to bootstrap configure files"
41 # Without the localstatedir the filesystem isn't mounted correctly
42 econf --localstatedir=/var
45 # Test suite fails for me
48 # tests/main.sh || die "Tests failed"
53 keepdir /var/lib/lxcfs
54 newinitd "${FILESDIR}"/${PN}.initd lxcfs
55 systemd_dounit config/init/systemd/lxcfs.service
59 # In an upgrade situation merging /var/lib/lxcfs (an empty dir)
60 # fails because that is a live mountpoint when the service is
61 # running. It's unnecessary anyway so skip the action.
62 [[ -d ${ROOT}/var/lib/lxcfs ]] && rm -rf ${D}/var
67 einfo "Starting with version 3.0.0 the cgfs PAM module has moved, and"
68 einfo "will eventually be available in app-emulation/lxc. See:"
69 einfo "https://brauner.github.io/2018/02/28/lxc-includes-cgroup-pam-module.html"
70 einfo "for more information."