Commit 853ed457 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

testing/captagent: new package

parent ee55460e
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=captagent
pkgver=6.1.0.20
pkgrel=0
pkgdesc="HEP Capture Agent for HOMER"
url="https://github.com/sipcapture/captagent"
arch="all"
license="GPL3"
makedepends="autoconf automake bison expat-dev flex flex-dev json-c-dev libtool libpcap-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/captagent/archive/$pkgver.tar.gz
ac-fix.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir" && ./build.sh && ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc &&
make
}
package() {
cd "$builddir" && make install DESTDIR="$pkgdir"
}
md5sums="8c7f73d37776a7dbc616aa3217f824a3 captagent-6.1.0.20.tar.gz
43eddea9f2c3c0efa658b3cbe64e4e48 ac-fix.patch"
sha256sums="64def81f3b53b16416fcc7e8cb61136c53e8b25446403287b0bb6e6b27089713 captagent-6.1.0.20.tar.gz
f42aec59c15ef8a8adbfd7221318e0d8a48fb5d95a5252f8332f2192cbb235fb ac-fix.patch"
sha512sums="b867a41dfe98015f01fa8c67e57214754231eeec40d0685983fca9aacf53cc5287c2c9959f4752c80004ad5abc2e8a96058797b6b7cdc259a48443c1a909b609 captagent-6.1.0.20.tar.gz
c0bbbbf2f96c7644b154e71b672af5a0d7c209dd5b309b6f6b35915a04f30a33ff4fc18e408e3f1641d4ca6ae51430f9ac0189984f828353263fb52e985b47c1 ac-fix.patch"
diff -ru captagent-6.1.0.20/configure.ac captagent-6.1.0.20.alpine/configure.ac
--- captagent-6.1.0.20/configure.ac 2016-06-01 14:42:19.000000000 +0300
+++ captagent-6.1.0.20.alpine/configure.ac 2017-02-03 22:06:46.098797592 +0200
@@ -181,7 +181,7 @@
echo " the LDFLAGS to set its proper path.";
AC_MSG_ERROR([Fatal: libjson not found.])])])
-AC_CHECK_LIB(fl, yywrap, [ FLEX_LIBS="-lfl" ] , [AC_MSG_ERROR([captagent requires but cannot find libfl])])
+FLEX_LIBS="-lfl"
AC_SUBST(PTHREAD_LIBS)
AC_SUBST(DL_LIBS)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment