Skip to content

Commit

Permalink
move wiseService to toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed Jan 9, 2019
1 parent 8c7feaf commit f104d49
Show file tree
Hide file tree
Showing 35 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBDIRS = . capture db viewer parliament release tests
SUBDIRS = . capture db viewer parliament wiseService release tests
install-exec-local:
npm ci
cp -pr notifiers @prefix@
Expand Down
7 changes: 5 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
$(top_srcdir)/capture/plugins/snf/Makefile.in \
$(top_srcdir)/configure $(top_srcdir)/db/Makefile.in \
$(top_srcdir)/parliament/Makefile.in \
$(top_srcdir)/wiseService/Makefile.in \
$(top_srcdir)/release/Makefile.in \
$(top_srcdir)/tests/plugins/Makefile.in \
$(top_srcdir)/viewer/Makefile.in \
Expand All @@ -63,7 +64,7 @@ CONFIG_CLEAN_FILES = capture/Makefile capture/plugins/Makefile \
capture/plugins/snf/Makefile capture/plugins/lua/Makefile \
capture/parsers/Makefile db/Makefile tests/plugins/Makefile \
viewer/Makefile viewer/version.js parliament/Makefile \
release/Makefile
wiseService/Makefile release/Makefile
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
Expand Down Expand Up @@ -234,7 +235,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = . capture db viewer parliament release tests
SUBDIRS = . capture db viewer parliament wiseService release tests
all: all-recursive

.SUFFIXES:
Expand Down Expand Up @@ -313,6 +314,8 @@ viewer/version.js: $(top_builddir)/config.status $(top_srcdir)/viewer/version.js
cd $(top_builddir) && $(SHELL) ./config.status $@
parliament/Makefile: $(top_builddir)/config.status $(top_srcdir)/parliament/Makefile.in
cd $(top_builddir) && $(SHELL) ./config.status $@
wiseService/Makefile: $(top_builddir)/config.status $(top_srcdir)/wiseService/Makefile.in
cd $(top_builddir) && $(SHELL) ./config.status $@
release/Makefile: $(top_builddir)/config.status $(top_srcdir)/release/Makefile.in
cd $(top_builddir) && $(SHELL) ./config.status $@

Expand Down
5 changes: 0 additions & 5 deletions capture/plugins/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ install_sh = @install_sh@
mkdir_p = @mkdir_p@
INSTALL = @INSTALL@
PLUGINDIR = @prefix@/plugins
WISEDIR = @prefix@/wiseService
BINDIR = @prefix@/bin

SRCS=$(wildcard *.c)
Expand All @@ -19,15 +18,11 @@ SOS=$(SRCS:.c=.so)
all:$(SOS)

check:
(cd wiseService ; npm install --production)

install:
$(INSTALL) taggerUpload.pl $(BINDIR)
@mkdir -p "$(PLUGINDIR)"
$(INSTALL) *.so *.jade *.js $(PLUGINDIR)
@mkdir -p "$(WISEDIR)"
$(INSTALL) wiseService/*.js wiseService/wiseService.ini.sample wiseService/package.json $(WISEDIR)
(cd $(WISEDIR) ; npm install --production)
@mkdir -p "$(PLUGINDIR)/writer-s3"
$(INSTALL) writer-s3/*.js writer-s3/package.json $(PLUGINDIR)/writer-s3
(cd $(PLUGINDIR)/writer-s3 ; npm install --production)
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -4889,7 +4889,7 @@ fi
done
ac_config_files="$ac_config_files Makefile capture/Makefile capture/plugins/Makefile capture/plugins/daq/Makefile capture/plugins/pfring/Makefile capture/plugins/snf/Makefile capture/plugins/lua/Makefile capture/parsers/Makefile db/Makefile tests/plugins/Makefile viewer/Makefile viewer/version.js parliament/Makefile release/Makefile"
ac_config_files="$ac_config_files Makefile capture/Makefile capture/plugins/Makefile capture/plugins/daq/Makefile capture/plugins/pfring/Makefile capture/plugins/snf/Makefile capture/plugins/lua/Makefile capture/parsers/Makefile db/Makefile tests/plugins/Makefile viewer/Makefile viewer/version.js parliament/Makefile release/Makefile wiseService/Makefile"
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ AC_CONFIG_FILES([
viewer/version.js
parliament/Makefile
release/Makefile
wiseService/Makefile
])

AC_CHECK_LIB(pcre, main,,AC_MSG_ERROR(please install PCRE library))
Expand Down
8 changes: 4 additions & 4 deletions tests/tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ sub doViewer {
$main::userAgent->post("http://localhost:8123/flushCache");
print ("Starting viewer\n");
if ($main::debug) {
system("cd ../capture/plugins/wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /tmp/moloch.wise &");
system("cd ../wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /tmp/moloch.wise &");
system("cd ../viewer ; node --trace-warnings multies.js -c ../tests/config.test.ini -n all --debug > /tmp/multies.all &");
system("cd ../viewer ; node --trace-warnings viewer.js -c ../tests/config.test.ini -n test --debug > /tmp/moloch.test &");
system("cd ../viewer ; node --trace-warnings viewer.js -c ../tests/config.test.ini -n test2 --debug > /tmp/moloch.test2 &");
system("cd ../viewer ; node --trace-warnings viewer.js -c ../tests/config.test.ini -n all --debug > /tmp/moloch.all &");
system("cd ../parliament ; node --trace-warnings parliament.js --regressionTests -c /dev/null --debug > /tmp/moloch.parliament 2>&1 &");
} else {
system("cd ../capture/plugins/wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /dev/null &");
system("cd ../wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /dev/null &");
system("cd ../viewer ; node multies.js -c ../tests/config.test.ini -n all > /dev/null &");
system("cd ../viewer ; node viewer.js -c ../tests/config.test.ini -n test > /dev/null &");
system("cd ../viewer ; node viewer.js -c ../tests/config.test.ini -n test2 > /dev/null &");
Expand Down Expand Up @@ -263,9 +263,9 @@ sub doViewer {

# Start Wise
if ($main::debug) {
system("cd ../capture/plugins/wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /tmp/moloch.wise &");
system("cd ../wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /tmp/moloch.wise &");
} else {
system("cd ../capture/plugins/wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /dev/null &");
system("cd ../wiseService ; node wiseService.js -c ../../../tests/config.test.ini > /dev/null &");
}

waitFor($MolochTest::host, 8081);
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions wiseService/Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
install_sh = @install_sh@
mkdir_p = @mkdir_p@
INSTALL = @INSTALL@
PLUGINDIR = @prefix@/plugins
WISEDIR = @prefix@/wiseService
BINDIR = @prefix@/bin

check:
npm install --production

install:
@mkdir -p "$(WISEDIR)"
$(INSTALL) *.js wiseService.ini.sample package.json $(WISEDIR)
(cd $(WISEDIR) ; npm install --production)

distclean realclean clean:
rm -f *.o *.so
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f104d49

Please sign in to comment.