IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=4.4.98
PROGNAME="GNU strace $VERSION"
DESC="\
strace (trace system calls and signals)                                \n\
                                                                       \n\
Strace allows you to trace the execution of a command.  It runs the    \n\
specified command until it exits, intercepting signals and system      \n\ 
calls and dumping the information to the standard error.  System       \n\
administrators, diagnosticians and trouble-shooters will find it       \n\
invaluable for solving problems with programs for which the source     \n\
is not readily available since they do not need to be recompiled in    \n\
order to trace them."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=http://www.wi.leidenuniv.nl/~wichert/strace/
PKGNAME=strace-$VERSION-s390-$BUILD
TAG=REC

compile() {
   tar -yxvf $CWD/strace-$VERSION.tar.bz2
   cd strace-$VERSION/
   chown -R root.root .
   ./configure --prefix=/usr

   make
}

install() {
   make install DESTDIR=/package-strace/

   mkdir -p /package-strace/usr/doc/strace-$VERSION
   cp -a COPYRIGHT CREDITS NEWS PORTING README README-CVS \
         README-freebsd README-linux README-sunos4 README-svr4 TODO \
       /package-strace/usr/doc/strace-$VERSION

   ( cd /package-strace/usr/man/man1
     rm -f *.gz
     gzip -9 *.1
   )
}

attributes() {
   chown -R root.bin $PKG/package-strace/usr/bin/
}

special() {
   cd $PKG
   mv package-strace/* .
   rmdir package-strace

   cd $CTL
   cat $CWD/slack-desc > slack-desc
}

