aboutsummaryrefslogtreecommitdiff
path: root/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
diff options
context:
space:
mode:
authorJohn Tyree <johntyree+sbo@gmail.com>2011-09-05 13:51:23 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-09-05 13:51:23 -0500
commit00776d8b63081697ad98de06d7d2281955b76f7a (patch)
tree0a0d22d547595d0d960d0bfc6b5beaca3189ee16 /system/laptop-mode-tools/laptop-mode-tools.SlackBuild
parent05bc19a05fa55e1f76965ee1257d920cc1b4a85b (diff)
system/laptop-mode-tools: Updated for version 1.59.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/laptop-mode-tools/laptop-mode-tools.SlackBuild')
-rw-r--r--system/laptop-mode-tools/laptop-mode-tools.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
index a4396f35ba89a..e0d60affd2f4d 100644
--- a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
+++ b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Slackware build script for laptop-mode-tools
+
# Copyright 2010 V'yacheslav Stetskevych <slava18@gmail.com>
# All rights reserved.
#
@@ -21,8 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Maintained by John Tyree <johntyree+sbo@gmail.com>
+
PRGNAM=laptop-mode-tools
-VERSION=${VERSION:-1.55}
+VERSION=${VERSION:-1.59}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,7 +59,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
-cd ${PRGNAM}_$VERSION
+cd ${PRGNAM}-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -64,21 +67,21 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man ./install.sh
-install -d $PKG/var/run/laptop-mode-tools
+DESTDIR=$PKG INIT_D=$PKG/etc/rc.d MAN_D=/usr/man ./install.sh
[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib64
find $PKG/usr/man -type f -exec gzip -9 {} \;
+# No need to create /var/run/laptop-mode-tools in the package, as the
+# init script creates the directory; in many recent distros, /var/run
+# is on a tmpfs, so nothing should ever assume that a subdir exists already
mv $PKG/etc/rc.d/laptop-mode $PKG/etc/rc.d/rc.laptop-mode.new
find $PKG/etc/laptop-mode -name '*.conf' -exec mv {} {}.new \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README COPYING \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install