blob: 6d81263d8b6567f3c1658b378c1bbc72a5ba5230 (
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
|
# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
pkgname=hexinject
pkgver=1.6
pkgrel=2
pkgdesc="Network packet sniffer and injector"
arch=('x86_64')
url="https://hexinject.sourceforge.net/"
license=("BSD")
depends=("libpcap" "tcl")
source=("${pkgname}-${pkgver}.tar.gz"::"https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
"hexinject-1.6-fix-build-system.patch")
sha256sums=('06e64636923af593c742129d81b717667223bff39918f26bf56809ead9700e65'
'cb410b131fd447f8b18b2e69bd35a0ae79df1689eb32f8ff97365eb8e250e8c5')
prepare() {
cd "${srcdir}/${pkgname}"
patch -Np1 -i "${srcdir}/hexinject-1.6-fix-build-system.patch"
}
build() {
cd "${srcdir}/${pkgname}"
make
}
package() {
cd "${srcdir}/${pkgname}"
install -dm755 ${pkgdir}/usr/bin
for i in hexinject hex2raw prettypacket packets.tcl; do
install -m755 ${i} ${pkgdir}/usr/bin/${i}
done
}
|