#!/bin/sh # # Contributor: Adrian C. # slack-desc # nmon: nmon # nmon: # nmon: Nmon is an AIX and Linux performance monitoring tool. # nmon: # nmon: This systems administrator, tuner, benchmark tool # nmon: gives you a huge amount of important performance # nmon: information in one go. It can output the data # nmon: in two ways. On screen, or in a CSV comma separated # nmon: file. # nmon: # nmon: Packaged by: CWD=`pwd` TMP=${TMP:-/tmp/build/nmon/tgz} PKG=$TMP/package NAME=nmon VERSION=13g #SOURCE="http://downloads.sourceforge.net/$NAME/lmon$VERSION.c" CHOST=i686 ARCH=${ARCH:-i686} BUILD=1aic CFLAGS="-g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -g" if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi # Prepare for building cd $TMP cp $CWD/lmon$VERSION.c . chown -R root:root . # Build nmon cc -o $NAME lmon$VERSION.c $CFLAGS # Install nmon mkdir -p $PKG/usr/bin cp -a $NAME $PKG/usr/bin chmod 0755 $PKG/usr/bin/$NAME # Build the package cd $PKG mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi