]> TLD Linux GIT Repositories - packages/libvirt.git/commitdiff
- ehh, fix sysctl.d path
authorMarcin Krol <hawk@tld-linux.org>
Fri, 10 Jul 2015 17:21:38 +0000 (17:21 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 10 Jul 2015 17:21:38 +0000 (17:21 +0000)
libvirt-sysctl-dir.patch [new file with mode: 0644]
libvirt.spec

diff --git a/libvirt-sysctl-dir.patch b/libvirt-sysctl-dir.patch
new file mode 100644 (file)
index 0000000..7ce574d
--- /dev/null
@@ -0,0 +1,19 @@
+diff -ur libvirt-1.2.17.orig/daemon/Makefile.am libvirt-1.2.17/daemon/Makefile.am
+--- libvirt-1.2.17.orig/daemon/Makefile.am     2015-06-25 14:00:33.000000000 +0000
++++ libvirt-1.2.17/daemon/Makefile.am  2015-07-10 16:28:56.157230844 +0000
+@@ -396,13 +396,11 @@
+ # Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on
+ # /usr/lib/sysctl.d/ even when libdir is /usr/lib64
+ install-sysctl:
+-      $(MKDIR_P) $(DESTDIR)$(prefix)/lib/sysctl.d
+       $(INSTALL_DATA) $(srcdir)/libvirtd.sysctl \
+-        $(DESTDIR)$(prefix)/lib/sysctl.d/60-libvirtd.conf
++        $(DESTDIR)$(sysconfdir)/sysctl.d/60-libvirtd.conf
+ uninstall-sysctl:
+-      rm -f $(DESTDIR)$(prefix)/lib/sysctl.d/60-libvirtd.conf
+-      rmdir $(DESTDIR)$(prefix)/lib/sysctl.d || :
++      rm -f $(DESTDIR)$(sysconfdir)/sysctl.d/60-libvirtd.conf
+ else ! WITH_SYSCTL
+ install-sysctl:
+ uninstall-sysctl:
index 6766c368d509c44bd774bb52776f682912ee76d8..564b28d9a7608e87dba9a843caf64d2bca76ad9d 100644 (file)
@@ -41,7 +41,7 @@ Summary:      Toolkit to interact with virtualization capabilities
 Summary(pl.UTF-8):     Narzędzia współpracujące z funkcjami wirtualizacji
 Name:          libvirt
 Version:       1.2.17
-Release:       2
+Release:       3
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
@@ -56,6 +56,7 @@ Patch5:               %{name}-udevadm-settle.patch
 Patch6:                vserver.patch
 Patch7:                bashisms.patch
 Patch8:                %{name}-guests.init.patch
+Patch9:                %{name}-sysctl-dir.patch
 URL:           http://www.libvirt.org/
 BuildRequires: audit-libs-devel
 BuildRequires: augeas-devel
@@ -420,6 +421,7 @@ Sondy systemtap/dtrace dla libvirt.
 %{?with_vserver:%patch6 -p1}
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %build
 %{__libtoolize}
@@ -517,7 +519,7 @@ Sondy systemtap/dtrace dla libvirt.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,sysctl.d,rc.d/init.d}
 
 %{__make} install \
        DEVHELP_DIR=%{_gtkdocdir}/%{name}/devhelp \