mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-11 22:33:29 +08:00
b37ecac8e2
When libpcap was compiled before, ulogd will use it as optional dependency: $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/ulogd/ulogd_output_PCAP.so | grep NEEDED 0x00000001 (NEEDED) Shared library: [libpcap.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# ulogd
|
|
#
|
|
################################################################################
|
|
|
|
ULOGD_VERSION = 2.0.5
|
|
ULOGD_SOURCE = ulogd-$(ULOGD_VERSION).tar.bz2
|
|
ULOGD_SITE = http://www.netfilter.org/projects/ulogd/files
|
|
ULOGD_CONF_OPTS = --with-dbi=no --with-pgsql=no
|
|
ULOGD_DEPENDENCIES = host-pkgconf \
|
|
libmnl libnetfilter_acct libnetfilter_conntrack libnetfilter_log \
|
|
libnfnetlink
|
|
ULOGD_LICENSE = GPLv2
|
|
ULOGD_LICENSE_FILES = COPYING
|
|
|
|
# DB backends need threads
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
ULOGD_CONF_OPTS += --with-mysql=$(STAGING_DIR)/usr
|
|
ULOGD_DEPENDENCIES += mysql
|
|
else
|
|
ULOGD_CONF_OPTS += --with-mysql=no
|
|
endif
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
ULOGD_DEPENDENCIES += sqlite
|
|
endif
|
|
else
|
|
ULOGD_CONF_OPTS += --with-mysql=no --without-sqlite
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
|
ULOGD_CONF_OPTS += --with-pcap
|
|
ULOGD_DEPENDENCIES += libpcap
|
|
else
|
|
ULOGD_CONF_OPTS += --without-pcap
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANSSON),y)
|
|
ULOGD_CONF_OPTS += --with-jansson
|
|
ULOGD_DEPENDENCIES += jansson
|
|
else
|
|
ULOGD_CONF_OPTS += --without-jansson
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|