Package Details: netsniff-ng 0.6.1-1

Git Clone URL: https://aur.archlinux.org/netsniff-ng.git (read-only)
Package Base: netsniff-ng
Description: A high performance Linux network sniffer for packet inspection.
Upstream URL: http://netsniff-ng.org/
Licenses: GPL2
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 8
Popularity: 0.000426
First Submitted: 2010-04-09 16:06
Last Updated: 2016-03-23 06:45

Latest Comments

rudy.matela commented on 2016-10-10 11:28

Hello dcelasun,

I was the maintainer for libcli AUR package for a few years now. I do not intend to maintain it anymore. Since your netsniff-ng package depends on it, being the only one that does so on AUR, I have transfered libcli's ownership to you (sorry for not asking beforehand). If you do not wish to maintain it, feel free to disown.

dcelasun commented on 2015-11-17 13:01

0.6.0-2 uses libsodium instead of libnacl (which nobody ported to AUR4), so curvetun is now enabled.

dcelasun commented on 2015-08-12 03:26

@Thermi: OK, I'll try to find some time this weekend to see if I can build with mausezahn.

Thermi commented on 2015-08-12 01:05

Hello,

It would be quite nice to build mausezahn in the package, too, because
the PKGBUILD for it wasn't ported to the AUR 4.0 and development is done in netsniff-ng since the death of the developer 4 years ago.

dcelasun commented on 2015-06-02 06:33

Hey guys, apologies for the delays. I'll update the package on aur4 in a few days when I get back home.

eniac commented on 2015-06-02 05:47

Thanks dtzWill, I'm still a noob :) I was able to compile netsniff-ng and libcli using your PKGBUILDs.

dtzWill commented on 2015-05-31 19:02

To be clear, it seems libcli doesn't build as of late but that's not a problem with netsniff-ng itself.

FWIW, libcli issues should be reported on the libcli page:

https://aur.archlinux.org/packages/libcli/

I reproduced the issue you ran into, enciac, and posted a PKGBUILD there that addresses it. Take a look and report back on that page if you would :).

eniac commented on 2015-05-28 14:54

Same problem here. Using dtzWill's pkgbuild worked (without mausezahn) but then installation aborted because libcli compilation failed (clitest.c:75:45: error: ISO C does not support ‘__FUNCTION__’ predefined identifier).

dtzWill commented on 2015-05-27 19:42

I had the same issues with "permission denied" on /etc path, as well a problem with the installation attempting to put files into /sbin.

I also changed the 'make' rule to only build the components we plan on installing--don't build mausezahn if not going to install it.

Here's the PKGBUILD I ended up using, hope this helps:

# Maintainer: Can Celasun <dcelasun[at]gmail[dot]com>
pkgname=netsniff-ng
pkgver=0.5.9
_pkgver=${pkgver}
pkgrel=1
pkgdesc='A high performance Linux network sniffer for packet inspection (without curvetun tool).'
arch=('i686' 'x86_64')
url='http://netsniff-ng.org/'
license=('GPL2')
md5sums=('f62d7d9f1567c8ef80e2650428baee9d')
makedepends=('cmake' 'flex' 'bison')
depends=('ncurses' 'geoip' 'zlib' 'libnetfilter_conntrack' 'libpcap' 'liburcu' 'libnl' 'libcli' 'libnet')
optdepends=('libnacl: Needed for curvetun')
source=(http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-${_pkgver}.tar.gz)

build() {
cd "${srcdir}"/${pkgname}-${_pkgver}
./configure
make DISTRO=1 allbutmausezahn
}

package() {
cd "${srcdir}"/${pkgname}-${_pkgver}
make PREFIX="/usr" DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install_allbutmausezahn
}

dcelasun commented on 2015-02-13 06:00

Please don't use the out-of-date flag for a feature request.

In the past I've tried to build this with libnacl support, but getting nacl to compile was a massive pain so I left it out. Now that libsodium is in the official repositories, maybe we can change that.

I'll take a look and if it sounds feasible, update the package.

mmlb commented on 2015-02-13 05:22

can you enable flowtop building by using libsodium. netsniff-ng mentions that libsodium can be used as a replacement for libnacl, considering libsodium is api compatible with libnacl. All that you would have to do is override some shell variables when calling configure, like so:

NACL_INC_DIR=/usr/include/sodium NACL_LIB=sodium ./configure

dcelasun commented on 2014-06-21 14:39

OK let me debug some more and get back to you.

999cgm commented on 2014-06-21 14:26

