Move all to deprecated folder.
This commit is contained in:
53
deprecated/firmware/buildroot/package/bandwidthd/Config.in
Normal file
53
deprecated/firmware/buildroot/package/bandwidthd/Config.in
Normal file
@@ -0,0 +1,53 @@
|
||||
config BR2_PACKAGE_BANDWIDTHD
|
||||
bool "bandwidthd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_GD
|
||||
help
|
||||
BandwidthD - Bandwidth monitoring
|
||||
|
||||
Provides a method to measure the bandwidth that travels
|
||||
through the machine, grouped by subnet and IP. This
|
||||
information can be stored locally in /var/lib/bandwidthd and
|
||||
can be configured to generate static HTML pages which can be
|
||||
hosted by a web server.
|
||||
|
||||
It is highly recommended that the target has some way of
|
||||
retaining the time between reboots. (e.g. NTP on boot or an
|
||||
RTC)
|
||||
|
||||
It is suggested to use sqlite for logfile storage but works
|
||||
fine without, and can be completely ignored if the
|
||||
postgresql portion is used.
|
||||
|
||||
As upstream is no longer actively maintained, a fork is
|
||||
available on github that works on making BandwidthD's build
|
||||
process more compatible with buildroot's.
|
||||
|
||||
Upstream: http://bandwidthd.sourceforge.net/
|
||||
Github fork: http://github.com/nroach44/bandwidthd
|
||||
|
||||
if BR2_PACKAGE_BANDWIDTHD
|
||||
|
||||
config BR2_PACKAGE_BANDWIDTHD_POSTGRESQL
|
||||
bool "enable postgresql log target support"
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Enable support for logging the bandwidthd data to a remote
|
||||
(or local) postgresql server. This data can then be viewed
|
||||
through a php site. See README in the source code
|
||||
(github.com/nroach44/bandwidthd) for more information.
|
||||
|
||||
comment "postgresql support needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_BANDWIDTHD_SQLITE3
|
||||
bool "enable sqlite3 log storage"
|
||||
select BR2_PACKAGE_SQLITE
|
||||
help
|
||||
Enable support for storing the aggregated data in an sqlite
|
||||
db instead of a plain text file.
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,44 @@
|
||||
################################################################################
|
||||
#
|
||||
# bandwidthd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BANDWIDTHD_VERSION = v2.0.1-auto-r11
|
||||
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
|
||||
|
||||
BANDWIDTHD_DEPENDENCIES = gd libpng libpcap host-pkgconf
|
||||
|
||||
BANDWIDTHD_AUTORECONF = YES
|
||||
|
||||
BANDWIDTHD_CONF_OPTS += --with-pcap-config=$(STAGING_DIR)/usr/bin/pcap-config
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BANDWIDTHD_POSTGRESQL),y)
|
||||
BANDWIDTHD_DEPENDENCIES += postgresql
|
||||
BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=true
|
||||
else
|
||||
BANDWIDTHD_CONF_OPTS += --with-postgresql-logging=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BANDWIDTHD_SQLITE3),y)
|
||||
BANDWIDTHD_DEPENDENCIES += sqlite
|
||||
BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=true
|
||||
else
|
||||
BANDWIDTHD_CONF_OPTS += --with-sqlite-storage=false
|
||||
endif
|
||||
|
||||
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
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Bandwidth usage monitor and reporter
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/bandwidthd
|
||||
PIDFile=/var/run/bandwidthd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user