[packages/lxcfs] pld patch
glen
glen at pld-linux.org
Thu Aug 25 23:20:26 CEST 2016
commit 8a157569f2f99ee4dce6e1a1eed148bf492db142
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Aug 26 00:17:17 2016 +0300
pld patch
https://github.com/lxc/lxcfs/pull/133
lxcfs.spec | 10 ++++++----
pld.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 4 deletions(-)
---
diff --git a/lxcfs.spec b/lxcfs.spec
index 3f8ad8b..0979522 100644
--- a/lxcfs.spec
+++ b/lxcfs.spec
@@ -8,10 +8,12 @@ Source0: https://linuxcontainers.org/downloads/lxcfs/%{name}-%{version}.tar.gz
# Source0-md5: fea9124c9d6d7370e12c4a3f0d405541
URL: https://linuxcontainers.org/lxcfs/
Patch0: 0001-skip-empty-entries-under-proc-self-cgroup.patch
+Patch1: pld.patch
BuildRequires: help2man
BuildRequires: libfuse-devel
BuildRequires: pam-devel
BuildRequires: pkg-config
+BuildRequires: pld-release
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _libexecdir %{_prefix}/lib
@@ -48,12 +50,13 @@ listed on the command line.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure \
- --with-distro=suse \
+ --with-distro=pld
-%{__make} %{?_smp_mflags}
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
@@ -62,8 +65,6 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{systemdunitdir},%{_libexecdir},%{_includedir}/%{name},%{_localstatedir}/lib/%{name}}
-cp -p config/init/systemd/*.service $RPM_BUILD_ROOT%{systemdunitdir}
-
# The shared library liblxcfs.so used by lxcfs is not supposed to be used by
# any other program. So we follow best practice and install it in
# %{_prefix}/lib/lxcfs. Note that lxcfs *expects* liblxcfs.so to be found in
@@ -95,6 +96,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/lxcfs
%{_mandir}/man1/lxcfs.1*
%{systemdunitdir}/lxcfs.service
+%attr(754,root,root) /etc/rc.d/init.d/lxcfs
%dir %{_datadir}/%{name}
%attr(755,root,root) %{_datadir}/%{name}/lxc.mount.hook
%attr(755,root,root) %{_datadir}/%{name}/lxc.reboot.hook
diff --git a/pld.patch b/pld.patch
new file mode 100644
index 0000000..21f3da3
--- /dev/null
+++ b/pld.patch
@@ -0,0 +1,31 @@
+upstreamed: https://github.com/lxc/lxcfs/pull/133
+
+--- lxcfs-2.0.2/configure.ac~ 2016-06-28 21:27:44.000000000 +0300
++++ lxcfs-2.0.2/configure.ac 2016-08-26 00:14:40.468048818 +0300
+@@ -66,6 +66,7 @@
+ AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
+ AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
+ AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
++ AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
+ fi
+ with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
+
+@@ -76,7 +77,7 @@
+ ubuntu)
+ distroconf=default.conf.ubuntu
+ ;;
+- redhat|centos|fedora|oracle|oracleserver)
++ redhat|centos|fedora|oracle|oracleserver|pld)
+ distroconf=default.conf.libvirt
+ ;;
+ *)
+@@ -108,6 +109,9 @@
+ ubuntu)
+ init_script=upstart,systemd,sysvinit
+ ;;
++ pld)
++ init_script=systemd,sysvinit
++ ;;
+ slackware)
+ echo -n "Warning: bsd init job not yet implemented"
+ init_script=
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lxcfs.git/commitdiff/8a157569f2f99ee4dce6e1a1eed148bf492db142
More information about the pld-cvs-commit
mailing list