xref: /OK3568_Linux_fs/buildroot/package/bandwidthd/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_BANDWIDTHD
2*4882a593Smuzhiyun	bool "bandwidthd"
3*4882a593Smuzhiyun	depends on BR2_USE_MMU # fork()
4*4882a593Smuzhiyun	select BR2_PACKAGE_LIBPNG
5*4882a593Smuzhiyun	select BR2_PACKAGE_LIBPCAP
6*4882a593Smuzhiyun	select BR2_PACKAGE_GD
7*4882a593Smuzhiyun	help
8*4882a593Smuzhiyun	  BandwidthD - Bandwidth monitoring
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun	  Provides a method to measure the bandwidth that travels
11*4882a593Smuzhiyun	  through the machine, grouped by subnet and IP. This
12*4882a593Smuzhiyun	  information can be stored locally in /var/lib/bandwidthd and
13*4882a593Smuzhiyun	  can be configured to generate static HTML pages which can be
14*4882a593Smuzhiyun	  hosted by a web server.
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	  It is highly recommended that the target has some way of
17*4882a593Smuzhiyun	  retaining the time between reboots. (e.g. NTP on boot or an
18*4882a593Smuzhiyun	  RTC)
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	  It is suggested to use sqlite for logfile storage but works
21*4882a593Smuzhiyun	  fine without, and can be completely ignored if the
22*4882a593Smuzhiyun	  postgresql portion is used.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun	  As upstream is no longer actively maintained, a fork is
25*4882a593Smuzhiyun	  available on github that works on making BandwidthD's build
26*4882a593Smuzhiyun	  process more compatible with buildroot's.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	  Upstream:
29*4882a593Smuzhiyun	  http://bandwidthd.sourceforge.net/
30*4882a593Smuzhiyun	  Github fork:
31*4882a593Smuzhiyun	  http://github.com/nroach44/bandwidthd
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunif BR2_PACKAGE_BANDWIDTHD
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunconfig BR2_PACKAGE_BANDWIDTHD_POSTGRESQL
36*4882a593Smuzhiyun	bool "enable postgresql log target support"
37*4882a593Smuzhiyun	depends on !BR2_STATIC_LIBS
38*4882a593Smuzhiyun	depends on BR2_USE_WCHAR # postgresql
39*4882a593Smuzhiyun	select BR2_PACKAGE_POSTGRESQL
40*4882a593Smuzhiyun	help
41*4882a593Smuzhiyun	  Enable support for logging the bandwidthd data to a remote
42*4882a593Smuzhiyun	  (or local) postgresql server. This data can then be viewed
43*4882a593Smuzhiyun	  through a php site. See README in the source code
44*4882a593Smuzhiyun	  (github.com/nroach44/bandwidthd) for more information.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyuncomment "postgresql support needs a toolchain w/ dynamic library, wchar"
47*4882a593Smuzhiyun	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
48*4882a593Smuzhiyun
49*4882a593Smuzhiyunconfig BR2_PACKAGE_BANDWIDTHD_SQLITE3
50*4882a593Smuzhiyun	bool "enable sqlite3 log storage"
51*4882a593Smuzhiyun	select BR2_PACKAGE_SQLITE
52*4882a593Smuzhiyun	help
53*4882a593Smuzhiyun	  Enable support for storing the aggregated data in an sqlite
54*4882a593Smuzhiyun	  db instead of a plain text file.
55*4882a593Smuzhiyun
56*4882a593Smuzhiyunendif
57