aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/cdpsnarf/APKBUILD
blob: a77a43bebad1026a9fd63913777f5cf77dcceaae (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
34
35
36
37
38
39
40
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"