summaryrefslogtreecommitdiff
path: root/system/usb_modeswitch/usb_modeswitch.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/usb_modeswitch/usb_modeswitch.SlackBuild')
-rwxr-xr-x[-rw-r--r--]system/usb_modeswitch/usb_modeswitch.SlackBuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/system/usb_modeswitch/usb_modeswitch.SlackBuild b/system/usb_modeswitch/usb_modeswitch.SlackBuild
index 6de04c51ff..926dcb56ca 100644..100755
--- a/system/usb_modeswitch/usb_modeswitch.SlackBuild
+++ b/system/usb_modeswitch/usb_modeswitch.SlackBuild
@@ -4,9 +4,9 @@
# Written by David Somero <dsomero@hotmail.com>
# Derived from Slackware's Slackbuilds.
-#
+
# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, Minnesota, USA
-# Copyright 2010 David Somero (dsomero@hotmail.com) Athens, TN, USA
+# Copyright 2010 David Somero, Athens, TN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,11 +27,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=usb_modeswitch
-VERSION=${VERSION:-1.0.7}
+VERSION=${VERSION:-1.1.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Upstream is playing guess the program name.
+SRCPRGNAM=$(echo $PRGNAM | tr _ -)
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -53,9 +56,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $SRCPRGNAM-$VERSION
+tar xvf $CWD/$SRCPRGNAM-$VERSION.tar.bz2
+cd $SRCPRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -68,9 +71,8 @@ make clean
gcc $SLKCFLAGS $LDFLAGS -lusb -Wall -o usb_modeswitch usb_modeswitch.c
install -D -s -m0755 usb_modeswitch $PKG/usr/sbin/usb_modeswitch
-install -D -m0755 usb_modeswitch.tcl $PKG/usr/sbin/usb_modeswitch.tcl
-install -D -m0755 usb_modeswitch.sh $PKG/usr/sbin/usb_modeswitch.sh
-install -D -m0644 80-usb_modeswitch.rules $PKG/lib/udev/rules.d/80-usb_modeswitch.rules
+install -D -m0755 usb_modeswitch.sh $PKG/lib/udev/usb_modeswitch
+install -D -m0644 40-usb_modeswitch.rules $PKG/lib/udev/rules.d/40-usb_modeswitch.rules
install -D -m0644 usb_modeswitch.conf $PKG/etc/usb_modeswitch.conf.new
mv usb_modeswitch.d $PKG/etc