xref: /OK3568_Linux_fs/buildroot/package/bandwidthd/bandwidthd.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# bandwidthd
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBANDWIDTHD_VERSION = 2.0.1-auto-r11
8*4882a593SmuzhiyunBANDWIDTHD_SITE = $(call github,nroach44,bandwidthd,v$(BANDWIDTHD_VERSION))
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun# Specified as "any version of the GPL that is current as of your
11*4882a593Smuzhiyun# download" by upstream.
12*4882a593SmuzhiyunBANDWIDTHD_LICENSE = GPL
13*4882a593SmuzhiyunBANDWIDTHD_LICENSE_FILES = README
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunBANDWIDTHD_DEPENDENCIES = gd libpng libpcap host-pkgconf
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunBANDWIDTHD_AUTORECONF = YES
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunBANDWIDTHD_CONF_OPTS += --with-pcap-config=$(STAGING_DIR)/usr/bin/pcap-config
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y)
22*4882a593SmuzhiyunBANDWIDTHD_DEPENDENCIES += postgresql
23*4882a593SmuzhiyunBANDWIDTHD_CONF_OPTS += --with-postgresql-logging=true
24*4882a593Smuzhiyunelse
25*4882a593SmuzhiyunBANDWIDTHD_CONF_OPTS += --with-postgresql-logging=false
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y)
29*4882a593SmuzhiyunBANDWIDTHD_DEPENDENCIES += sqlite
30*4882a593SmuzhiyunBANDWIDTHD_CONF_OPTS += --with-sqlite-storage=true
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunBANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false
33*4882a593Smuzhiyunendif
34*4882a593Smuzhiyun
35*4882a593Smuzhiyundefine BANDWIDTHD_INSTALL_INIT_SYSTEMD
36*4882a593Smuzhiyun	$(INSTALL) -D -m 644 package/bandwidthd/bandwidthd.service \
37*4882a593Smuzhiyun		$(TARGET_DIR)/usr/lib/systemd/system/bandwidthd.service
38*4882a593Smuzhiyunendef
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun$(eval $(autotools-package))
41