diff options
Diffstat (limited to 'unmaintained/netsniff-ng/APKBUILD')
-rw-r--r-- | unmaintained/netsniff-ng/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/unmaintained/netsniff-ng/APKBUILD b/unmaintained/netsniff-ng/APKBUILD new file mode 100644 index 0000000000..81fbf5db07 --- /dev/null +++ b/unmaintained/netsniff-ng/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=netsniff-ng +pkgver=0.5.8 +pkgrel=0 +pkgdesc="A network analyzer and networking toolkit" +url="http://netsniff-ng.org/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="bash perl gzip libpcap-dev libnl3-dev zlib-dev ncurses-dev + libnetfilter_conntrack-dev coreutils" +install="" +subpackages="$pkgname-doc" +source="http://www.netsniff-ng.org/pub/netsniff-ng/$pkgname-$pkgver.tar.gz" +_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" + ./configure \ + --prefix=/usr \ + || return 1 + make PREFIX=/usr ETCDIR=/etc || return 1 +} + +package() { + cd "$_builddir" + make PREFIX=/usr ETCDIR=/etc DESTDIR="$pkgdir" install || return 1 +} + +md5sums="5711c99c44a3b573c9f75599f164ecc2 netsniff-ng-0.5.8.tar.gz" +sha256sums="80436a306947e6c541d573c897cf64e1f223b867f571fabe74cea2ab512aa13c netsniff-ng-0.5.8.tar.gz" +sha512sums="fbbd9a48f2f4dc559c10dc3028cbefa881ef72177c993c57fdf09db84c5d7945ded75cec94fe216c6f7db3f2044aa46e7a15bd09b2ab41521416eee1bb464904 netsniff-ng-0.5.8.tar.gz" |