2015-04-23 14:02:03 +02:00
|
|
|
# Template file for 'tracebox'
|
|
|
|
pkgname=tracebox
|
2015-07-04 20:49:11 +02:00
|
|
|
version=0.3
|
2015-04-23 14:02:03 +02:00
|
|
|
revision=1
|
2015-04-23 14:26:28 +02:00
|
|
|
_click_ver=2.0.1
|
2015-07-04 20:49:11 +02:00
|
|
|
_crafter_git=891567b28fa88a8a14e6d11815dc2d9fff75329c
|
|
|
|
_crafter_ver=0.3git
|
2015-04-23 14:02:03 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake pkg-config libtool unzip"
|
2015-07-04 20:49:11 +02:00
|
|
|
makedepends="libpcap-devel json-c-devel lua-devel"
|
2015-04-23 14:02:03 +02:00
|
|
|
short_desc="A middlebox detection tool"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="GPL-2"
|
|
|
|
nocross=yes
|
|
|
|
homepage="http://www.tracebox.org/"
|
2015-04-23 14:26:28 +02:00
|
|
|
distfiles="
|
|
|
|
https://github.com/tracebox/tracebox/archive/v${version}.tar.gz>tracebox-${version}.tar.gz
|
|
|
|
https://github.com/bhesmans/click/archive/v${_click_ver}.tar.gz>click-${_click_ver}.tar.gz
|
2015-07-04 20:49:11 +02:00
|
|
|
https://github.com/pellegre/libcrafter/archive/${_crafter_git}.zip>libcrafter-${_crafter_ver}.zip"
|
2015-04-23 14:26:28 +02:00
|
|
|
checksum="
|
2015-07-04 20:49:11 +02:00
|
|
|
973dcf7069cfff3fbcbb7aa71168bb0cfeb146ddec58d78de87fba30149e40e9
|
2015-04-23 14:26:28 +02:00
|
|
|
4e48591cb385000ee8daedf3cc18d4b00a9c5a142cc001e0780f0c7ebd713764
|
2015-07-04 20:49:11 +02:00
|
|
|
a004346589e4f66662a6cd2367a9000f761f1959a5c43648b952452f1eaec36a"
|
2015-04-23 14:02:03 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# Do what ./bootstrap.sh would have done but without using git to pull submodules
|
|
|
|
mkdir -p ${wrksrc}/test/tools ${wrksrc}/noinst/libcrafter
|
2015-04-23 14:26:28 +02:00
|
|
|
mv -v ../click-${_click_ver} test/tools/click
|
2015-07-04 20:49:11 +02:00
|
|
|
mv -v ../libcrafter-${_crafter_git}/{.gitignore,README,libcrafter} noinst/libcrafter
|
|
|
|
rmdir -v ../libcrafter-${_crafter_git}
|
2015-04-23 14:26:28 +02:00
|
|
|
# Set missing AM_PROG_AR
|
|
|
|
sed -e "/AC_PROG_CXX/iAM_PROG_AR=${AR}" -i noinst/libcrafter/libcrafter/configure.ac
|
|
|
|
autoreconf --force --install --verbose
|
2015-04-23 14:02:03 +02:00
|
|
|
}
|