aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngrep
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-12 09:33:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-12 09:33:20 +0000
commit0d58f8c317c9746483e1f1cf9b1fbc76b161076d (patch)
treef93c4f3751c480a6f26d8fb1d3a8e51ef23bb7ae /main/ngrep
parent2afa824ca873539815ad602a77b1da4890f13a55 (diff)
downloadaports-0d58f8c317c9746483e1f1cf9b1fbc76b161076d.tar.bz2
aports-0d58f8c317c9746483e1f1cf9b1fbc76b161076d.tar.xz
main/ngrep: move to main
It appears to work.
Diffstat (limited to 'main/ngrep')
-rw-r--r--main/ngrep/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/ngrep/APKBUILD b/main/ngrep/APKBUILD
new file mode 100644
index 0000000000..67d6253d1e
--- /dev/null
+++ b/main/ngrep/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=ngrep
+pkgver=1.45
+pkgrel=0
+pkgdesc="A grep-like utility that allows you to search for network packets on an interface"
+url="http://ngrep.sourceforge.net/"
+arch="all"
+license="custom"
+depends=
+depends_dev="libpcap-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://downloads.sourceforge.net/sourceforge/ngrep/$pkgname-$pkgver.tar.bz2"
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-pcap-includes=/usr/include/pcap
+ make || return 1
+}
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="bc8150331601f3b869549c94866b4f1c ngrep-1.45.tar.bz2"