aboutsummaryrefslogblamecommitdiffstats
path: root/main/ngrep/APKBUILD
blob: 487c58704a63ba89e03fcc7fc2fe5db1e60dd87f (plain) (tree)
1
2
3
4
5



                                                              
        









                                                                                           
 
                                    





                                     

                       



                                 
                                   

                                                        




                                                  
                                                                                       


                                                              
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=ngrep
pkgver=1.45
pkgrel=1
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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-pcap-includes=/usr/include/pcap \
		|| return 1
	make || return 1
}
package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
}

md5sums="bc8150331601f3b869549c94866b4f1c  ngrep-1.45.tar.bz2"