[arch-commits] Commit in tcpreplay/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:22:15 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:22:14
  Author: felixonmars
Revision: 660370

archrelease: copy trunk to community-staging-x86_64

Added:
  tcpreplay/repos/community-staging-x86_64/
  tcpreplay/repos/community-staging-x86_64/PKGBUILD
    (from rev 660368, tcpreplay/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: tcpreplay/repos/community-staging-x86_64/PKGBUILD (from rev 660368, tcpreplay/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:22:14 UTC (rev 660370)
@@ -0,0 +1,51 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Sébastien Duquette <ekse.0x at gmail.com>
+# Contributor: Dawid Wrobel <cromo at klej.net>
+
+pkgname=tcpreplay
+pkgver=4.3.2
+pkgrel=2
+pkgdesc='Gives the ability to replay previously captured traffic in a libpcap format'
+url='https://tcpreplay.appneta.com'
+arch=('x86_64')
+license=('GPL3')
+depends=('libpcap' 'libdnet' 'autogen')
+makedepends=('tcpdump')
+optdepends=('tcpdump: decoding of packets support')
+options=('!emptydirs')
+source=(https://github.com/appneta/tcpreplay/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
+sha512sums=('211158d39ec48cefe11f0681f38eb1ab6a8302c5ef0e97dbff7d3230defe63e34d8d5755c21f1fe3fc061c4a0caf48ea0b86ae7d444ca68529a96386ea97b8fe'
+            'SKIP')
+validpgpkeys=('84E4FA215C934A7D97DC76D5E9E2149793BDE17E') # Fred Klassen <tcpreplay at appneta.com>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  autoreconf -fiv
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure \
+    --prefix=/usr \
+    --disable-local-libopts \
+    --enable-dynamic-link \
+    --enable-shared \
+    --with-libdnet \
+    --with-tcpdump=/usr/bin/tcpdump \
+    ac_cv_header_net_bpf_h=n
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make -j1 -C test tcpprep
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list