]> git.pld-linux.org Git - packages/lxcfs.git/commitdiff
pld patch
authorElan Ruusamäe <glen@delfi.ee>
Thu, 25 Aug 2016 21:17:17 +0000 (00:17 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 25 Aug 2016 21:20:13 +0000 (00:20 +0300)
https://github.com/lxc/lxcfs/pull/133

lxcfs.spec
pld.patch [new file with mode: 0644]

index 3f8ad8b0802d5159a755b3a56a8947a75bb47537..097952233affed79d615935c5585a17a423d5bb2 100644 (file)
@@ -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 (file)
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=
This page took 0.097885 seconds and 4 git commands to generate.