# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=pcapsipdump pkgver=0.2 pkgrel=3 pkgdesc="A tool for dumping SIP sessions (+RTP traffic, if available) to disk in a fashion similar to 'tcpdump -w' (format is exactly the same), but one file per sip session (even if there is thousands of concurrent SIP sessions)." url='http://pcapsipdump.sourceforge.net/' groups=('blackarch' 'blackarch-voip') license=('GPL') depends=('libpcap' 'gcc-libs') arch=('x86_64' 'aarch64') source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz") sha512sums=('7bd1dd4508262ff5aa43b26ba382aa0b17d9f971b192f5f7b6e861a81f60a853e966abba0b8b688f3bf157a8a7b00790189748c2d29bc7e8c61c13e9cbfd37ac') build() { cd "$pkgname-$pkgver" g++ -lpcap -lstdc++ "$pkgname.cpp" calltable.cpp -o $pkgname #make CPPFLAGS="$CFLAGS" } package(){ cd "$pkgname-$pkgver" install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname" install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.txt ChangeLog \ README.solaris install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }