Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
laptop-mode-tools
laptop-mode-1.62-customize-installation-of-udev...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File laptop-mode-1.62-customize-installation-of-udev-systemd-files.patch of Package laptop-mode-tools
diff -Nrau laptop-mode-tools_1.62.orig/etc/rules/99-laptop-mode.rules laptop-mode-tools_1.62/etc/rules/99-laptop-mode.rules --- laptop-mode-tools_1.62.orig/etc/rules/99-laptop-mode.rules 2013-03-08 18:34:50.899952695 +0100 +++ laptop-mode-tools_1.62/etc/rules/99-laptop-mode.rules 2013-03-08 18:55:53.115938509 +0100 @@ -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 -Nrau laptop-mode-tools_1.62.orig/install.sh laptop-mode-tools_1.62/install.sh --- laptop-mode-tools_1.62.orig/install.sh 2013-03-08 18:34:50.855952696 +0100 +++ laptop-mode-tools_1.62/install.sh 2013-03-08 18:53:57.795939805 +0100 @@ -28,6 +28,7 @@ # [ -z "$MAN_D" ] && MAN_D="/usr/man" +[ -z "$LIB_D" ] && LIB_D="/lib" if [ -z "$ACPI" ] ; then ACPI=auto @@ -115,8 +116,8 @@ $INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d/board-specific" $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 @@ -201,16 +202,18 @@ 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor