--- /dev/null
+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:
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
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
%{?with_vserver:%patch6 -p1}
%patch7 -p1
%patch8 -p1
+%patch9 -p1
%build
%{__libtoolize}
%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 \