Browse Source

pm-utils:
- add patch14 from ubuntu
Disable SATA link power management by default, as it still
causes disk errors and corruptions on many hardware.
- add /etc/pm/config.d/suspend_modules
- add SUSPEND_MODULES="xhci-hcd" to unload module on suspend.



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3404 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 13 years ago
parent
commit
d2343bc569
1 changed files with 21 additions and 3 deletions
  1. 21 3
      p/pm-utils/pm-utils-vl.spec

+ 21 - 3
p/pm-utils/pm-utils-vl.spec

@@ -5,7 +5,7 @@ Summary(ja): 電源管理ユーティリティおよびスクリプト
 Name: pm-utils
 License: GPLv2
 Version: 1.4.1
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 Group: System Environment/Base
 URL: http://pm-utils.freedesktop.org
 
@@ -17,9 +17,13 @@ Source23: pm-utils-bugreport-info.sh
 Source100: 00tuxonice
 Source101: tuxonice.sysconfig
 
+Source110: suspend_modules
+
 # Use append instead of write for init_logfile (#660329)
 Patch0: pm-utils-1.4.1-init-logfile-append.patch
-
+# Disable SATA link power management by default, as it still causes
+# disk errors and corruptions on many hardware.
+Patch14: 14-disable-sata-alpm.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: xmlto
@@ -55,6 +59,7 @@ when building programs that use %{name}.
 %setup -q 
 tar -xzf %{SOURCE1}
 %patch0 -p1
+%patch14 -p1
 
 %build
 %configure
@@ -74,6 +79,8 @@ install -D -m 0755 %{SOURCE23} $RPM_BUILD_ROOT%{_sbindir}/pm-utils-bugreport-inf
 # Install tuxonice staff
 install -D -m 0755 %{SOURCE100} %{buildroot}%{_libdir}/pm-utils/sleep.d/00tuxonice
 install -D -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/sysconfig/tuxonice
+# Install suspend_modules
+install -D -m 0644 %{SOURCE110} %{buildroot}%{_sysconfdir}/pm/config.d/suspend_modules
 
 # Install quirks
 cp -r video-quirks $RPM_BUILD_ROOT%{_libdir}/pm-utils
@@ -98,7 +105,11 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog NEWS README* TODO pm/HOWTO*
 %config(noreplace) %{_sysconfdir}/sysconfig/tuxonice
-%{_sysconfdir}/pm/
+%dir %{_sysconfdir}/pm/
+%dir %{_sysconfdir}/pm/config.d
+%dir %{_sysconfdir}/pm/power.d
+%dir %{_sysconfdir}/pm/sleep.d
+%config(noreplace) %{_sysconfdir}/pm/config.d/suspend_modules
 %dir %{_libdir}/pm-utils/
 %{_libdir}/pm-utils/bin/
 %{_libdir}/pm-utils/defaults
@@ -130,6 +141,13 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Mon Apr 11 2011 Daiuske SUZUKI <daisuke@linux.or.jp> 1.4.1-2
+- add patch14 from ubuntu
+  Disable SATA link power management by default, as it still 
+  causes disk errors and corruptions on many hardware.
+- add /etc/pm/config.d/suspend_modules
+  - add SUSPEND_MODULES="xhci-hcd" to unload module on suspend.
+
 * Wed Mar 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1-1
 - new upstream release