blob: 1fc27b8f07aaadf72e1ff33c6abf1a0afb64234f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Alexis Jeandeau <alexis[dot]jeandeau[at]gmail[dot]com>
pkgname=tcpsplit
pkgver=0.2
pkgrel=1
pkgdesc="Breaks a single libpcap packet trace into some number of sub-traces."
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="http://www.icir.org/mallman/software/tcpsplit/"
license=('custom')
depends=('libpcap')
source=("http://www.icir.org/mallman/software/tcpsplit/${pkgname}-${pkgver}.tar.gz")
sha256sums=('885a6609d04eb35f31f1c6f06a0b9afd88776d85dec0caa33a86cef3f3c09d1d')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# _BSD_SOURCE is deprecated, use _DEFAULT_SOURCE
sed -i 's/BSD_SOURCE/DEFAULT_SOURCE/' Makefile.linux
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make -f Makefile.linux
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "validate" "${pkgdir}/usr/bin/${pkgname}-validate"
install -Dm644 "COPYRIGHT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|