1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools systemd
8 DESCRIPTION="FUSE filesystem for LXC"
9 HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/ https://github.com/lxc/lxcfs/"
10 SRC_URI="https://github.com/lxc/lxcfs/archive/${P}.tar.gz"
16 # Omit all dbus. Upstream appears to require it because systemd, but
17 # lxcfs makes no direct use of dbus.
18 # acct-group/lxd needed for the fowners below.
19 RDEPEND="dev-libs/glib:2
22 BDEPEND="sys-apps/help2man"
26 S="${WORKDIR}/${PN}-${P}"
34 # Without the localstatedir the filesystem isn't mounted correctly
35 econf --localstatedir=/var
40 tests/main.sh || die "Tests failed"
46 # Getting weird file collisions,
47 # keepdir /var/lib/lxcfs
48 # fowners -R root:lxd /var/lib/lxcfs
50 newconfd "${FILESDIR}"/lxcfs-4.0.0.confd lxcfs
51 newinitd "${FILESDIR}"/lxcfs-4.0.0.initd lxcfs
52 systemd_dounit config/init/systemd/lxcfs.service