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