aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cdpsnarf
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-01-05 18:59:40 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-01-05 18:59:40 +0000
commita162da839db0d3f8be94a5c1ad2e2e54e691c38a (patch)
treea4804207079e068ace0261c3c12c3a873fffd917 /testing/cdpsnarf
parent8af0be73acf9d988f6fd06a4f188592c8754b6e1 (diff)
downloadaports-a162da839db0d3f8be94a5c1ad2e2e54e691c38a.tar.bz2
aports-a162da839db0d3f8be94a5c1ad2e2e54e691c38a.tar.xz
testing/cdpsnarf: new aport
Diffstat (limited to 'testing/cdpsnarf')
-rw-r--r--testing/cdpsnarf/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/cdpsnarf/APKBUILD b/testing/cdpsnarf/APKBUILD
new file mode 100644
index 0000000000..a77a43beba
--- /dev/null
+++ b/testing/cdpsnarf/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=cdpsnarf
+pkgver=0.1.6
+pkgrel=0
+pkgdesc="Network sniffer exclusively written to extract information from CDP packets"
+url="https://github.com/Zapotek/cdpsnarf"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends="$depends_dev libpcap-dev"
+install=""
+subpackages=""
+source="$pkgname-$pkgver.zip::https://github.com/Zapotek/$pkgname/archive/v$pkgver.zip"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+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"
+ install -Dm755 cdpsnarf "$pkgdir"/usr/bin/cdpsnarf
+ return 0
+}
+
+md5sums="97061a7d01bcb249c7e8b9e49bdf390e cdpsnarf-0.1.6.zip"
+sha256sums="ff53991d43966e311d256e4cc64e31e4f0c90270bb466bdef020920801e18bd9 cdpsnarf-0.1.6.zip"
+sha512sums="3736c4862c62505c48f26dc01c49a83d792427fadb0291cced7fbef6a2fbb3b3278afb7093f5504dc7fcfd5a01b43df12f23833a73270aeae4200e651292f4de cdpsnarf-0.1.6.zip"