aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2016-03-11 15:28:13 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-20 07:37:55 +0700
commit204b2d6242712babf2cc0bf5176c7bfbfbc99798 (patch)
treea3c1d22cf9f5ed77057efb0532fa4258659b4238 /academic
parentb8d756981f5ba24510d470f4a3f2bcac72e7b685 (diff)
academic/loggerpro: Added (data-collection and analysis software)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/loggerpro/README12
-rw-r--r--academic/loggerpro/doinst.sh14
-rw-r--r--academic/loggerpro/loggerpro.SlackBuild158
-rw-r--r--academic/loggerpro/loggerpro.info10
-rw-r--r--academic/loggerpro/slack-desc19
5 files changed, 213 insertions, 0 deletions
diff --git a/academic/loggerpro/README b/academic/loggerpro/README
new file mode 100644
index 0000000000000..8eba8d50b0a8f
--- /dev/null
+++ b/academic/loggerpro/README
@@ -0,0 +1,12 @@
+Vernier LoggerPro (data-collection and analysis software)
+
+Vernier Software & Technology is the leader in educational data
+collection technology. Since 1981, we have developed affordable,
+award-winning interfaces, sensors, software, and standards-based
+curriculum. This package installs files to allow either LoggerPro
+or LoggerLite to access devices.
+
+Sadly, this package installs two symlinks into /usr/local/share/
+and one symlink into /usr/local/bin/ - the /usr/local/ directory
+is hardcoded into the LoggerPro files somewhere, and I've not
+been able to figure out where or how to correct it...
diff --git a/academic/loggerpro/doinst.sh b/academic/loggerpro/doinst.sh
new file mode 100644
index 0000000000000..9830478e8cc75
--- /dev/null
+++ b/academic/loggerpro/doinst.sh
@@ -0,0 +1,14 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/academic/loggerpro/loggerpro.SlackBuild b/academic/loggerpro/loggerpro.SlackBuild
new file mode 100644
index 0000000000000..47b9966182afe
--- /dev/null
+++ b/academic/loggerpro/loggerpro.SlackBuild
@@ -0,0 +1,158 @@
+#!/bin/sh
+
+# Slackware build script for loggerpro
+
+# Copyright 2016 Robby Workman, Tuscaloosa, Alabama, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=loggerpro
+VERSION=${VERSION:-3.8.4.6}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SHORTARCH="32"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SHORTARCH="32"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SHORTARCH="64"
+ LIBDIRSUFFIX="64"
+else
+ SHORTARCH="32"
+ LIBDIRSUFFIX=""
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/LPL-$(printf $VERSION | tr -d .)-$SHORTARCH.tar.gz
+ar -x vstdrivers_*.deb
+tar xf data.tar.xz -C $PKG
+ar -x vstloggerpro_${VERSION}_*.deb
+tar xf data.tar.xz -C $PKG
+
+chown -R root:root $PKG
+find -L $PKG \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# /etc/udev goes to /lib/udev
+mv $PKG/etc $PKG/lib
+
+mv $PKG/usr/local/bin/* $PKG/usr/bin
+
+# Copy over icons first since their presence won't allow a clean move
+cp -a $PKG/usr/local/share/icons $PKG/usr/share
+rm -rf $PKG/usr/local/share/icons
+
+# Now move everything else
+mv $PKG/usr/local/share/* $PKG/usr/share
+
+# Move the docs over
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rmdir $PKG/usr/share/doc
+
+# Kill the /usr/local tree and remove empty /usr/sbin dir
+rm -rf $PKG/usr/local
+rmdir $PKG/usr/sbin
+
+# Fix libdir
+[ "$LIBDIRSUFFIX" = "64" ] && mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
+
+# Create library symlinks
+ln -s libGoIO.so.2.0.53 $PKG/usr/lib${LIBDIRSUFFIX}/libGoIO.so.2
+ln -s libGoIO.so.2 $PKG/usr/lib${LIBDIRSUFFIX}/libGoIO.so
+ln -s libNGIO.so.1.0.0 $PKG/usr/lib${LIBDIRSUFFIX}/libNGIO.so.1
+ln -s libNGIO.so.1 $PKG/usr/lib${LIBDIRSUFFIX}/libNGIO.so
+
+# Nope, we're not writing to /usr during runtime
+mkdir -p \
+ $PKG/var/lib/LoggerPro/VSTSupport \
+ $PKG/var/lib/LoggerPro/tmp \
+ $PKG/var/lib/LoggerLite/tmp
+rm -r \
+ $PKG/usr/share/LoggerPro/Linux/VSTSupport \
+ $PKG/usr/share/LoggerPro/Linux/tmp \
+ $PKG/usr/share/LoggerLite/Linux/tmp
+ln -s /var/lib/LoggerPro/VSTSupport $PKG/usr/share/LoggerPro/Linux/VSTSupport
+ln -s /var/lib/LoggerPro/tmp $PKG/usr/share/LoggerPro/Linux/tmp
+ln -s /var/lib/LoggerLite/tmp $PKG/usr/share/LoggerLite/Linux/tmp
+chmod 1777 \
+ $PKG/var/lib/LoggerPro/VSTSupport \
+ $PKG/var/lib/LoggerPro/tmp \
+ $PKG/var/lib/LoggerLite/tmp
+
+# The below points were mentioned to Vernier in their forum:
+# http://www.vernier.com/forums/logger-pro-linux/404-packaging-improvements/
+#
+# /usr/share/LoggerPro/Experiments/ will remain 0755; only the sysadmin
+# should be writing to this. TODO: Contact Vernier about this.
+# Thinking to myself here... Would be nice to have a three-tier system maybe,
+# e.g. /usr/share/LoggerPro/Experiments/, then check a sysadmin configured
+# location (e.g. /data/common/LoggerPro/Experiments/ is something like I
+# would have), then $HOME, e.g. $HOME/LoggerPro/Experiments/, with all
+# three (if set) being check and the contents merged, and each level
+# overrides (e.g. same-named files) the previous levels.
+# While I'm writing, for the love of sanity, PLEASE use /tmp or /var/tmp
+# or some other place, or at least make it configurable in a systemwide
+# config file at e.g. /etc/Vernier/LoggerPro.conf (this would be a good
+# place to make the other stuff above configurable too)
+# Note the move of udev files to /lib/udev instead of /etc/udev
+
+# Work around the hardcoding of /usr/local (I can't figure out where it's
+# hardcoded or thus how to fix it)
+mkdir -p $PKG/usr/local/bin $PKG/usr/local/share
+ln -s /usr/bin/loggerpro $PKG/usr/local/bin
+ln -s /usr/share/LoggerPro $PKG/usr/local/share
+ln -s /usr/share/LoggerLite $PKG/usr/local/share
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/academic/loggerpro/loggerpro.info b/academic/loggerpro/loggerpro.info
new file mode 100644
index 0000000000000..bb01d4493258b
--- /dev/null
+++ b/academic/loggerpro/loggerpro.info
@@ -0,0 +1,10 @@
+PRGNAM="loggerpro"
+VERSION="3.8.4.6"
+HOMEPAGE="http://www.vernier.com/downloads/logger-pro-linux/"
+DOWNLOAD="http://www.vernier.com/files/downloads/LPL-3846-32.tar.gz"
+MD5SUM="5b088d162258656dd2b83163fd968352"
+DOWNLOAD_x86_64="http://www.vernier.com/files/downloads/LPL-3846-64.tar.gz"
+MD5SUM_x86_64="3c58a64a2e669a532b119da995c92cb7"
+REQUIRES=""
+MAINTAINER="Robby Workman"
+EMAIL="rworkman@slackbuilds.org"
diff --git a/academic/loggerpro/slack-desc b/academic/loggerpro/slack-desc
new file mode 100644
index 0000000000000..e9107b094536b
--- /dev/null
+++ b/academic/loggerpro/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+loggerpro: Vernier LoggerPro (data-collection and analysis software)
+loggerpro:
+loggerpro: Vernier Software & Technology is the leader in educational data
+loggerpro: collection technology. Since 1981, we have developed affordable,
+loggerpro: award-winning interfaces, sensors, software, and standards-based
+loggerpro: curriculum. This package installs files to allow either LoggerPro
+loggerpro: or LoggerLite to access devices.
+loggerpro:
+loggerpro:
+loggerpro:
+loggerpro: