Skip to content

Commit

Permalink
merge sqldb branch, vnStat 2.0 on master begins here
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Mar 4, 2018
2 parents 8c9d003 + f254160 commit bb24d7b
Show file tree
Hide file tree
Showing 61 changed files with 7,141 additions and 6,329 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ matrix:
addons:
apt:
packages:
- libsqlite3-0
- libsqlite3-dev
- libgd3
- libgd-dev
- check

before_install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install gd check ; fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install gd sqlite check ; fi

script:
- CFLAGS='-Wall -Wextra -g' ./configure && make check || ( cat test.log ; exit 1 ) && egrep '^[0-9]+%' test.log && ./vnstat --version
Expand Down
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.0 / <not released yet>

- database format and many other changes, to be listed and documented


1.18 / 4-Mar-2018

- Fix: Misspellings, compiler warnings and possible error situations
Expand Down
6 changes: 3 additions & 3 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Compiling the binaries
Installing as root
::::::::::::::::::

Login as root and run the following command:
Log in as root and run the following command:

make install

Expand Down Expand Up @@ -116,8 +116,8 @@ Installing without root access

vnstat --version

If this gives an 'command not found' error or a different than expected
version then check then content of the PATH variable and try again.
If this gives a 'command not found' error or a different than expected
version then check the content of the PATH variable and try again.

Next open the configuration file ~/.vnstatrc with your favorite text editor
and locate the following line:
Expand Down
31 changes: 21 additions & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ vnstati_LDADD = $(IMAGELIBS)

vnstat_SOURCES = src/vnstat.c src/vnstat.h \
src/ifinfo.c src/ifinfo.h \
src/dbsql.c src/dbsql.h \
src/dbxml.c src/dbxml.h \
src/dbjson.c src/dbjson.h \
src/dbshow.c src/dbshow.h \
src/dbaccess.c src/dbaccess.h \
src/dbmerge.c src/dbmerge.h \
src/common.c src/common.h \
src/misc.c src/misc.h \
src/cfg.c src/cfg.h \
Expand All @@ -28,8 +27,9 @@ vnstat_SOURCES = src/vnstat.c src/vnstat.h \

vnstatd_SOURCES = src/vnstatd.c src/vnstatd.h \
src/ifinfo.c src/ifinfo.h \
src/dbsql.c src/dbsql.h \
src/dbaccess.c src/dbaccess.h \
src/dbcache.c src/dbcache.h \
src/datacache.c src/datacache.h \
src/common.c src/common.h \
src/misc.c src/misc.h \
src/cfg.c src/cfg.h \
Expand All @@ -40,8 +40,7 @@ vnstatd_SOURCES = src/vnstatd.c src/vnstatd.h \

vnstati_SOURCES = src/vnstati.c src/vnstati.h \
src/image.c src/image.h \
src/dbaccess.c src/dbaccess.h \
src/dbmerge.c src/dbmerge.h \
src/dbsql.c src/dbsql.h \
src/common.c src/common.h \
src/misc.c src/misc.h \
src/fs.c src/fs.h \
Expand All @@ -55,12 +54,15 @@ check_vnstat_CFLAGS = @CHECK_CFLAGS@ \
-DPROCNETDEV=\"testdir/proc/dev\" \
-DSYSCLASSNET=\"testdir/sysclassnet\" \
-DCFGFILE=\"$(top_srcdir)/cfg/vnstat.conf\" \
-DCHECK_VNSTAT \
-I$(top_srcdir)/src
check_vnstat_LDADD = @CHECK_LIBS@

check_vnstat_SOURCES = tests/vnstat_tests.c tests/vnstat_tests.h \
tests/common_tests.c tests/common_tests.h \
tests/database_tests.c tests/database_tests.h \
tests/dbsql_tests.c tests/dbsql_tests.h \
tests/datacache_tests.c tests/datacache_tests.h \
tests/config_tests.c tests/config_tests.h \
tests/ifinfo_tests.c tests/ifinfo_tests.h \
tests/misc_tests.c tests/misc_tests.h \
Expand All @@ -71,18 +73,24 @@ check_vnstat_SOURCES = tests/vnstat_tests.c tests/vnstat_tests.h \
check_vnstat_SOURCES += src/cfg.c src/cfg.h \
src/common.c src/common.h \
src/daemon.c src/daemon.h \
src/dbsql.c src/dbsql.h \
src/dbaccess.c src/dbaccess.h \
src/dbcache.c src/dbcache.h \
src/dbjson.c src/dbjson.h \
src/dbmerge.c src/dbmerge.h \
src/datacache.c src/datacache.h \
src/dbshow.c src/dbshow.h \
src/dbjson.c src/dbjson.h \
src/dbxml.c src/dbxml.h \
src/ibw.c src/ibw.h \
src/ifinfo.c src/ifinfo.h \
src/misc.c src/misc.h \
src/fs.c src/fs.h \
src/id.c src/id.h \
src/traffic.c src/traffic.h
src/id.c src/id.h

if HAVE_LIBGD
check_vnstat_CFLAGS += -DHAVE_IMAGE
check_vnstat_LDADD += $(IMAGELIBS)
check_vnstat_SOURCES += tests/image_tests.c tests/image_tests.h \
src/image.c src/image.h
endif
endif

setdebug:
Expand Down Expand Up @@ -143,3 +151,6 @@ uninstall-hook:

clean-local:
-rm -fr coverage *.lcov *.gz test*.log test*.xml src/*.gc* tests/*.gc* *.old *.new

check-local:
-tail -n 2 test.log

0 comments on commit bb24d7b

Please sign in to comment.