[packages/lxc] Added PLD init.
matkor
matkor at pld-linux.org
Thu Jul 31 14:48:56 CEST 2014
commit 4d6732e1a21bc9177a9b4567666df39cd7a30f46
Author: Mateusz Korniak <matkor at pld-linux.org>
Date: Thu Jul 31 14:26:14 2014 +0200
Added PLD init.
lxc.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/lxc.spec b/lxc.spec
index 045bd10..cd3ef99 100644
--- a/lxc.spec
+++ b/lxc.spec
@@ -19,6 +19,7 @@ Group: Applications/System
Source0: https://www.linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
# Source0-md5: 9d9af9e9e69a831cd50b58d91c786013
Source1: %{name}-pld.in.sh
+Source2: %{name}.init
Patch1: %{name}-pld.patch
URL: https://www.linuxcontainers.org/
BuildRequires: autoconf >= 2.50
@@ -151,7 +152,10 @@ cp -p %{SOURCE1} templates/lxc-pld.in
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{configpath},%{configpath}snap,/var/{cache,log}/lxc}
+install -d $RPM_BUILD_ROOT{%{configpath},%{configpath}snap,/var/{cache,log}/lxc} \
+ -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+
+
%{__make} install \
SYSTEMD_UNIT_DIR=%{systemdunitdir} \
pcdatadir=%{_pkgconfigdir} \
@@ -168,6 +172,8 @@ install -d $RPM_BUILD_ROOT{%{configpath},%{configpath}snap,/var/{cache,log}/lxc}
# yum plugin, no idea where to package this
%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/lxc-patch.py
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lxc
+
%if %{with python}
%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}/lxc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/4d6732e1a21bc9177a9b4567666df39cd7a30f46
More information about the pld-cvs-commit
mailing list