- Change the cgconfig script to start earlier
- Move the binaries to /bin and /sbin
This commit is contained in:
parent
aa629fefaa
commit
6501285b8b
30
03-fedora-adjust-initscript-priority.patch
Normal file
30
03-fedora-adjust-initscript-priority.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
libcgroup: Start the config earlier
|
||||||
|
|
||||||
|
From: Jan Safranek <jsafrane@redhat.com>
|
||||||
|
|
||||||
|
For Fedora, we want to start the cgconfig as soon as possible,
|
||||||
|
i.e. when /usr might not be mounted. We don't need syslog, time nor
|
||||||
|
$local_fs (see bug #309001).
|
||||||
|
|
||||||
|
diff -up libcgroup-0.33/scripts/init.d/cgconfig.orig libcgroup-0.33/scripts/init.d/cgconfig
|
||||||
|
--- libcgroup-0.33/scripts/init.d/cgconfig.orig 2009-03-08 20:46:12.000000000 +0100
|
||||||
|
+++ libcgroup-0.33/scripts/init.d/cgconfig 2009-03-08 20:45:01.000000000 +0100
|
||||||
|
@@ -14,15 +14,15 @@
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
# cgconfig Control Groups Configuration Startup
|
||||||
|
-# chkconfig: - 13 87
|
||||||
|
+# chkconfig: - 5 95
|
||||||
|
# description: This script runs the cgconfigparser utility to parse and setup
|
||||||
|
# the control group filesystem. It uses /etc/cgconfig.conf
|
||||||
|
# and parses the configuration specified in there.
|
||||||
|
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: cgconfig
|
||||||
|
-# Required-Start: $local_fs $syslog $time
|
||||||
|
-# Required-Stop: $local_fs $syslog
|
||||||
|
+# Required-Start:
|
||||||
|
+# Required-Stop:
|
||||||
|
# Should-Start:
|
||||||
|
# Should-Stop:
|
||||||
|
# Short-Description: start and stop the WLM configuration
|
@ -2,12 +2,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.33
|
Version: 0.33
|
||||||
Release: 1%{?dist}
|
Release: 2%{?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: http://downloads.sourceforge.net/libcg/01-fedora-fix-build.patch
|
Patch0: http://downloads.sourceforge.net/libcg/01-fedora-fix-build.patch
|
||||||
Patch1: http://downloads.sourceforge.net/libcg/02-fedora-fix-initscripts.patch
|
Patch1: http://downloads.sourceforge.net/libcg/02-fedora-fix-initscripts.patch
|
||||||
|
Patch2: http://downloads.sourceforge.net/libcg/03-fedora-adjust-initscript-priority.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: byacc
|
BuildRequires: byacc
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -36,9 +37,11 @@ provide scripts to manage that configuration.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure --bindir=/bin --sbindir=/sbin --libdir=/%{_lib}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
@ -52,9 +55,6 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
|
|||||||
cp samples/cgred.conf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgred.conf
|
cp samples/cgred.conf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgred.conf
|
||||||
cp samples/cgconfig.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgconfig.conf
|
cp samples/cgconfig.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgconfig.conf
|
||||||
cp samples/cgrules.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgrules.conf
|
cp samples/cgrules.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgrules.conf
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_lib}/security/
|
|
||||||
mv $RPM_BUILD_ROOT/%{_libdir}/security/pam_cgroup.so \
|
|
||||||
$RPM_BUILD_ROOT/%{_lib}/security/
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -81,12 +81,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) %{_sysconfdir}/sysconfig/cgred.conf
|
%config(noreplace) %{_sysconfdir}/sysconfig/cgred.conf
|
||||||
%config(noreplace) %{_sysconfdir}/cgconfig.conf
|
%config(noreplace) %{_sysconfdir}/cgconfig.conf
|
||||||
%config(noreplace) %{_sysconfdir}/cgrules.conf
|
%config(noreplace) %{_sysconfdir}/cgrules.conf
|
||||||
%{_libdir}/libcgroup-%{version}.so
|
/%{_lib}/libcgroup-%{version}.so
|
||||||
%{_libdir}/libcgroup.so.*
|
/%{_lib}/libcgroup.so.*
|
||||||
%{_bindir}/cgexec
|
/bin/cgexec
|
||||||
%{_bindir}/cgclassify
|
/bin/cgclassify
|
||||||
%{_sbindir}/cgconfigparser
|
/sbin/cgconfigparser
|
||||||
%{_bindir}/cgrulesengd
|
/bin/cgrulesengd
|
||||||
%attr(0644, root, root) %{_mandir}/man1/*
|
%attr(0644, root, root) %{_mandir}/man1/*
|
||||||
%attr(0644, root, root) %{_mandir}/man5/*
|
%attr(0644, root, root) %{_mandir}/man5/*
|
||||||
%attr(0644, root, root) %{_mandir}/man8/*
|
%attr(0644, root, root) %{_mandir}/man8/*
|
||||||
@ -99,11 +99,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/libcgroup.h
|
%{_includedir}/libcgroup.h
|
||||||
%{_libdir}/libcgroup.so
|
/%{_lib}/libcgroup.so
|
||||||
%doc COPYING INSTALL
|
%doc COPYING INSTALL
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 09 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.33-2
|
||||||
|
- Change the cgconfig script to start earlier
|
||||||
|
- Move the binaries to /bin and /sbin
|
||||||
* Mon Mar 02 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.33-1
|
* Mon Mar 02 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.33-1
|
||||||
- Update to latest upstream
|
- Update to latest upstream
|
||||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.32.2-4
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.32.2-4
|
||||||
|
Loading…
Reference in New Issue
Block a user