The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / bandwidthd / bandwidthd.mk
1 ################################################################################
2 #
3 # bandwidthd
4 #
5 ################################################################################
6
7 BANDWIDTHD_VERSION = v2.0.1-auto-r11
8 BANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,$(BANDWIDTHD_VERSION))
9
10 # Specified as "any version of the GPL that is current as of your
11 # download" by upstream.
12 BANDWIDTHD_LICENSE = GPL
13
14 BANDWIDTHD_DEPENDENCIES = gd libpng libpcap host-pkgconf
15
16 BANDWIDTHD_AUTORECONF = YES
17
18 BANDWIDTHD_CONF_OPTS += --with-pcap-config=$(STAGING_DIR)/usr/bin/pcap-config
19
20 ifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y)
21 BANDWIDTHD_DEPENDENCIES += postgresql
22 BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=true
23 else
24 BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=false
25 endif
26
27 ifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y)
28 BANDWIDTHD_DEPENDENCIES += sqlite
29 BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=true
30 else
31 BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false
32 endif
33
34 define BANDWIDTHD_INSTALL_INIT_SYSTEMD
35         $(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \
36                 $(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service
37
38         mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
39
40         ln -sf /usr/lib/systemd/system/bandwidthd.service \
41                 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bandwidthd.service
42 endef
43
44 $(eval $(autotools-package))