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.
|
||||
# For details see http://sam.zoy.org/wtfpl/COPYING
|
||||
|
||||
# Updated by Peter Wang <novalazy@gmail.com>
|
||||
|
||||
PRGNAM=latrace
|
||||
VERSION=${VERSION:-0.5.3}
|
||||
VERSION=${VERSION:-0.5.7}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -20,11 +22,14 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
|
@ -45,10 +50,12 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install ROOTDIR=$PKG
|
||||
|
@ -58,7 +65,7 @@ make install ROOTDIR=$PKG
|
|||
mv $PKG/etc/latrace.conf $PKG/etc/latrace.conf.new
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
@ -74,4 +81,4 @@ 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
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="latrace"
|
||||
VERSION="0.5.3"
|
||||
HOMEPAGE="http://latrace.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/latrace/latrace-0.5.3.tar.bz2"
|
||||
MD5SUM="2ad3bbda765db233729f31c54697b439"
|
||||
MAINTAINER="Menno Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
VERSION="0.5.7"
|
||||
HOMEPAGE="http://people.redhat.com/jolsa/latrace/"
|
||||
DOWNLOAD="http://people.redhat.com/jolsa/latrace/dl/latrace-0.5.7.tar.bz2"
|
||||
MD5SUM="aeb0fbe6e8265f492206f497cfde1e3c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Peter Wang"
|
||||
EMAIL="novalazy@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
latrace: latrace (library call trace)
|
||||
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 was written by Jiri Olsa
|
||||
latrace:
|
||||
|
@ -16,4 +17,3 @@ latrace:
|
|||
latrace:
|
||||
latrace:
|
||||
latrace:
|
||||
latrace:
|
||||
|
|
Loading…
Reference in New Issue