aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/scapy/APKBUILD8
-rw-r--r--testing/scapy/scapy.post-install9
2 files changed, 14 insertions, 3 deletions
diff --git a/testing/scapy/APKBUILD b/testing/scapy/APKBUILD
index a969439e1f..d8856cf90c 100644
--- a/testing/scapy/APKBUILD
+++ b/testing/scapy/APKBUILD
@@ -1,16 +1,17 @@
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver='2.3.1'
-pkgrel=0
+pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL3+"
depends="python"
depends_dev=""
-makedepends=""
-install=""
+makedepends="$depends_dev python-dev"
+install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="https://pypi.python.org/packages/source/s/$pkgname/$pkgname-$pkgver.zip"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -34,6 +35,7 @@ package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
+
md5sums="1527f09562d9c1bafa5e619c7782d5a0 scapy-2.3.1.zip"
sha256sums="c3089764ad4cdd96d56816ac8bed4cea3738ce49d18a1a7ef2906a11927ba28b scapy-2.3.1.zip"
sha512sums="f45b807021abb383f9c2b9aeda709695df4057a0e2ecbaa330e4b1e1455198221edf19c32fcf49cba8e157406a4b80086f2302764311d05a1adc37f341d40aa4 scapy-2.3.1.zip"
diff --git a/testing/scapy/scapy.post-install b/testing/scapy/scapy.post-install
new file mode 100644
index 0000000000..9f2247aabe
--- /dev/null
+++ b/testing/scapy/scapy.post-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo "*" >&2
+echo "* If you want to use scapy to his full potential, please do:" >&2
+echo "* apk add py-crypto py-gnuplot pyx tcpdump sox graphviz graphviz ebtables" >&2
+echo "*" >&2
+
+exit 0
+