Romain Naour
eb384c24fd
package/iptraf-ng: really add _GNU_SOURCE in CFLAGS
...
When iptraf-ng is build with musl, it needs _GNU_SOURCE in CFLAGS to define
the content of "struct tcphdr".
iptraf-ng.mk try to add _GNU_SOURCE in CFLAGS but it's not taken into account.
Add it using IPTRAF_NG_CONF_ENV instead of IPTRAF_NG_MAKE_ENV.
Fixes:
http://autobuild.buildroot.net/results/a1b/a1b18f2e3d075d349c19536a7c5553f24b75a323
Signed-off-by: Romain Naour <romain.naour@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-05-28 15:51:00 +02:00
Bernd Kuhls
00680faa00
package/iptraf-ng: Needs -D_GNU_SOURCE to fix musl build
...
Compiling iptraf-ng using musl is broken:
src/ipfrag.c:193:52: error: 'struct tcphdr' has no member named 'source'
ftmp->s_port = ntohs(((struct tcphdr *) tpacket)->source);
Musl guards these fields in the netinet/tcp.h header file with
_GNU_SOURCE, for details see https://dev.openwrt.org/ticket/19889
Patch ported from
http://git.alpinelinux.org/cgit/aports/tree/main/iptraf-ng/APKBUILD#n28
Fixes
http://autobuild.buildroot.net/results/4ce/4cedd4dbaafca76e839f45cc0a4bb8c2c181920d/
http://autobuild.buildroot.net/results/72b/72b019ce5bb52b8b87d92cce675708f7b9f8a96e/
http://autobuild.buildroot.net/results/f67/f67f1c2a627a6d535dd5c00e2ee131b5c5a99a0a/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de >
Tested-by: Jörg Krause <joerg.krause@embedded.rocks >
[Thomas: one assignment only for IPTRAF_NG_CONF_ENV.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2016-05-24 15:00:02 +02:00
Gustavo Zacarias
79ce08bbdc
packages: remove non-IPv6 dependencies and tweaks
...
Now that IPv6 is mandatory remove package dependencies and conditionals
for it.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-04-22 23:06:35 +02:00
Bernd Kuhls
1e846e99ad
package/iptraf-ng: add hash
...
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2015-04-19 23:10:28 +02:00
Jerzy Grzegorek
c7f4b96471
package: remove the trailing slash sign from <PKG>_SITE variable
...
Since the trailing slash is stripped from $($(PKG)_SITE) by pkg-generic.mk:
$(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE))
so it is redundant.
This patch removes it from $(PKG)_SITE variable for BR consistency.
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2014-07-31 23:17:46 +02:00
Peter Korsgaard
bf484e3a2c
iptraf-ng: uses fork(), needs MMU
...
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2014-05-09 15:36:18 +02:00
Ezequiel Garcia
b5ece69cd3
iptraf-ng: new package
...
[Peter: needs IPv6, doesn't need threads. Fix ncurses library handling]
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2014-05-09 13:55:59 +02:00