Change the default configuration to mount everything to /cgroup - libvirtd
needs the controllers mounted somewhere.
This commit is contained in:
parent
ffdf6eaa30
commit
76058a6327
@ -4,12 +4,13 @@ Name: libcgroup
|
|||||||
Summary: Tools and libraries to control and monitor control groups
|
Summary: Tools and libraries to control and monitor control groups
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Version: 0.34
|
Version: 0.34
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://libcg.sourceforge.net/
|
URL: http://libcg.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2
|
||||||
Patch0: fedora-fix-initscripts.patch
|
Patch0: fedora-fix-initscripts.patch
|
||||||
Patch1: fedora-workaround-for-sysdefault.patch
|
Patch1: fedora-workaround-for-sysdefault.patch
|
||||||
|
Patch2: fedora-config.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: byacc
|
BuildRequires: byacc
|
||||||
@ -36,6 +37,7 @@ provide scripts to manage that configuration.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .fedora
|
%patch0 -p1 -b .fedora
|
||||||
%patch1 -p1 -b .sysdefault
|
%patch1 -p1 -b .sysdefault
|
||||||
|
%patch2 -p1 -b .config
|
||||||
%build
|
%build
|
||||||
%configure --bindir=/bin --sbindir=/sbin --libdir=/%{_lib}
|
%configure --bindir=/bin --sbindir=/sbin --libdir=/%{_lib}
|
||||||
|
|
||||||
@ -68,6 +70,9 @@ mv -f $RPM_BUILD_ROOT/%{_lib}/libcgroup.la $RPM_BUILD_ROOT/%{_libdir}
|
|||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/libcgroup.so
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcgroup.so
|
||||||
ln -sf ../../%{_lib}/libcgroup.so.%{soversion} $RPM_BUILD_ROOT/%{_libdir}/libcgroup.so
|
ln -sf ../../%{_lib}/libcgroup.so.%{soversion} $RPM_BUILD_ROOT/%{_libdir}/libcgroup.so
|
||||||
|
|
||||||
|
# pre-create /cgroup directory
|
||||||
|
mkdir $RPM_BUILD_ROOT/cgroup
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -105,8 +110,8 @@ fi
|
|||||||
%attr(0755,root,root) %{_initrddir}/cgconfig
|
%attr(0755,root,root) %{_initrddir}/cgconfig
|
||||||
%attr(0755,root,root) %{_initrddir}/cgred
|
%attr(0755,root,root) %{_initrddir}/cgred
|
||||||
%attr(0755,root,root) /%{_lib}/security/pam_cgroup.so
|
%attr(0755,root,root) /%{_lib}/security/pam_cgroup.so
|
||||||
|
|
||||||
%doc COPYING INSTALL README_daemon
|
%doc COPYING INSTALL README_daemon
|
||||||
|
%attr(0755,root,root) %dir /cgroup
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -116,6 +121,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 19 2009 Jan Safranek <jsafrane@redhat.com> 0.34-3
|
||||||
|
- Change the default configuration to mount everything to /cgroup
|
||||||
|
|
||||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-2
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user