blob: b9ca711bed67539a7c289af39ebca628d720b1af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: danyf90 <daniele.formichelli@gmail.com>
# Contributor: Julien <paci79@free.fr>
# 0.93 has serious bugs in whois.c
set -u
pkgname='paris-traceroute'
pkgver='0.93'
pkgrel='2'
pkgdesc='Paris traceroute is a new version of the well-known network diagnosis and measurement tool'
arch=('i686' 'x86_64')
url='http://www.paris-traceroute.net'
_giturl='https://github.com/libparistraceroute/libparistraceroute'
license=('GPL')
depends=('glibc')
#_srcdir='paris-traceroute-current'
_srcdir="libparistraceroute-${pkgver}"
source=(
#"http://www.paris-traceroute.net/downloads/paris-traceroute-${pkgver}-dev.tar.gz"
"${_srcdir}.tar.gz::${_giturl}//archive/v${pkgver}.tar.gz"
'0000-whois.c-BUFFER_SIZE-overflow.patch'
'0001-mda_link_dump_mda_interface_t_array.patch'
)
md5sums=('ac7c0583ed97c55481ef126a56d4eb87'
'89edd8047c18b4ee88d7853400baf059'
'8a23e259e5a9452572a20879d2c78fd4')
sha512sums=('505de465454c349adea936637a097bb3f812f010665825badfc97751e9219325d04d8af78ac6d107e66ff6ef02a8cda1559b8073906d36a745115cd54104a8b4'
'7c36c814f8b8c219ddc7be6bf22210e5565b0e6b504256de41ba14a084cf9a380bf9d70f440badb48429a3d4843f7b9e75fab44aa3984d0e16a19bfa32e97df9'
'e86ca3261d8e88e74263fd861e80ef238cc085c2cbc37f73e178593e250b50fce4dac7a3dc8695b743ccff7e3227772620130a6fc6c4bab56c4787126acb472a')
prepare() {
set -u
cd "${_srcdir}"
local _f
for _f in "${source[@]}"; do
if [[ "${_f}" = *.patch ]]; then
set +u; msg2 "Patch ${_f}"; set -u
patch -Nup1 -i "${srcdir}/${_f}"
fi
done
#cd '..'; cp -pr "${_srcdir}" 'a'; ln -s "${_srcdir}" 'b'; cd "${_srcdir}"; false
# diff -pNaru5 'a' 'b' > '0000-new.patch'
rm -f 'Makefile'
set +u
}
build() {
set -u
cd "${_srcdir}"
if [ ! -s 'configure' ]; then
./autogen.sh
fi
if [ ! -s 'Makefile' ]; then
./configure --prefix='/usr'
fi
make
set +u
}
package() {
set +u
cd "${_srcdir}"
make prefix="${pkgdir}/usr" install
mv "${pkgdir}/usr/bin/"{ping,pinglt}
chmod +s "${pkgdir}/usr/bin"/*
#install -Dpm644 "man/${pkgname}.8" -t "${pkgdir}/usr/share/man/man8/"
#install -Dpm644 'doc/tupleroute.dia' -t "${pkgdir}/usr/share/${pkgname}/"
set -u
}
set +u
|