aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/hexinject/APKBUILD30
-rw-r--r--testing/hexinject/fix-build.patch15
-rw-r--r--unmaintained/hexinject/APKBUILD42
3 files changed, 45 insertions, 42 deletions
diff --git a/testing/hexinject/APKBUILD b/testing/hexinject/APKBUILD
new file mode 100644
index 0000000000..7572fa9056
--- /dev/null
+++ b/testing/hexinject/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Arch3y <arch3y@riseup.net>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=hexinject
+pkgver=1.6
+pkgrel=0
+pkgdesc="A very versatile packet injector and sniffer"
+url="http://hexinject.sourceforge.net/"
+arch="all"
+license="BSD"
+depends=""
+makedepends="libpcap-dev"
+source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ fix-build.patch"
+options="!check"
+builddir="$srcdir/$pkgname"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+ install -Dm755 hexinject $pkgdir/usr/bin/hexinject
+ install -Dm755 prettypacket $pkgdir/usr/bin/prettypacket
+ install -Dm755 hex2raw $pkgdir/usr/bin/hex2raw
+}
+
+sha512sums="7432122a7ca42b7ac066cc55daec2d4a656b08e0f390db1a49f626181080d07687026d04a150573e3341e4e76f87a20b6466deddcc9d022e7d66fadcb8dac1ad hexinject-1.6.tar.gz
+7ab2e5a576e23bb5bfdefc8d9b9a432008d3e75bf4693cab6b0f20661cdf9286487b9c3294b9dfe207d134b8631e2083ac638f0821edc16be1510b8cc4a206aa fix-build.patch"
diff --git a/testing/hexinject/fix-build.patch b/testing/hexinject/fix-build.patch
new file mode 100644
index 0000000000..cce8b1e4f3
--- /dev/null
+++ b/testing/hexinject/fix-build.patch
@@ -0,0 +1,15 @@
+--- hexinject/Makefile.orig 2017-08-29 07:29:31.430661450 +0000
++++ hexinject/Makefile 2017-08-29 07:29:53.634411237 +0000
+@@ -3,9 +3,9 @@
+ LDFLAGS = -lpcap
+
+ all:
+- $(CC) $(CFLAGS) $(LDFLAGS) -o hexinject hexinject.c
+- $(CC) $(CFLAGS) $(LDFLAGS) -o prettypacket prettypacket.c
+- $(CC) $(CFLAGS) $(LDFLAGS) -o hex2raw hex2raw.c
++ $(CC) $(CFLAGS) -o hexinject hexinject.c $(LDFLAGS)
++ $(CC) $(CFLAGS) -o prettypacket prettypacket.c $(LDFLAGS)
++ $(CC) $(CFLAGS) -o hex2raw hex2raw.c $(LDFLAGS)
+
+ clean:
+ rm -f hexinject prettypacket hex2raw *~
diff --git a/unmaintained/hexinject/APKBUILD b/unmaintained/hexinject/APKBUILD
deleted file mode 100644
index 8c653888f2..0000000000
--- a/unmaintained/hexinject/APKBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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
-}
-
-md5sums="26fbb396bed9c64de653e35ae78b6956 hexinject-1.5.tar.gz"
-sha256sums="329f0686069988ac0dae4a00082b205ac9669bc8e202d4b112c600bcbc198ce9 hexinject-1.5.tar.gz"
-sha512sums="cd145b6f2ae9d739effca03959fb474df11d28ff015c0e5bd1e30c341f60085154795f3c8a601b7241623944b3868b6fc9a3e1530a3aa4e7aaa2b3794a5aa34a hexinject-1.5.tar.gz"