1 # Maintainer: Simon Perry <pezz [at] sanxion [dot] net>
7 pkgdesc="A protocol-agnostic libpcap-based tool for measuring TCP response times"
9 url="https://launchpad.net/tcprstat"
13 provides=(${_pkgname})
14 conflicts=(${_pkgname})
15 options=('!libtool' '!emptydirs')
16 source=(configure.patch makefile.patch)
17 md5sums=('a0a259c1498927b0d14f94f7178ac910'
18 '7395c29d5937ee04e137a990adb5a054')
20 _bzrtrunk="lp:${_pkgname}"
26 msg "Connecting to the server...."
28 if [ -d ${_bzrmod} ]; then
29 bzr up ${_bzrmod} -r ${pkgver}
30 msg "The local files are updated."
32 bzr co ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
35 msg "bzr checkout done or server timeout"
36 msg "Starting make..."
38 rm -rf "${_bzrmod}-build"
39 cp -r "${_bzrmod}" "${_bzrmod}-build"
40 chmod 700 "${_bzrmod}-build/bootstrap"
43 patch -Np1 -i $srcdir/configure.patch
44 patch -Np1 -i $srcdir/makefile.patch
47 ./configure --prefix=/usr --disable-static
50 make DESTDIR=$pkgdir install