diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2014-03-04 11:40:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-11 07:33:01 +0000 |
commit | a5dc9d9bb7a9dfd4baa7a2994a7a5cc71bc78df9 (patch) | |
tree | 581f204895cd966f214bea17a922149a3589a45b /testing/hexinject | |
parent | 31f541cb1f2da5cbb70d7451052604ce71995616 (diff) | |
download | aports-a5dc9d9bb7a9dfd4baa7a2994a7a5cc71bc78df9.tar.bz2 aports-a5dc9d9bb7a9dfd4baa7a2994a7a5cc71bc78df9.tar.xz |
testing/hexinject: new aport
A very versatile packet injector and sniffer
http://hexinject.sourceforge.net/
Diffstat (limited to 'testing/hexinject')
-rw-r--r-- | testing/hexinject/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/hexinject/APKBUILD b/testing/hexinject/APKBUILD new file mode 100644 index 0000000000..2dda62d183 --- /dev/null +++ b/testing/hexinject/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=hexinject +pkgver=1.5 +pkgrel=0 +pkgdesc="A very versatile packet injector and sniffer" +url="http://hexinject.sourceforge.net/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="libpcap-dev" +install="" +subpackages="" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + for i in hexinject prettypacket hex2raw; do + install -Dm755 $i "$pkgdir"/usr/bin/$i || return 1 + done + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="26fbb396bed9c64de653e35ae78b6956 hexinject-1.5.tar.gz" +sha256sums="329f0686069988ac0dae4a00082b205ac9669bc8e202d4b112c600bcbc198ce9 hexinject-1.5.tar.gz" +sha512sums="cd145b6f2ae9d739effca03959fb474df11d28ff015c0e5bd1e30c341f60085154795f3c8a601b7241623944b3868b6fc9a3e1530a3aa4e7aaa2b3794a5aa34a hexinject-1.5.tar.gz" |