aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-02-03 22:11:35 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2017-02-03 22:11:54 +0200
commit853ed4576de4a23cf6f6e0bce95903c1ced82bd8 (patch)
tree1ed05cc22a30fab64206c138fde33466032d28f5 /testing
parentee55460e9d558e4a2e10b0b22d049fd6cdc2a544 (diff)
downloadaports-853ed4576de4a23cf6f6e0bce95903c1ced82bd8.tar.bz2
aports-853ed4576de4a23cf6f6e0bce95903c1ced82bd8.tar.xz
testing/captagent: new package
Diffstat (limited to 'testing')
-rw-r--r--testing/captagent/APKBUILD33
-rw-r--r--testing/captagent/ac-fix.patch12
2 files changed, 45 insertions, 0 deletions
diff --git a/testing/captagent/APKBUILD b/testing/captagent/APKBUILD
new file mode 100644
index 0000000000..b84ab25f13
--- /dev/null
+++ b/testing/captagent/APKBUILD
@@ -0,0 +1,33 @@
+# 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 --git a/testing/captagent/ac-fix.patch b/testing/captagent/ac-fix.patch
new file mode 100644
index 0000000000..cbd049c11e
--- /dev/null
+++ b/testing/captagent/ac-fix.patch
@@ -0,0 +1,12 @@
+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)