summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.60-pm-utils-1.4.0.patch')
-rw-r--r--app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.60-pm-utils-1.4.0.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.60-pm-utils-1.4.0.patch b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.60-pm-utils-1.4.0.patch
new file mode 100644
index 000000000000..d9f7e3e359cc
--- /dev/null
+++ b/app-laptop/laptop-mode-tools/files/laptop-mode-tools-1.60-pm-utils-1.4.0.patch
@@ -0,0 +1,20 @@
+Index: laptop-mode-tools_1.60/install.sh
+===================================================================
+--- laptop-mode-tools_1.60.orig/install.sh
++++ laptop-mode-tools_1.60/install.sh
+@@ -180,15 +180,6 @@ if ( ! $INSTALL -m 744 man/* "$DESTDIR/$
+ fi
+
+
+-# Install pm-utils hook only if pm-utils config dir is present, or force the
+-# install if we have a DESTDIR.
+-if [ -n "$DESTDIR" -o -d "$DESTDIR/usr/lib/pm-utils/sleep.d" ] ; then
+- if ( ! $INSTALL -D -m 755 usr/lib/pm-utils/sleep.d/01laptop-mode "$DESTDIR/usr/lib/pm-utils/sleep.d/01laptop-mode" ) ; then
+- echo "$0: Failed to install 01-laptop-mode into /usr/lib/pm-utils/sleep.d. Installation failed."
+- exit 36
+- fi
+-fi
+-
+ if [ -f "$DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode" ]; then
+ rm -f $DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode;
+ fi