summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/laptop-mode-tools/files/1.62/0004-add-LIB_D-so-it-can-give-the-possibility-to-install-.patch')
-rw-r--r--app-laptop/laptop-mode-tools/files/1.62/0004-add-LIB_D-so-it-can-give-the-possibility-to-install-.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/app-laptop/laptop-mode-tools/files/1.62/0004-add-LIB_D-so-it-can-give-the-possibility-to-install-.patch b/app-laptop/laptop-mode-tools/files/1.62/0004-add-LIB_D-so-it-can-give-the-possibility-to-install-.patch
deleted file mode 100644
index 32fb22cf481b..000000000000
--- a/app-laptop/laptop-mode-tools/files/1.62/0004-add-LIB_D-so-it-can-give-the-possibility-to-install-.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-From 58ae05221b12192e48fb4801b6b93c88797985ea Mon Sep 17 00:00:00 2001
-From: Ritesh Raj Sarraf <rrs@debian.org>
-Date: Sun, 10 Mar 2013 13:43:19 +0530
-Subject: [PATCH 04/20] add $LIB_D so it can give the possibility to install
- udev/system files in different location
-
-Thanks: Robert Milasan
----
- etc/rules/99-laptop-mode.rules | 6 +++---
- install.sh | 15 +++++++++------
- 2 files changed, 12 insertions(+), 9 deletions(-)
-
-diff --git a/etc/rules/99-laptop-mode.rules b/etc/rules/99-laptop-mode.rules
-index c0b4761..96d5d68 100644
---- a/etc/rules/99-laptop-mode.rules
-+++ b/etc/rules/99-laptop-mode.rules
-@@ -1,3 +1,3 @@
--ACTION=="change", SUBSYSTEM=="power_supply", RUN+="/lib/udev/lmt-udev auto"
--ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="/lib/udev/lmt-udev auto"
--ACTION=="add", SUBSYSTEM=="usb", RUN+="/lib/udev/lmt-udev force modules=usb-autosuspend devices=%k"
-+ACTION=="change", SUBSYSTEM=="power_supply", RUN+="@LIB_D@/udev/lmt-udev auto"
-+ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="@LIB_D@/udev/lmt-udev auto"
-+ACTION=="add", SUBSYSTEM=="usb", RUN+="@LIB_D@/udev/lmt-udev force modules=usb-autosuspend devices=%k"
-diff --git a/install.sh b/install.sh
-index 536a63a..cde2a0a 100755
---- a/install.sh
-+++ b/install.sh
-@@ -28,6 +28,7 @@
- #
-
- [ -z "$MAN_D" ] && MAN_D="/usr/man"
-+[ -z "$LIB_D" ] && LIB_D="/lib"
-
- if [ -z "$ACPI" ] ; then
- ACPI=auto
-@@ -114,8 +115,8 @@ $INSTALL -d -m 755 "$DESTDIR/usr/lib/tmpfiles.d"
- $INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
- $INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
- $INSTALL -d -m 755 "$DESTDIR/usr/sbin"
--$INSTALL -d -m 755 "$DESTDIR/lib/udev"
--$INSTALL -d -m 755 "$DESTDIR/lib/systemd/system"
-+$INSTALL -d -m 755 "$DESTDIR/$LIB_D/udev"
-+$INSTALL -d -m 755 "$DESTDIR/$LIB_D/systemd/system"
- $INSTALL -d -m 755 "$DESTDIR/$MAN_D/man8"
-
- ALREADY_EXISTED=0
-@@ -200,16 +201,18 @@ fi
- if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then
- echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed."
- exit 23
-+else
-+ sed -i -e "s|@LIB_D@|$LIB_D|g" $DESTDIR/etc/udev/rules.d/99-laptop-mode.rules >/dev/null 2>&1
- fi
-
- # udev helper tool
--if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/lib/udev/lmt-udev" ) ; then
-- echo "$0: Failed to install udev helper tool into /lib/udev/ Installation failed."
-+if ( ! $INSTALL -D -m 755 etc/rules/lmt-udev "$DESTDIR/$LIB_D/udev/lmt-udev" ) ; then
-+ echo "$0: Failed to install udev helper tool into $LIB_D/udev Installation failed."
- fi
-
- # systemd service
--if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/lib/systemd/system/laptop-mode.service" ) ; then
-- echo "$0: Failed to install systemd service into /lib/systemd/system/ Installation failed."
-+if ( ! $INSTALL -D -m 644 etc/systemd/laptop-mode.service "$DESTDIR/$LIB_D/systemd/system/laptop-mode.service" ) ; then
-+ echo "$0: Failed to install systemd service into $LIB_D/systemd/system/ Installation failed."
- fi
-
- # and systemd's tmpfiles.d
---
-1.8.1.5
-