Browse Source

ulogd: conditionalize dependencies

Make most dependencies depend on the selection state of the respective
plugins requiring them. This cuts down compile time considerably when
plugins like MySQL support are disabled.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
lilik-openwrt-22.03
Jo-Philipp Wich 7 years ago
parent
commit
c5fe5cf886
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      net/ulogd/Makefile

+ 10
- 10
net/ulogd/Makefile View File

@ -46,55 +46,55 @@ endef
define Package/ulogd-mod-dbi define Package/ulogd-mod-dbi
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libdbi
DEPENDS:=ulogd +PACKAGE_ulogd-mod-dbi:libdbi
TITLE:=Output plugin for logging to a database using libdbi TITLE:=Output plugin for logging to a database using libdbi
endef endef
define Package/ulogd-mod-json define Package/ulogd-mod-json
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +jansson
DEPENDS:=ulogd +PACKAGE_ulogd-mod-json:jansson
TITLE:=JSON output plugin TITLE:=JSON output plugin
endef endef
define Package/ulogd-mod-mysql define Package/ulogd-mod-mysql
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libmysqlclient
DEPENDS:=ulogd +PACKAGE_ulogd-mod-mysql:libmysqlclient
TITLE:=Output plugin for logging to a MySQL database TITLE:=Output plugin for logging to a MySQL database
endef endef
define Package/ulogd-mod-nfacct define Package/ulogd-mod-nfacct
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libnetfilter-acct
DEPENDS:=ulogd +PACKAGE_ulogd-mod-nfacct:libnetfilter-acct
TITLE:=Input plugin for flow-based logging (accounting) TITLE:=Input plugin for flow-based logging (accounting)
endef endef
define Package/ulogd-mod-nfct define Package/ulogd-mod-nfct
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libnetfilter-conntrack
DEPENDS:=ulogd +PACKAGE_ulogd-mod-nfct:libnetfilter-conntrack
TITLE:=Input plugin for flow-based logging (conntracking) TITLE:=Input plugin for flow-based logging (conntracking)
endef endef
define Package/ulogd-mod-nflog define Package/ulogd-mod-nflog
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libnetfilter-log
DEPENDS:=ulogd +PACKAGE_ulogd-mod-nflog:libnetfilter-log
TITLE:=Input plugin using NFLOG TITLE:=Input plugin using NFLOG
endef endef
define Package/ulogd-mod-pcap define Package/ulogd-mod-pcap
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libpcap
DEPENDS:=ulogd +PACKAGE_ulogd-mod-pcap:libpcap
TITLE:=Output plugin for logging in pcap format TITLE:=Output plugin for logging in pcap format
endef endef
define Package/ulogd-mod-pgsql define Package/ulogd-mod-pgsql
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libpq
DEPENDS:=ulogd +PACKAGE_ulogd-mod-pgsql:libpq
TITLE:=Output plugin for logging to a PostgreSQL database TITLE:=Output plugin for logging to a PostgreSQL database
endef endef
define Package/ulogd-mod-sqlite define Package/ulogd-mod-sqlite
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libsqlite3
DEPENDS:=ulogd +PACKAGE_ulogd-mod-sqlite:libsqlite3
TITLE:=Output plugin for logging to an SQLite database TITLE:=Output plugin for logging to an SQLite database
endef endef
@ -106,7 +106,7 @@ endef
define Package/ulogd-mod-xml define Package/ulogd-mod-xml
$(call Package/ulogd/Default) $(call Package/ulogd/Default)
DEPENDS:=ulogd +libnetfilter-acct +libnetfilter-conntrack +libnetfilter-log
DEPENDS:=ulogd +PACKAGE_ulogd-mod-xml:libnetfilter-acct +PACKAGE_ulogd-mod-xml:libnetfilter-conntrack +PACKAGE_ulogd-mod-xml:libnetfilter-log
TITLE:=XML output plugin TITLE:=XML output plugin
endef endef


Loading…
Cancel
Save