mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/gsmartcontrol: Added to 12.1 repository
This commit is contained in:
parent
b2e3d5b6f3
commit
9bd9e20031
5 changed files with 91 additions and 0 deletions
8
system/gsmartcontrol/README
Normal file
8
system/gsmartcontrol/README
Normal file
|
@ -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
|
3
system/gsmartcontrol/doinst.sh
Normal file
3
system/gsmartcontrol/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
|
||||
fi
|
53
system/gsmartcontrol/gsmartcontrol.SlackBuild
Normal file
53
system/gsmartcontrol/gsmartcontrol.SlackBuild
Normal file
|
@ -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
|
8
system/gsmartcontrol/gsmartcontrol.info
Normal file
8
system/gsmartcontrol/gsmartcontrol.info
Normal file
|
@ -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"
|
19
system/gsmartcontrol/slack-desc
Normal file
19
system/gsmartcontrol/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue