system/newrelic-sysmond: Updated for version 1.4.0.471.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Steven King 2014-05-18 20:19:25 +07:00 committed by Willy Sudiarto Raharjo
parent 9365d162f8
commit 1a035d51e9
3 changed files with 35 additions and 24 deletions

View file

@ -1,3 +1,3 @@
This package contains the newrelic-sysmond program by Newrelic.
It will monitor your server's system resources and report them back
to your Newrelic account.
Newrelic-sysmond will monitor your server's system
resources and report them back to your Newrelic account.

View file

@ -23,13 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=newrelic-sysmond
VERSION=${VERSION:-1.3.1.437}
VERSION=${VERSION:-1.4.0.471}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
@ -40,12 +41,17 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
BINARCH=x86
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
BINARCH=x64
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
echo "$ARCH is not supported"
exit 1
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
@ -53,34 +59,39 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION-linux
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION-linux.tar.gz
cd $PRGNAM-$VERSION-linux
mv $PRGNAM-$VERSION-linux $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-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 {} \;
mkdir -p $PKG/var/run/newrelic $PKG/var/log/newrelic
mkdir -p $PKG/usr/sbin
mkdir -p $PKG/etc/rc.d
mkdir -p $PKG/etc/newrelic
mkdir -p $PKG/var/run/newrelic
mkdir -p $PKG/var/log/newrelic
install -m 0644 -D nrsysmond.cfg $PKG/etc/newrelic/nrsysmond.cfg.new
install -m 0644 nrsysmond.cfg $PKG/etc/newrelic/nrsysmond.cfg.new
install -m 0755 -D daemon/nrsysmond.$BINARCH $PKG/usr/sbin/nrsysmond
if [ $ARCH == 'x86_64' ]; then
install -m 0755 daemon/nrsysmond.x64 $PKG/usr/sbin/nrsysmond
else
install -m 0755 daemon/nrsysmond.x86 $PKG/usr/sbin/nrsysmond
fi
install -m 0755 -D scripts/nrsysmond-config $PKG/usr/sbin/nrsysmond-config
install -m 0755 -D scripts/newrelic-sysmond.init.rhel \
$PKG/etc/rc.d/rc.nrsysmond.new
install -m 0755 scripts/nrsysmond-config $PKG/usr/sbin/nrsysmond-config
install -m 0755 scripts/newrelic-sysmond.init.rhel $PKG/etc/rc.d/rc.newrelic-sysmond
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/usr/doc/$PRGNAM-$VERSION
cp -a \
INSTALL.txt LICENSE.txt MD5SUMS scripts \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a INSTALL.txt LICENSE.txt MD5SUMS scripts $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="newrelic-sysmond"
VERSION="1.3.1.437"
VERSION="1.4.0.471"
HOMEPAGE="https://newrelic.com"
DOWNLOAD="http://mirrors.kingrst.com/newrelic/newrelic-sysmond-1.3.1.437-linux.tar.gz"
MD5SUM="502d3d60e7153cbee5825f2550510d5e"
DOWNLOAD="http://mirrors.kingrst.com/newrelic/newrelic-sysmond-1.4.0.471-linux.tar.gz"
MD5SUM="820eb3117b01556164aaefb1b439899f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="%README%"
REQUIRES=""
MAINTAINER="Steven King"
EMAIL="kingrst@gmail.com"