Menu

#47 rpm spec file misses the sysconfig/cgconfig file

open
nobody
None
5
2010-03-02
2010-03-02
Chris
No

The /etc/sysconfig/cgconfig file is never installed with the current RPM spec file. This fixes it for me:

diff --git a/dist/libcgroup.spec.in b/dist/libcgroup.spec.in
index 27ab880..7cab82f 100644
--- a/dist/libcgroup.spec.in
+++ b/dist/libcgroup.spec.in
@@ -55,6 +55,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
# install config files
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
cp samples/cgred.conf $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgred.conf
+cp samples/cgconfig.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/cgconfig
cp samples/cgconfig.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgconfig.conf
cp samples/cgrules.conf $RPM_BUILD_ROOT/%{_sysconfdir}/cgrules.conf

@@ -90,6 +91,7 @@ fi
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/sysconfig/cgred.conf
+%config(noreplace) %{_sysconfdir}/sysconfig/cgconfig
%config(noreplace) %{_sysconfdir}/cgconfig.conf
%config(noreplace) %{_sysconfdir}/cgrules.conf
/%{_lib}/libcgroup.so.*

Discussion

  • Dhaval Giani

    Dhaval Giani - 2010-03-08

    Hi Chris,

    Would you mind opsting this patch to the mailing list at libcg-devel@lists.sourceforge.net ? Please note, it is a subscribers only list, so you will need to subscribe to the list before posting there.

    Thanks
    Dhaval

     
  • Chris

    Chris - 2010-03-09

    Sent it to the list.

     

Log in to post a comment.