2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2012-10-30 10:29:52 +08:00
|
|
|
#
|
|
|
|
# ulogd
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2012-10-30 10:29:52 +08:00
|
|
|
|
2015-06-25 02:39:19 +08:00
|
|
|
ULOGD_VERSION = 2.0.5
|
2012-10-30 10:29:52 +08:00
|
|
|
ULOGD_SOURCE = ulogd-$(ULOGD_VERSION).tar.bz2
|
|
|
|
ULOGD_SITE = http://www.netfilter.org/projects/ulogd/files
|
2014-09-28 03:32:44 +08:00
|
|
|
ULOGD_CONF_OPTS = --with-dbi=no --with-pgsql=no
|
2012-10-30 10:29:52 +08:00
|
|
|
ULOGD_DEPENDENCIES = host-pkgconf \
|
|
|
|
libmnl libnetfilter_acct libnetfilter_conntrack libnetfilter_log \
|
2013-12-26 19:34:42 +08:00
|
|
|
libnfnetlink
|
2012-10-30 10:29:52 +08:00
|
|
|
ULOGD_LICENSE = GPLv2
|
|
|
|
ULOGD_LICENSE_FILES = COPYING
|
|
|
|
|
2013-12-26 19:34:42 +08:00
|
|
|
# DB backends need threads
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
2014-01-22 14:24:35 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
2015-03-31 15:21:57 +08:00
|
|
|
ULOGD_CONF_OPTS += --with-mysql=$(STAGING_DIR)/usr
|
|
|
|
ULOGD_DEPENDENCIES += mysql
|
2014-05-08 00:04:48 +08:00
|
|
|
else
|
2015-03-31 15:21:57 +08:00
|
|
|
ULOGD_CONF_OPTS += --with-mysql=no
|
2013-12-26 19:34:42 +08:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
2015-03-31 15:21:57 +08:00
|
|
|
ULOGD_DEPENDENCIES += sqlite
|
2013-12-26 19:34:42 +08:00
|
|
|
endif
|
2012-12-28 11:05:55 +08:00
|
|
|
else
|
2015-03-31 15:21:57 +08:00
|
|
|
ULOGD_CONF_OPTS += --with-mysql=no --without-sqlite
|
2012-12-28 11:05:55 +08:00
|
|
|
endif
|
|
|
|
|
2016-02-11 04:58:55 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
|
|
|
|
ULOGD_CONF_OPTS += --with-pcap
|
|
|
|
ULOGD_DEPENDENCIES += libpcap
|
|
|
|
else
|
|
|
|
ULOGD_CONF_OPTS += --without-pcap
|
|
|
|
endif
|
|
|
|
|
2016-02-11 04:58:54 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_JANSSON),y)
|
|
|
|
ULOGD_CONF_OPTS += --with-jansson
|
|
|
|
ULOGD_DEPENDENCIES += jansson
|
|
|
|
else
|
|
|
|
ULOGD_CONF_OPTS += --without-jansson
|
|
|
|
endif
|
|
|
|
|
2012-10-30 10:29:52 +08:00
|
|
|
$(eval $(autotools-package))
|