summaryrefslogtreecommitdiff
path: root/network/NetworkManager/NetworkManager.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2011-01-10 12:42:24 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 12:42:24 -0600
commit68c0f83fbbf1e39803c1f76321b50b99a2b124ba (patch)
tree1321304aac09b1cb587810dc147deabe664b75bc /network/NetworkManager/NetworkManager.SlackBuild
parent01255abf61d126c8af424c1430ae57979200ba1c (diff)
downloadslackbuilds-68c0f83fbbf1e39803c1f76321b50b99a2b124ba.tar.gz
network/NetworkManager: Add the pm-utils sleep hook
The sleep hook for pm-utils is currently shipped with Slackware's pm-utils package, but that will change in the future. It won't affect us during 13.1 at all, but this won't hurt either. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/NetworkManager/NetworkManager.SlackBuild')
-rw-r--r--network/NetworkManager/NetworkManager.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/network/NetworkManager/NetworkManager.SlackBuild b/network/NetworkManager/NetworkManager.SlackBuild
index 01660386f0..c858e24ea8 100644
--- a/network/NetworkManager/NetworkManager.SlackBuild
+++ b/network/NetworkManager/NetworkManager.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=NetworkManager
VERSION=${VERSION:-0.8.2}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -120,6 +120,14 @@ mkdir -p $PKG/usr/share/dbus-1/system-services
cat $CWD/fi.epitest.hostap.WPASupplicant.service > \
$PKG/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
+# pm-utils upstream ships this file, but it shouldn't really, and it's going
+# to be removed from the Slackware package, so we'll include it here just to
+# be sure. Once upower is part of Slackware, this file can be removed, since
+# NM listens to upower events to know when to sleep/wake
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d
+cp $CWD/55NetworkManager $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/
+chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/55NetworkManager
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS CONTRIBUTING COPYING ChangeLog INSTALL NEWS README TODO \