diff options
author | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 15:18:39 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 15:18:39 +0200 |
commit | 39850cb3670af76671643c6ed11c229637f73427 (patch) | |
tree | 07f5062bc5ba483cfe0444095118d313199aafae | |
parent | d27e9954b835827705218b11bcd1ae39c12a81f2 (diff) |
system/htop: Initial import
-rw-r--r-- | system/htop/README | 4 | ||||
-rw-r--r-- | system/htop/doinst.sh | 4 | ||||
-rw-r--r-- | system/htop/htop.SlackBuild | 67 | ||||
-rw-r--r-- | system/htop/htop.info | 8 | ||||
-rw-r--r-- | system/htop/slack-desc | 11 |
5 files changed, 94 insertions, 0 deletions
diff --git a/system/htop/README b/system/htop/README new file mode 100644 index 0000000000000..652295d3858cc --- /dev/null +++ b/system/htop/README @@ -0,0 +1,4 @@ +htop is an interactive process viewer for Linux. It aims to be a 'better top' +You can scroll the process list vertically and horizontally, and select a +process to be killed with the arrow keys instead of by typing its process +id. diff --git a/system/htop/doinst.sh b/system/htop/doinst.sh new file mode 100644 index 0000000000000..eec7ae1d81a1c --- /dev/null +++ b/system/htop/doinst.sh @@ -0,0 +1,4 @@ +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + diff --git a/system/htop/htop.SlackBuild b/system/htop/htop.SlackBuild new file mode 100644 index 0000000000000..ea275db1136d0 --- /dev/null +++ b/system/htop/htop.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Slackware build script for htop +# Written by BP{k} <michiel@slackbuilds.org> + +# Modified by the SlackBuilds.org project + +set -e + +PRGNAM=htop +VERSION=0.6.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="AUTHORS COPYING INSTALL NEWS README TODO" + +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 -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +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 \ + --mandir=/usr/man/ \ + --disable-debug + +make +make install-strip DESTDIR=$PKG + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Rewrite the desktop file so the icon will properly display in kde +sed -i 's#Icon=htop.png#Icon=/usr/share/pixmaps/htop.png#' \ + $PKG/usr/share/applications/$PRGNAM.desktop + +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/htop/htop.info b/system/htop/htop.info new file mode 100644 index 0000000000000..f318834b7e41d --- /dev/null +++ b/system/htop/htop.info @@ -0,0 +1,8 @@ +PRGNAM="htop" +VERSION="0.6.6" +HOMEPAGE="http://htop.sourceforge.net" +DOWNLOAD="http://dl.sourceforge.net/htop/htop-0.6.6.tar.gz" +MD5SUM="12c8e6e97bd50a4e0a4730d23675fc7b" +MAINTAINER="Michiel van Wessem" +EMAIL="michiel@slackbuilds.org" +APPROVED="rworkman" diff --git a/system/htop/slack-desc b/system/htop/slack-desc new file mode 100644 index 0000000000000..524a02a3345f0 --- /dev/null +++ b/system/htop/slack-desc @@ -0,0 +1,11 @@ +htop: Htop (Process Viewer) +htop: +htop: This is htop, an interactive process viewer for Linux. It is a text-mode +htop: application (for console or X terminals) and requires ncurses. htop has +htop: been ested with Linux 2.4 and 2.6 kernels. +htop: +htop: Homepage: http://htop.sourceforge.net/ +htop: +htop: +htop: +htop: |