[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.5-98-g2c92eb1

Raphael Geissert geissert at debian.org
Sun Sep 25 06:54:36 UTC 2011


The following commit has been merged in the master branch:
commit 732613eab997cdc3b2ea706638487b8fb1d8c9e8
Author: Raphael Geissert <geissert at debian.org>
Date:   Sun Sep 25 01:09:11 2011 -0500

    Transition to /run (Closes: #633050)

diff --git a/acpilib/sound.sh b/acpilib/sound.sh
index 8d64816..cee32f2 100644
--- a/acpilib/sound.sh
+++ b/acpilib/sound.sh
@@ -4,7 +4,7 @@
 
 PKG=eeepc-acpi-scripts
 DEFAULT=/etc/default/$PKG
-SOUND_FILE=/lib/init/rw/$PKG.sound
+SOUND_FILE=/run/$PKG.sound
 AMIXER=/usr/bin/amixer
 
 [ -e "$SOUND_FILE" ] && . "$SOUND_FILE"
diff --git a/debian/changelog b/debian/changelog
index dc1f96d..9a8d7f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,9 @@ eeepc-acpi-scripts (1.1.12) UNRELEASED; urgency=low
   * assume 3.x kernel is 2.6.36 (Closes: #640830)
   * remove myself from Uploaders
 
+  [ Raphael Geissert ]
+  * Transition to /run (Closes: #633050)
+
  -- Ben Armstrong <synrg at sanctuary.nslug.ns.ca>  Sun, 14 Nov 2010 10:15:07 -0400
 
 eeepc-acpi-scripts (1.1.11) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 8678d82..206a4f1 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,8 @@ DM-Upload-Allowed: yes
 
 Package: eeepc-acpi-scripts
 Architecture: all
-Depends: acpid (>= 1:2.0.0-1), acpi-support-base, acpi-support, pm-utils, rfkill (>= 0.3-3),
+Depends: acpid (>= 1:2.0.0-1), acpi-support-base, acpi-support,
+ initscripts (>= 2.88dsf-13.3), pm-utils, rfkill (>= 0.3-3),
  ${misc:Depends}
 Suggests: alsa-utils, libnotify-bin
 Description: Scripts to support suspend and hotkeys on the Asus Eee PC laptop
diff --git a/debian/postinst b/debian/postinst
index 94882e3..b26f22d 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -10,6 +10,14 @@ case "$1" in
             invoke-rc.d acpid restart>/dev/null
             ;;
         esac
+
+	# transition to /run
+	if dpkg --compare-versions "$2" le-nl 1.1.11; then
+	    if [ -f /lib/init/rw/eeepc-acpi-scripts.sound ] && [ -d /run/ ]; then
+		mv /lib/init/rw/eeepc-acpi-scripts.sound /run
+	    fi
+	fi
+
         # move eeepc-amixer-blacklist that could have been left behind
         # if the user had changed it.
         if ( dpkg --compare-versions "$2" le "1.1.10" &&

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list