2014-07-31 07:26:59 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# bandwidthd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-19 12:10:29 +02:00
|
|
|
BANDWIDTHD_VERSION = v2.0.1-auto-r11
|
2014-07-31 07:26:59 +02:00
|
|
|
BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,$(BANDWIDTHD_VERSION))
|
|
|
|
|
|
|
|
# Specified as "any version of the GPL that is current as of your
|
|
|
|
# download" by upstream.
|
|
|
|
BANDWIDTHD_LICENSE = GPL
|
|
|
|
|
2014-10-19 12:10:29 +02:00
|
|
|
BANDWIDTHD_DEPENDENCIES = gd libpng libpcap host-pkgconf
|
2014-07-31 07:26:59 +02:00
|
|
|
|
|
|
|
BANDWIDTHD_AUTORECONF = YES
|
|
|
|
|
2014-10-19 12:10:29 +02:00
|
|
|
BANDWIDTHD_CONF_OPTS += --with-pcap-config=$(STAGING_DIR)/usr/bin/pcap-config
|
2014-08-15 02:27:09 +02:00
|
|
|
|
2014-07-31 07:26:59 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y)
|
|
|
|
BANDWIDTHD_DEPENDENCIES += postgresql
|
2014-09-27 21:32:44 +02:00
|
|
|
BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=true
|
2014-07-31 07:26:59 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=false
|
2014-07-31 07:26:59 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y)
|
|
|
|
BANDWIDTHD_DEPENDENCIES += sqlite
|
2014-09-27 21:32:44 +02:00
|
|
|
BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=true
|
2014-07-31 07:26:59 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false
|
2014-07-31 07:26:59 +02:00
|
|
|
endif
|
|
|
|
|
2015-01-11 06:31:34 +01:00
|
|
|
define BANDWIDTHD_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service
|
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
|
|
|
|
ln -sf /usr/lib/systemd/system/bandwidthd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bandwidthd.service
|
|
|
|
endef
|
|
|
|
|
2014-07-31 07:26:59 +02:00
|
|
|
$(eval $(autotools-package))
|