summaryrefslogtreecommitdiff
path: root/system/gsmartcontrol
diff options
context:
space:
mode:
Diffstat (limited to 'system/gsmartcontrol')
-rw-r--r--system/gsmartcontrol/README8
-rw-r--r--system/gsmartcontrol/doinst.sh3
-rw-r--r--system/gsmartcontrol/gsmartcontrol.SlackBuild53
-rw-r--r--system/gsmartcontrol/gsmartcontrol.info8
-rw-r--r--system/gsmartcontrol/slack-desc19
5 files changed, 91 insertions, 0 deletions
diff --git a/system/gsmartcontrol/README b/system/gsmartcontrol/README
new file mode 100644
index 0000000000..1013d5aba3
--- /dev/null
+++ b/system/gsmartcontrol/README
@@ -0,0 +1,8 @@
+GSmartControl is a graphical user interface for smartctl (from
+Smartmontools package), which is a tool for querying and
+controlling SMART (Self-Monitoring, Analysis, and Reporting
+Technology) data on modern hard disk drives. It allows you to
+inspect the drive's SMART data to determine its health, as well
+as run various tests on it.
+
+Requires gtkmm, available at SlackBuilds.org
diff --git a/system/gsmartcontrol/doinst.sh b/system/gsmartcontrol/doinst.sh
new file mode 100644
index 0000000000..3857649f50
--- /dev/null
+++ b/system/gsmartcontrol/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
+fi
diff --git a/system/gsmartcontrol/gsmartcontrol.SlackBuild b/system/gsmartcontrol/gsmartcontrol.SlackBuild
new file mode 100644
index 0000000000..952bdfae98
--- /dev/null
+++ b/system/gsmartcontrol/gsmartcontrol.SlackBuild
@@ -0,0 +1,53 @@
+#!/bin/sh -eu
+
+# Slackware build script for GSmartControl
+# Written by Erik Hanson erik@slackbuilds.org
+
+PRGNAM=gsmartcontrol
+VERSION=0.8.1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+cp -a COPYING INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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.tgz
diff --git a/system/gsmartcontrol/gsmartcontrol.info b/system/gsmartcontrol/gsmartcontrol.info
new file mode 100644
index 0000000000..cec3112f0f
--- /dev/null
+++ b/system/gsmartcontrol/gsmartcontrol.info
@@ -0,0 +1,8 @@
+PRGNAM="gsmartcontrol"
+VERSION="0.8.1"
+HOMEPAGE="http://gsmartcontrol.berlios.de/home/index.php/en/Home"
+DOWNLOAD="http://download.berlios.de/gsmartcontrol/gsmartcontrol-0.8.1.tar.bz2"
+MD5SUM="ff3a7cf8677bb61f8139b87893e31060"
+MAINTAINER="Erik Hanson"
+EMAIL="erik@slackbuilds.org"
+APPROVED="rworkman"
diff --git a/system/gsmartcontrol/slack-desc b/system/gsmartcontrol/slack-desc
new file mode 100644
index 0000000000..60d333ed9e
--- /dev/null
+++ b/system/gsmartcontrol/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 ':'.
+
+ |-----handy-ruler------------------------------------------------|
+gsmartcontrol: GSmartControl (Hard disk drive health inspection tool)
+gsmartcontrol:
+gsmartcontrol: GSmartControl is a graphical user interface for smartctl (from
+gsmartcontrol: Smartmontools package), which is a tool for querying and
+gsmartcontrol: controlling SMART (Self-Monitoring, Analysis, and Reporting
+gsmartcontrol: Technology) data on modern hard disk drives. It allows you to
+gsmartcontrol: inspect the drive's SMART data to determine its health, as well
+gsmartcontrol: as run various tests on it.
+gsmartcontrol:
+gsmartcontrol: http://gsmartcontrol.berlios.de/home/index.php/en/Home
+gsmartcontrol: