/
PKGBUILD
35 lines (30 loc) · 1.09 KB
/
PKGBUILD
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
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=220
pkgname=hexinject
pkgver=1.6
pkgrel=2
groups=('archstrike' 'archstrike-sniffers')
pkgdesc="A very versatile packet injector and sniffer that provides a command-line framework for raw network access"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url='http://hexinject.sourceforge.net'
license=('BSD')
depends=('libpcap' 'tcl')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('7432122a7ca42b7ac066cc55daec2d4a656b08e0f390db1a49f626181080d07687026d04a150573e3341e4e76f87a20b6466deddcc9d022e7d66fadcb8dac1ad')
prepare() {
cd "$pkgname"
#fix compatibility issues with gcc5.2
sed -i '/gcc/ s/$/ -std=gnu89/' Makefile
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
install -Dm644 README $pkgdir/usr/share/licenses/$pkgname/README
install -Dm755 hexinject $pkgdir/usr/bin/hexinject
install -Dm755 prettypacket $pkgdir/usr/bin/prettypacket
install -Dm755 hex2raw $pkgdir/usr/bin/hex2raw
install -Dm755 packets.tcl $pkgdir/usr/bin/packets_tcl
}