1################################################################################ 2# 3# bandwidthd 4# 5################################################################################ 6 7BANDWIDTHD_VERSION = 2.0.1-auto-r11 8BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,v$(BANDWIDTHD_VERSION)) 9 10# Specified as "any version of the GPL that is current as of your 11# download" by upstream. 12BANDWIDTHD_LICENSE = GPL 13BANDWIDTHD_LICENSE_FILES = README 14 15BANDWIDTHD_DEPENDENCIES = gd libpng libpcap host-pkgconf 16 17BANDWIDTHD_AUTORECONF = YES 18 19BANDWIDTHD_CONF_OPTS += --with-pcap-config=$(STAGING_DIR)/usr/bin/pcap-config 20 21ifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y) 22BANDWIDTHD_DEPENDENCIES += postgresql 23BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=true 24else 25BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=false 26endif 27 28ifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y) 29BANDWIDTHD_DEPENDENCIES += sqlite 30BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=true 31else 32BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false 33endif 34 35define BANDWIDTHD_INSTALL_INIT_SYSTEMD 36 $(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \ 37 $(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service 38endef 39 40$(eval $(autotools-package)) 41