Package Details: netdiscover 0.21-0

Git Clone URL: https://aur.archlinux.org/netdiscover.git (read-only, click to copy)
Package Base: netdiscover
Description: A network address discovering tool
Upstream URL: https://github.com/netdiscover-scanner/netdiscover/
Keywords: network
Licenses: GPL-3.0-only
Provides: netdiscover
Submitter: danitool
Maintainer: wsduvall
Last Packager: wsduvall
Votes: 24
Popularity: 0.24
First Submitted: 2015-09-15 10:29 (UTC)
Last Updated: 2025-08-15 00:06 (UTC)

Latest Comments

1 2 3 Next › Last »

dreieck commented on 2025-08-10 16:08 (UTC)

Yes, it builds well now.

Regards and thanks for maintanance!

wsduvall commented on 2025-08-10 13:01 (UTC)

@dreieck, give it a shot now, I also fixed some useless cat's.

dreieck commented on 2025-08-10 12:02 (UTC) (edited on 2025-08-10 12:02 (UTC) by dreieck)

Ahoj,

thanks!

Now another issue turned out:

==> Starting prepare()...
cat: ../../oui-0.20.txt: No such file or directory
==> ERROR: A failure occurred in prepare().

You should reference it as "${srcdir}/oui-${pkgver}.txt".
diff to the PKGBUILD:

--- PKGBUILD.orig   2025-08-10 14:00:50.653297874 +0200
+++ PKGBUILD    2025-08-10 14:01:50.483296149 +0200
@@ -5,3 +5,3 @@
 pkgver=0.20
-pkgrel=0
+pkgrel=1
 pkgdesc="A network address discovering tool"
@@ -30,3 +30,3 @@

-  cat "../../oui-${pkgver}.txt" | grep "base 16" | tr '\t' ' ' | tr -s " " | sed 's/(base 16) //' |
+  cat "${srcdir}/oui-${pkgver}.txt" | grep "base 16" | tr '\t' ' ' | tr -s " " | sed 's/(base 16) //' |
     grep '[0-9A-F]' | sort | sed 's/ /", "/' | sed 's/^/    { "/' |

Actually, build now succeeds for me (with that fix).

Regards!

wsduvall commented on 2025-08-09 20:51 (UTC) (edited on 2025-08-09 21:41 (UTC) by wsduvall)

@dreieck, when I updated it I pushed it to my old private repo instead of the AUR repo, sorry about that. That said, I think the oui.txt presents a fairly large reproducibility problem. I'm open to suggestions, maybe I'll look at what the NixOS flake does. If the license allows I could just include the generated oui.h file in the AUR repository.

dreieck commented on 2025-08-09 20:04 (UTC)

Build now fails for me with

In file included from misc.c:35:
oui.h:14:17: error: missing terminating " character
   14 |     { "000000", "XEROX CORPORATION
      |                 ^~~~~~~~~~~~~~~~~~
oui.h:15:1: error: missing terminating " character
   15 | " },
      | ^~~~
oui.h:16:17: error: missing terminating " character
   16 |     { "000001", "XEROX CORPORATION
      |                 ^~~~~~~~~~~~~~~~~~
[...]
[ -- maaaaaaaaaany similar errors -- ]
[...]
oui.h:75722:17: error: missing terminating " character
75722 |     { "FCFEC2", "Invensys Controls UK Limited
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
oui.h:75723:1: error: missing terminating " character
75723 | " },
      | ^~~~
oui.h:75724:17: error: missing terminating " character
75724 |     { "FCFFAA", "IEEE Registration Authority
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
oui.h:75725:1: error: missing terminating " character
75725 | " },
      | ^~~~
oui.h:75727:2: error: expected ‘}’ before ‘;’ token
75727 | };
      |  ^
oui.h:75722:5: note: to match this ‘{’
75722 |     { "FCFEC2", "Invensys Controls UK Limited
      |     ^
make[2]: *** [Makefile:465: netdiscover-misc.o] Error 1
make[2]: Leaving directory '/var/cache/makepkg/build/netdiscover/src/netdiscover-0.20/src'
make[1]: *** [Makefile:447: all-recursive] Error 1
make[1]: Leaving directory '/var/cache/makepkg/build/netdiscover/src/netdiscover-0.20'
make: *** [Makefile:345: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Regards!

dreieck commented on 2025-08-09 20:02 (UTC)

But still downloads oui.txt in build() and not before ...

wsduvall commented on 2025-07-19 22:32 (UTC)

dreieck, thanks, I pushed a fix. I didn't bump the pkgrel version since the created package is identical.

dreieck commented on 2025-07-19 14:15 (UTC)

This package downloads stuff in build(). This should not happen.

Please try to make that download included in the source array (and give it a unique filename, e.g. netdiscover-oui-${pkgver}.txt for when $SRCDEST is used), and if not feasible then do that download in prepare(), so that build() can run in an offline environment.

Regards and thanks for the package!

==> Starting build()...
Downloading oui.txt from https://standards-oui.ieee.org
Downloader to be used: curl

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6012k  100 6012k    0     0   463k      0  0:00:12  0:00:12 --:--:--  608k
[...]