From ea667b55824c6d1e301581c2a340f2d481123f25 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Thu, 5 Apr 2018 00:23:18 +0200 Subject: [PATCH] New package. --- .gitignore | 1 + lxcfs.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 lxcfs.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ebcadb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lxcfs-*.tar.gz diff --git a/lxcfs.spec b/lxcfs.spec new file mode 100644 index 0000000..f809958 --- /dev/null +++ b/lxcfs.spec @@ -0,0 +1,90 @@ +Name: lxcfs +Version: 3.0.0 +Release: 1%{?dist} +Summary: FUSE based filesystem for LXC +License: ASL 2.0 +URL: https://linuxcontainers.org/lxcfs +Source0: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: gawk +BuildRequires: make +BuildRequires: fuse-devel +BuildRequires: help2man +BuildRequires: systemd +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +# for /usr/share/lxc/config/common.conf.d: +Requires: lxc-templates + + +%description +LXCFS is a simple userspace filesystem designed to work around some +current limitations of the Linux kernel. + +Specifically, it's providing two main things + +- A set of files which can be bind-mounted over their /proc originals + to provide CGroup-aware values. + +- A cgroupfs-like tree which is container aware. + +The code is pretty simple, written in C using libfuse. + +The main driver for this work was the need to run systemd based +containers as a regular unprivileged user while still allowing systemd +inside the container to interact with cgroups. + +Now with the introduction of the cgroup namespace in the Linux kernel, +that part is no longer necessary on recent kernels and focus is now on +making containers feel more like a real independent system through the +proc masking feature. + + +%prep +%autosetup + + +%build +%configure +make %{?_smp_mflags} + + +%install +%make_install SYSTEMD_UNIT_DIR=%{_unitdir} +mkdir -p %{buildroot}%{_sharedstatedir}/%{name} + + +%post +%systemd_post %{name}.service + + +%preun +%systemd_preun %{name}.service + + +%postun +%systemd_postun %{name}.service + + +%files +%doc AUTHORS +# empty: +#doc ChangeLog NEWS README +%license COPYING +%{_bindir}/lxcfs +%dir %{_libdir}/%{name} +%{_libdir}/%{name}/lib%{name}.so +%exclude %{_libdir}/%{name}/lib%{name}.la +%dir %{_datadir}/%{name} +%{_datadir}/%{name}/lxc.mount.hook +%{_datadir}/%{name}/lxc.reboot.hook +%{_mandir}/man1/%{name}.1* +%{_unitdir}/%{name}.service +%{_datadir}/lxc/config/common.conf.d/00-lxcfs.conf +%dir %{_sharedstatedir}/%{name} + + +%changelog +* Wed Apr 4 2018 Thomas Moschny - 3.0.0-1 +- New package. diff --git a/sources b/sources new file mode 100644 index 0000000..c5c816b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lxcfs-3.0.0.tar.gz) = e71b2d38e3893b2768721f65522680d007ae66171de42f56eddedd887bb7616c0243160cbefb1e410393ec4359b83cb738ca9ff57714006bb0c385ad478f09cf