mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From aafa3512b7b742f5e66a5543e41974cc5e7eebfa Mon Sep 17 00:00:00 2001
|
||||
From: maxice8 <thinkabit.ukim@gmail.com>
|
||||
Date: Sun, 22 Jul 2018 18:54:17 -0300
|
||||
Subject: [PATCH] pcap-usb-linux.c: add missing limits.h for musl systems.
|
||||
|
||||
fix compilation on musl libc systems like Void Linux and Alpine.
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/the-tcpdump-group/libpcap/commit/aafa3512b7b742f5e66a5543e41974cc5e7eebfa]
|
||||
---
|
||||
pcap-usb-linux.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
|
||||
index 6f8adf65e..b92c05ea1 100644
|
||||
--- a/pcap-usb-linux.c
|
||||
+++ b/pcap-usb-linux.c
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
+#include <limits.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
#include <byteswap.h>
|
||||
9
package/libpcap/Config.in
Normal file
9
package/libpcap/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_LIBPCAP
|
||||
bool "libpcap"
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS_HEADERS if BR2_PACKAGE_BLUEZ5_UTILS
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
A system-independent library for user-level network packet
|
||||
capture.
|
||||
|
||||
http://www.tcpdump.org/
|
||||
5
package/libpcap/libpcap.hash
Normal file
5
package/libpcap/libpcap.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019 libpcap-1.9.0.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 8a54594d257e14a5260ac770f1633516cb51e3fc28c40136ce2697014eda7afd LICENSE
|
||||
48
package/libpcap/libpcap.mk
Normal file
48
package/libpcap/libpcap.mk
Normal file
@@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# libpcap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBPCAP_VERSION = 1.9.0
|
||||
LIBPCAP_SITE = http://www.tcpdump.org/release
|
||||
LIBPCAP_LICENSE = BSD-3-Clause
|
||||
LIBPCAP_LICENSE_FILES = LICENSE
|
||||
LIBPCAP_INSTALL_STAGING = YES
|
||||
LIBPCAP_DEPENDENCIES = zlib host-flex host-bison
|
||||
|
||||
LIBPCAP_CONF_ENV = \
|
||||
ac_cv_header_linux_wireless_h=yes \
|
||||
CFLAGS="$(LIBPCAP_CFLAGS)"
|
||||
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
||||
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux --without-dag
|
||||
# Disable dbus to break recursive dependencies
|
||||
LIBPCAP_CONF_OPTS += --disable-dbus
|
||||
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
||||
|
||||
# Omit -rpath from pcap-config output
|
||||
define LIBPCAP_CONFIG_REMOVE_RPATH
|
||||
$(SED) 's/^V_RPATH_OPT=.*/V_RPATH_OPT=""/g' $(@D)/pcap-config
|
||||
endef
|
||||
LIBPCAP_POST_BUILD_HOOKS = LIBPCAP_CONFIG_REMOVE_RPATH
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
|
||||
LIBPCAP_DEPENDENCIES += bluez5_utils-headers
|
||||
else
|
||||
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
||||
LIBPCAP_DEPENDENCIES += libnl
|
||||
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
||||
LIBPCAP_CONF_OPTS += --with-libnl=$(STAGING_DIR)/usr
|
||||
else
|
||||
LIBPCAP_CONF_OPTS += --without-libnl
|
||||
endif
|
||||
|
||||
# microblaze/sparc/sparc64 need -fPIC instead of -fpic
|
||||
ifeq ($(BR2_microblaze)$(BR2_sparc)$(BR2_sparc64),y)
|
||||
LIBPCAP_CFLAGS += -fPIC
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user