no, I am on x86_64 . I even tried ssh build@arch then makepkg (instead of su - build from root). Not sure why you are not seeing errors. My arch is up2date

dcelasun commented on 2014-06-21 09:34

That's really weird, I can't reproduce it at all. Is this by any chance on i686?

999cgm commented on 2014-06-21 09:31

dcelasun: yes I am using makepkg (from a regular user not root ):

package() {
cd "$srcdir/${_gitname}"
#make DESTDIR="$pkgdir" PREFIX=/usr install_allbutmausezahn
make PREFIX="$pkgdir" install_allbutmausezahn
}

build@arch$ makepkg
... (compile)
CC staging/mausezahn.c
LD mausezahn
STRIP mausezahn
==> Entering fakeroot environment...
==> Starting package()...
INST netsniff-ng/netsniff-ng
INST netsniff-ng/netsniff-ng.8.gz
INST ether.conf
INST tcp.conf
INST udp.conf
INST oui.conf
INST geoip.conf
INST trafgen/trafgen
INST trafgen/trafgen.8.gz
INST trafgen_stddef.h
install: cannot create regular file '/etc/netsniff-ng/trafgen_stddef.h': Permission denied
Makefile:167: recipe for target 'trafgen_do_install' failed
make: *** [trafgen_do_install] Error 1
==> ERROR: A failure occurred in package().
Aborting...

[build@arch netsniff-ng-git]$

dcelasun commented on 2014-06-19 16:55

I can't reproduce it and that error seems to be unrelated to the make install line. Are you building it with makepkg, i.e without an AUR helper?

999cgm commented on 2014-06-19 16:43

install line needs to be ajusted or we get this errors
install: cannot change permissions of '/etc/netsniff-ng': No such file or directory

make PREFIX="$pkgdir" install_allbutmausezahn

dcelasun commented on 2014-01-07 17:04

I've add all deps (except libnacl) mentioned by @kang below. libnacl is required for the curvetun tool, but:

- It's difficult to get it to compile,
- It takes ages,
- Not everyone needs/uses curvetun.

kang commented on 2012-11-05 23:32

Missing deps:
- cmake
- libnetfilter_conntrack
- libncurses
- geoip database
- liburcu
- libnacl

maybe others - else all tools wont be built/installed

kang commented on 2012-11-05 23:23

Missing compile dep: cmake

dcelasun commented on 2012-07-01 07:57

Updated to 0.5.7

n17ikh commented on 2012-04-11 14:10

Looks like the package doesn't build:

==> Starting build()...
/home/peter/build/netsniff-ng/PKGBUILD: line 14: cd: /home/peter/build/netsniff-ng/src/netsniff-ng/src: No such file or directory
==> ERROR: A failure occurred in build().

The directory doesn't exist. Additionally, if the PKGBUILD is corrected to make it cd to the right directory, it still won't work, since it uses cmake now instead of regular make.

Also, it looks like it might be broken anyway - editing the PKGBUILD to do all the right steps in making the build directory and running cmake, I still run into trouble on the "make install" in a few places. I'll keep working on it though.

dcelasun commented on 2012-04-06 17:02

Updated to 0.5.6.

n17ikh commented on 2011-12-15 21:43

The md5sum of netsniff-ng-0.5.5.0.tar.gz doesn't match the one in the PKGBUILD.

==> Validating source files with md5sums...
netsniff-ng-0.5.5.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

% md5sum netsniff-ng-0.5.5.0.tar.gz
bd303bdeb7244bb1e4e966b94f7671c4 netsniff-ng-0.5.5.0.tar.gz

This matches the MD5SUMS file available from netsniff-ng.org.

Anonymous comment on 2011-09-12 13:29

checksum error

dcelasun commented on 2010-10-19 19:48

Sorry, I just bumped the pkgver without any testing. Upstream really should stop making so many directory/vcs/etc changes. It doesn't add anything to the software itself, yet it really annoys package maintainers.

dcelasun commented on 2010-10-19 19:48

Sorry, I just bumped the pkgver without any testing. Upstream really should stop making so many directory/vcs/etc changes.

kfgz commented on 2010-10-19 19:37

Small patch:

-cd $srcdir/${pkgname}_${pkgver}/src
+cd $srcdir/${pkgname}/src

kfgz commented on 2010-10-19 19:36

Small patch:

-cd $srcdir/${pkgname}_${pkgver}/src
+cd $srcdir/${pkgname}/src

dcelasun commented on 2010-10-19 19:30

Upstream update to 0.5.5.0.