development/latrace: Updated for version 0.5.7
This commit is contained in:
parent
86abfe9936
commit
d89b243f4d
|
@ -7,8 +7,10 @@
|
||||||
# Granted WTFPLv2, as published by Sam Hocevar dec'04.
|
# Granted WTFPLv2, as published by Sam Hocevar dec'04.
|
||||||
# For details see http://sam.zoy.org/wtfpl/COPYING
|
# For details see http://sam.zoy.org/wtfpl/COPYING
|
||||||
|
|
||||||
|
# Updated by Peter Wang <novalazy@gmail.com>
|
||||||
|
|
||||||
PRGNAM=latrace
|
PRGNAM=latrace
|
||||||
VERSION=${VERSION:-0.5.3}
|
VERSION=${VERSION:-0.5.7}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -20,10 +22,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e # Exit on most errors
|
set -e # Exit on most errors
|
||||||
|
@ -45,10 +50,12 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install ROOTDIR=$PKG
|
make install ROOTDIR=$PKG
|
||||||
|
@ -58,7 +65,7 @@ make install ROOTDIR=$PKG
|
||||||
mv $PKG/etc/latrace.conf $PKG/etc/latrace.conf.new
|
mv $PKG/etc/latrace.conf $PKG/etc/latrace.conf.new
|
||||||
|
|
||||||
find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
|
find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
|
||||||
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
( cd $PKG/usr/man || exit 1
|
( cd $PKG/usr/man || exit 1
|
||||||
find . -type f -exec gzip -9 {} \;
|
find . -type f -exec gzip -9 {} \;
|
||||||
|
@ -66,7 +73,7 @@ find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a README TODO ChangeLog ReleaseNotes $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a COPYING README TODO ChangeLog ReleaseNotes $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
@ -74,4 +81,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="latrace"
|
PRGNAM="latrace"
|
||||||
VERSION="0.5.3"
|
VERSION="0.5.7"
|
||||||
HOMEPAGE="http://latrace.sourceforge.net/"
|
HOMEPAGE="http://people.redhat.com/jolsa/latrace/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/latrace/latrace-0.5.3.tar.bz2"
|
DOWNLOAD="http://people.redhat.com/jolsa/latrace/dl/latrace-0.5.7.tar.bz2"
|
||||||
MD5SUM="2ad3bbda765db233729f31c54697b439"
|
MD5SUM="aeb0fbe6e8265f492206f497cfde1e3c"
|
||||||
MAINTAINER="Menno Duursma"
|
DOWNLOAD_x86_64=""
|
||||||
EMAIL="druiloor@zonnet.nl"
|
MD5SUM_x86_64=""
|
||||||
|
MAINTAINER="Peter Wang"
|
||||||
|
EMAIL="novalazy@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
latrace: latrace (library call trace)
|
latrace: latrace (library call trace)
|
||||||
latrace:
|
latrace:
|
||||||
latrace: Trace library calls in a similar manner to (s)trace'n processes.
|
latrace: latrace allows you to trace library calls and get their statistics
|
||||||
|
latrace: in a manner similar to the strace utility (syscall tracing).
|
||||||
latrace:
|
latrace:
|
||||||
latrace: latrace was written by Jiri Olsa
|
latrace: latrace was written by Jiri Olsa
|
||||||
latrace:
|
latrace:
|
||||||
|
@ -16,4 +17,3 @@ latrace:
|
||||||
latrace:
|
latrace:
|
||||||
latrace:
|
latrace:
|
||||||
latrace:
|
latrace:
|
||||||
latrace:
|
|
||||||
|
|
Loading…
Reference in New Issue