]> git.stg.codes - stg.git/commitdiff
Reorganize plugins.
authorMaksym Mamontov <madf@madf.info>
Sun, 19 Jan 2020 10:11:47 +0000 (12:11 +0200)
committerMaksym Mamontov <madf@madf.info>
Sun, 19 Jan 2020 10:11:47 +0000 (12:11 +0200)
44 files changed:
stargazer/plugins/CMakeLists.txt
stargazer/plugins/Makefile [deleted file]
stargazer/plugins/Makefile.in [deleted file]
stargazer/plugins/authorization/CMakeLists.txt [deleted file]
stargazer/plugins/authorization/ao/CMakeLists.txt [deleted file]
stargazer/plugins/authorization/ao/Makefile [deleted file]
stargazer/plugins/authorization/inetaccess/CMakeLists.txt [deleted file]
stargazer/plugins/authorization/inetaccess/Makefile [deleted file]
stargazer/plugins/capture/CMakeLists.txt [deleted file]
stargazer/plugins/capture/cap_nf/CMakeLists.txt [deleted file]
stargazer/plugins/capture/cap_nf/Makefile [deleted file]
stargazer/plugins/capture/divert_freebsd/CMakeLists.txt [deleted file]
stargazer/plugins/capture/divert_freebsd/Makefile [deleted file]
stargazer/plugins/capture/ether_freebsd/CMakeLists.txt [deleted file]
stargazer/plugins/capture/ether_freebsd/Makefile [deleted file]
stargazer/plugins/capture/ether_linux/CMakeLists.txt [deleted file]
stargazer/plugins/capture/ether_linux/Makefile [deleted file]
stargazer/plugins/capture/nfqueue/CMakeLists.txt [deleted file]
stargazer/plugins/capture/nfqueue/Makefile [deleted file]
stargazer/plugins/capture/pcap/CMakeLists.txt [deleted file]
stargazer/plugins/capture/pcap/Makefile [deleted file]
stargazer/plugins/configuration/CMakeLists.txt [deleted file]
stargazer/plugins/configuration/rpcconfig/CMakeLists.txt [deleted file]
stargazer/plugins/configuration/rpcconfig/Makefile [deleted file]
stargazer/plugins/configuration/sgconfig/CMakeLists.txt [deleted file]
stargazer/plugins/configuration/sgconfig/Makefile [deleted file]
stargazer/plugins/other/CMakeLists.txt [deleted file]
stargazer/plugins/other/ping/CMakeLists.txt [deleted file]
stargazer/plugins/other/ping/Makefile [deleted file]
stargazer/plugins/other/radius/CMakeLists.txt [deleted file]
stargazer/plugins/other/radius/Makefile [deleted file]
stargazer/plugins/other/rscript/CMakeLists.txt [deleted file]
stargazer/plugins/other/rscript/Makefile [deleted file]
stargazer/plugins/other/smux/CMakeLists.txt [deleted file]
stargazer/plugins/other/smux/Makefile [deleted file]
stargazer/plugins/store/CMakeLists.txt [deleted file]
stargazer/plugins/store/files/CMakeLists.txt [deleted file]
stargazer/plugins/store/files/Makefile [deleted file]
stargazer/plugins/store/firebird/CMakeLists.txt [deleted file]
stargazer/plugins/store/firebird/Makefile [deleted file]
stargazer/plugins/store/mysql/CMakeLists.txt [deleted file]
stargazer/plugins/store/mysql/Makefile [deleted file]
stargazer/plugins/store/postgresql/CMakeLists.txt [deleted file]
stargazer/plugins/store/postgresql/Makefile [deleted file]

index a680df6fbc14dd96bda78575883f6141b1e75d7c..884fdbedc2b860d3a041ef14584052c255e28b6c 100644 (file)
@@ -1,5 +1,156 @@
-add_subdirectory ( authorization )
-add_subdirectory ( capture )
-add_subdirectory ( configuration )
-add_subdirectory ( other )
-add_subdirectory ( store )
+if ( BUILD_MOD_AO )
+    add_library ( mod_auth_ao MODULE authorization/ao/ao.cpp )
+    target_link_libraries ( mod_auth_ao scriptexecuter logger common )
+    set_target_properties ( mod_auth_ao PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_AO )
+
+if ( BUILD_MOD_IA )
+    add_library ( mod_auth_ia MODULE authorization/inetaccess/inetaccess.cpp )
+    target_link_libraries ( mod_auth_ia scriptexecuter crypto logger common )
+    set_target_properties ( mod_auth_ia PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_IA )
+
+if ( BUILD_MOD_CAP_NF )
+    add_library ( mod_cap_nf MODULE capture/cap_nf/cap_nf.cpp )
+    target_link_libraries ( mod_cap_nf logger common )
+    set_target_properties ( mod_cap_nf PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_NF )
+
+if ( BUILD_MOD_CAP_DIVERT )
+    add_library ( mod_cap_divert MODULE capture/divert_freebsd/divert_cap.cpp )
+    target_link_libraries ( mod_cap_divert logger common )
+    set_target_properties ( mod_cap_divert PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_DIVERT )
+
+if ( BUILD_MOD_CAP_ETHER_FREEBSD )
+    add_library ( mod_cap_bpf MODULE capture/ether_freebsd/ether_cap.cpp )
+    target_link_libraries ( mod_cap_bpf logger common )
+    set_target_properties ( mod_cap_bpf PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_ETHER_FREEBSD )
+
+if ( BUILD_MOD_CAP_ETHER_LINUX )
+    add_library ( mod_cap_ether MODULE capture/ether_linux/ether_cap.cpp )
+    target_link_libraries ( mod_cap_ether logger common )
+    set_target_properties ( mod_cap_ether PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_ETHER_LINUX )
+
+if ( BUILD_MOD_CAP_PCAP )
+    find_package ( PCap REQUIRED )
+    add_library ( mod_cap_pcap MODULE capture/pcap/pcap_cap.cpp )
+    target_link_libraries ( mod_cap_pcap logger common PCap::PCap )
+    set_target_properties ( mod_cap_pcap PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_PCAP )
+
+if ( BUILD_MOD_CAP_NFQUEUE )
+    find_package ( NFQueue REQUIRED )
+    find_package ( NFNetLink REQUIRED )
+    find_package ( MNL REQUIRED )
+    add_library ( mod_cap_nfqueue MODULE capture/nfqueue/nfqueue.cpp )
+    target_link_libraries ( mod_cap_nfqueue logger common NF::Queue NF::NetLink MNL::MNL )
+    set_target_properties ( mod_cap_nfqueue PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_CAP_NFQUEUE )
+
+if ( BUILD_MOD_SGCONFIG )
+    find_package ( EXPAT REQUIRED )
+    add_library ( mod_conf_sg MODULE configuration/sgconfig/stgconfig.cpp
+                                     configuration/sgconfig/conn.cpp
+                                     configuration/sgconfig/configproto.cpp
+                                     configuration/sgconfig/parser.cpp
+                                     configuration/sgconfig/parser_tariffs.cpp
+                                     configuration/sgconfig/parser_admins.cpp
+                                     configuration/sgconfig/parser_users.cpp
+                                     configuration/sgconfig/parser_services.cpp
+                                     configuration/sgconfig/parser_message.cpp
+                                     configuration/sgconfig/parser_auth_by.cpp
+                                     configuration/sgconfig/parser_user_info.cpp
+                                     configuration/sgconfig/parser_server_info.cpp )
+    target_link_libraries ( mod_conf_sg scriptexecuter crypto logger common EXPAT::EXPAT )
+    set_target_properties ( mod_conf_sg PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_SGCONFIG )
+
+if ( BUILD_MOD_RPCCONFIG )
+    find_package ( XMLRPC REQUIRED c++ abyss-server )
+    add_library ( mod_conf_rpc MODULE configuration/rpcconfig/rpcconfig.cpp
+                                      configuration/rpcconfig/user_helper.cpp
+                                      configuration/rpcconfig/tariff_helper.cpp
+                                      configuration/rpcconfig/info_methods.cpp
+                                      configuration/rpcconfig/users_methods.cpp
+                                      configuration/rpcconfig/tariffs_methods.cpp
+                                      configuration/rpcconfig/admins_methods.cpp
+                                      configuration/rpcconfig/messages_methods.cpp )
+    target_link_libraries ( mod_conf_rpc scriptexecuter logger common xmlrpc_server_abyss++ )
+    set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_RPCCONFIG )
+
+if ( BUILD_MOD_PING )
+    add_library ( mod_ping MODULE other/ping/ping.cpp )
+    target_link_libraries ( mod_ping scriptexecuter logger pinger common )
+    set_target_properties ( mod_ping PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_PING )
+
+if ( BUILD_MOD_RADIUS )
+    find_package ( YAJL REQUIRED )
+    add_library ( mod_radius MODULE other/radius/radius.cpp
+                                    other/radius/config.cpp
+                                    other/radius/conn.cpp )
+    target_link_libraries ( mod_radius logger json common YAJL::YAJL )
+    set_target_properties ( mod_radius PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_RADIUS )
+
+if ( BUILD_MOD_RSCRYPT )
+    add_library ( mod_remote_script MODULE other/rscript/rscript.cpp other/rscript/nrmap_parser.cpp )
+    target_link_libraries ( mod_remote_script crypto scriptexecuter logger common )
+    set_target_properties ( mod_remote_script PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_RSCRYPT )
+
+if ( BUILD_MOD_SMUX )
+    add_library ( mod_smux MODULE other/smux/smux.cpp
+                                  other/smux/sensors.cpp
+                                  other/smux/tables.cpp
+                                  other/smux/handlers.cpp
+                                  other/smux/utils.cpp
+                                  other/smux/types.cpp )
+    target_link_libraries ( mod_smux scriptexecuter logger smux common )
+    set_target_properties ( mod_smux PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_SMUX )
+
+if ( BUILD_MOD_STORE_FILES )
+    add_library ( mod_store_files MODULE store/files/file_store.cpp )
+    target_link_libraries ( mod_store_files crypto conffiles logger common )
+    set_target_properties ( mod_store_files PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_STORE_FILES )
+
+if ( BUILD_MOD_STORE_FIREBIRD )
+    find_package ( FBClient REQUIRED )
+    add_library ( mod_store_firebird MODULE store/firebird/firebird_store.cpp
+                                            store/firebird/firebird_store_admins.cpp
+                                            store/firebird/firebird_store_corporations.cpp
+                                            store/firebird/firebird_store_messages.cpp
+                                            store/firebird/firebird_store_services.cpp
+                                            store/firebird/firebird_store_tariffs.cpp
+                                            store/firebird/firebird_store_users.cpp
+                                            store/firebird/firebird_store_utils.cpp )
+    target_link_libraries ( mod_store_firebird crypto common logger ibpp FBClient::FBClient )
+    set_target_properties ( mod_store_firebird PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_STORE_FIREBIRD )
+
+if ( BUILD_MOD_STORE_MYSQL )
+    find_package ( MySQLConnector REQUIRED )
+    add_library ( mod_store_mysql MODULE store/mysql/mysql_store.cpp )
+    target_link_libraries ( mod_store_mysql crypto logger common MySQL::Connector )
+    set_target_properties ( mod_store_mysql PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_STORE_MYSQL )
+
+if ( BUILD_MOD_STORE_POSTGRESQL )
+    find_package ( PostgreSQL REQUIRED )
+    add_library ( mod_store_postgresql MODULE store/postgresql/postgresql_store.cpp
+                                              store/postgresql/postgresql_store_admins.cpp
+                                              store/postgresql/postgresql_store_corporations.cpp
+                                              store/postgresql/postgresql_store_messages.cpp
+                                              store/postgresql/postgresql_store_services.cpp
+                                              store/postgresql/postgresql_store_tariffs.cpp
+                                              store/postgresql/postgresql_store_users.cpp
+                                              store/postgresql/postgresql_store_utils.cpp )
+    target_link_libraries ( mod_store_postgresql crypto logger common PostgreSQL::PostgreSQL )
+    set_target_properties ( mod_store_postgresql PROPERTIES PREFIX "" )
+endif ( BUILD_MOD_STORE_POSTGRESQL )
diff --git a/stargazer/plugins/Makefile b/stargazer/plugins/Makefile
deleted file mode 100644 (file)
index 2163957..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.1 2007/09/26 13:55:45 faust Exp $
-###############################################################################
-
-include ../../../Makefile.conf
-
-.PHONY: clean install uninstall
-.PHONY: all $(PLUGINS)
-
-all: $(PLUGINS)
-
-$(PLUGINS):
-       $(MAKE) $(MAKECMDGOALS) -C $@
-
-clean: all
-
-install: all
-
-uninstall: all
-
diff --git a/stargazer/plugins/Makefile.in b/stargazer/plugins/Makefile.in
deleted file mode 100644 (file)
index 36aebbe..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-###############################################################################
-# $Id: Makefile.in,v 1.11 2009/03/03 15:49:35 faust Exp $
-###############################################################################
-
-SEARCH_DIRS = -I $(DIR_INCLUDE)
-
-OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))))
-
-LN = ln
-
-STGLIBS_INCS = $(addprefix -I ../../../../../stglibs/,$(addsuffix .lib/include,$(STGLIBS)))
-STGLIBS_PATHS = $(addprefix -L ../../../../../stglibs/,$(addsuffix .lib,$(STGLIBS)))
-
-STGLIBS_LIBS = $(addprefix -lstg,$(STGLIBS))
-
-CXXFLAGS += -fPIC $(DEFS) $(SEARCH_DIRS) $(STGLIBS_INCS)
-CFLAGS += -fPIC $(DEFS) $(SEARCH_DIRS) $(STGLIBS_INCS)
-
-ifneq ($(OS),darwin)
-LDFLAGS += -shared -Wl,-rpath,$(PREFIX)/usr/lib/stg
-else
-LDFLAGS += -dynamiclib -undefined suppress -flat_namespace -Wl,-rpath,$(PREFIX)/usr/lib/stg
-endif
-
-all: $(PROG)
-
-$(PROG): $(OBJS)
-       $(CXX) $^ $(LDFLAGS) $(STGLIBS_PATHS) $(STGLIBS_LIBS) $(LIBS) -o $(PROG)
-       $(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
-
-clean:
-       rm -f deps $(PROG) *.o tags *.*~
-
-install: $(PROG)
-       mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
-ifeq ($(DEBUG), yes)
-       install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
-else
-       install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
-endif
-
-uninstall:
-       rm -f $(PREFIX)/usr/lib/stg/$(PROG)
-
-ifneq ($(MAKECMDGOALS),clean)
-ifneq ($(MAKECMDGOALS),uninstall)
--include deps
-endif
-endif
-
-deps:  $(SRCS) ../../../../../Makefile.conf
-       @>deps ;\
-       for file in $(SRCS); do\
-         echo "$$file" | grep ".c$$" > /dev/null;\
-         if [ $$? -eq 0 ];\
-         then\
-           echo "`$(CC) $(CFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\
-           printf '%b\n' '\t$$(CC) -c $$< $(CFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
-         else\
-           echo "`$(CXX) $(CXXFLAGS) $(DEFS) $(SEARCH_DIRS) -MM $$file` Makefile ../../../../../Makefile.conf" >> deps ;\
-           printf '%b\n' '\t$$(CXX) -c $$< $(CXXFLAGS) $(SEARCH_DIRS) $(DEFS)' >> deps ;\
-         fi;\
-       done
diff --git a/stargazer/plugins/authorization/CMakeLists.txt b/stargazer/plugins/authorization/CMakeLists.txt
deleted file mode 100644 (file)
index b94841a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-if ( BUILD_MOD_AO )
-    add_subdirectory ( ao )
-endif ( BUILD_MOD_AO )
-
-if ( BUILD_MOD_IA )
-    add_subdirectory ( inetaccess )
-endif ( BUILD_MOD_IA )
diff --git a/stargazer/plugins/authorization/ao/CMakeLists.txt b/stargazer/plugins/authorization/ao/CMakeLists.txt
deleted file mode 100644 (file)
index 9acccf1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES ao.cpp )
-
-add_library ( mod_auth_ao MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_auth_ao scriptexecuter logger common )
diff --git a/stargazer/plugins/authorization/ao/Makefile b/stargazer/plugins/authorization/ao/Makefile
deleted file mode 100644 (file)
index cd9b7c0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.10 2008/12/04 15:41:03 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_auth_ao.so
-
-SRCS = ./ao.cpp
-
-STGLIBS = scriptexecuter \
-         logger \
-         common
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/authorization/inetaccess/CMakeLists.txt b/stargazer/plugins/authorization/inetaccess/CMakeLists.txt
deleted file mode 100644 (file)
index 8b25baf..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES inetaccess.cpp )
-
-add_library ( mod_auth_ia MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_auth_ia scriptexecuter crypto logger common )
diff --git a/stargazer/plugins/authorization/inetaccess/Makefile b/stargazer/plugins/authorization/inetaccess/Makefile
deleted file mode 100644 (file)
index f7eeabb..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.10 2010/02/16 11:41:00 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-LIBS += $(LIB_THREAD)
-
-PROG = mod_auth_ia.so
-
-SRCS = ./inetaccess.cpp
-
-STGLIBS = common \
-         crypto \
-         logger \
-         scriptexecuter
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/CMakeLists.txt b/stargazer/plugins/capture/CMakeLists.txt
deleted file mode 100644 (file)
index 95e09d1..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-if ( BUILD_MOD_CAP_NF )
-    add_subdirectory ( cap_nf )
-endif ( BUILD_MOD_CAP_NF )
-
-if ( BUILD_MOD_CAP_ETHER_LINUX )
-    add_subdirectory ( ether_linux )
-endif ( BUILD_MOD_CAP_ETHER_LINUX )
-
-if ( BUILD_MOD_CAP_ETHER_FREEBSD )
-    add_subdirectory ( ether_freebsd )
-endif ( BUILD_MOD_CAP_ETHER_FREEBSD )
-
-if ( BUILD_MOD_CAP_DIVERT )
-    add_subdirectory ( divert_freebsd )
-endif ( BUILD_MOD_CAP_DIVERT )
-
-if ( BUILD_MOD_CAP_PCAP )
-    add_subdirectory ( pcap )
-endif ( BUILD_MOD_CAP_PCAP )
-
-if ( BUILD_MOD_CAP_NFQUEUE )
-    add_subdirectory ( nfqueue )
-endif ( BUILD_MOD_CAP_NFQUEUE )
diff --git a/stargazer/plugins/capture/cap_nf/CMakeLists.txt b/stargazer/plugins/capture/cap_nf/CMakeLists.txt
deleted file mode 100644 (file)
index 463b2ce..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES cap_nf.cpp )
-
-add_library ( mod_cap_nf MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_nf logger common )
diff --git a/stargazer/plugins/capture/cap_nf/Makefile b/stargazer/plugins/capture/cap_nf/Makefile
deleted file mode 100644 (file)
index f941280..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.2 2008/12/04 17:04:41 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_nf.so
-
-SRCS = ./cap_nf.cpp
-
-LIBS += $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/divert_freebsd/CMakeLists.txt b/stargazer/plugins/capture/divert_freebsd/CMakeLists.txt
deleted file mode 100644 (file)
index 5a09143..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES divert_cap.cpp )
-
-add_library ( mod_cap_divert MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_divert logger common )
diff --git a/stargazer/plugins/capture/divert_freebsd/Makefile b/stargazer/plugins/capture/divert_freebsd/Makefile
deleted file mode 100644 (file)
index 076443b..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.4 2008/12/04 17:05:21 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_divert.so
-
-SRCS = ./divert_cap.cpp
-
-LIBS += $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/ether_freebsd/CMakeLists.txt b/stargazer/plugins/capture/ether_freebsd/CMakeLists.txt
deleted file mode 100644 (file)
index d8b1f7d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES ether_cap.cpp )
-
-add_library ( mod_cap_bpf MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_bpf logger common )
diff --git a/stargazer/plugins/capture/ether_freebsd/Makefile b/stargazer/plugins/capture/ether_freebsd/Makefile
deleted file mode 100644 (file)
index 2b859db..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.7 2008/12/04 17:06:56 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_bpf.so
-
-SRCS = ./ether_cap.cpp
-
-LIBS += $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/ether_linux/CMakeLists.txt b/stargazer/plugins/capture/ether_linux/CMakeLists.txt
deleted file mode 100644 (file)
index 4b1bfef..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES ether_cap.cpp )
-
-add_library ( mod_cap_ether MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_ether logger common )
diff --git a/stargazer/plugins/capture/ether_linux/Makefile b/stargazer/plugins/capture/ether_linux/Makefile
deleted file mode 100644 (file)
index c89ea65..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.9 2008/12/04 17:07:37 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_ether.so
-
-SRCS = ./ether_cap.cpp
-
-LIBS += $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/nfqueue/CMakeLists.txt b/stargazer/plugins/capture/nfqueue/CMakeLists.txt
deleted file mode 100644 (file)
index a6be1f3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-find_package ( NFQueue REQUIRED )
-find_package ( NFNetLink REQUIRED )
-find_package ( MNL REQUIRED )
-
-set ( CPP_FILES nfqueue.cpp )
-
-add_library ( mod_cap_nfqueue MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_nfqueue logger common NF::Queue NF::NetLink MNL::MNL )
diff --git a/stargazer/plugins/capture/nfqueue/Makefile b/stargazer/plugins/capture/nfqueue/Makefile
deleted file mode 100644 (file)
index 05a87af..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_nfqueue.so
-
-SRCS = ./nfqueue.cpp
-
-LIBS += $(NFQ_LDFLAGS) $(NETLINK_LDFLAGS) $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/capture/pcap/CMakeLists.txt b/stargazer/plugins/capture/pcap/CMakeLists.txt
deleted file mode 100644 (file)
index 3d9eb01..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-find_package ( PCap REQUIRED )
-
-set ( CPP_FILES pcap_cap.cpp )
-
-add_library ( mod_cap_pcap MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_cap_pcap logger common PCap::PCap )
diff --git a/stargazer/plugins/capture/pcap/Makefile b/stargazer/plugins/capture/pcap/Makefile
deleted file mode 100644 (file)
index 3eff306..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-include ../../../../../Makefile.conf
-
-PROG = mod_cap_pcap.so
-
-SRCS = ./pcap_cap.cpp
-
-LIBS += -lpcap $(LIB_THREAD)
-
-STGLIBS = common \
-          logger
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/configuration/CMakeLists.txt b/stargazer/plugins/configuration/CMakeLists.txt
deleted file mode 100644 (file)
index a00ff38..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-if ( BUILD_MOD_SGCONFIG )
-    add_subdirectory ( sgconfig )
-endif ( BUILD_MOD_SGCONFIG )
-
-if ( BUILD_MOD_RPCCONFIG )
-    add_subdirectory ( rpcconfig )
-endif ( BUILD_MOD_RPCCONFIG )
diff --git a/stargazer/plugins/configuration/rpcconfig/CMakeLists.txt b/stargazer/plugins/configuration/rpcconfig/CMakeLists.txt
deleted file mode 100644 (file)
index 49d572a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-find_package ( XMLRPC REQUIRED c++ abyss-server )
-
-set ( CPP_FILES rpcconfig.cpp
-                user_helper.cpp
-                tariff_helper.cpp
-                info_methods.cpp
-                users_methods.cpp
-                tariffs_methods.cpp
-                admins_methods.cpp
-                messages_methods.cpp )
-
-add_library ( mod_conf_rpc MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_conf_rpc scriptexecuter logger common xmlrpc_server_abyss++ )
diff --git a/stargazer/plugins/configuration/rpcconfig/Makefile b/stargazer/plugins/configuration/rpcconfig/Makefile
deleted file mode 100644 (file)
index c647f75..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.10 2009/08/03 10:25:40 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_conf_rpc.so
-
-SRCS = ./rpcconfig.cpp \
-       ./user_helper.cpp \
-       ./tariff_helper.cpp \
-       ./info_methods.cpp \
-       ./users_methods.cpp \
-       ./tariffs_methods.cpp \
-       ./admins_methods.cpp \
-       ./messages_methods.cpp
-
-LIBS += $(XMLRPC_LDFLAGS) \
-       $(LIB_THREAD) \
-       $(LIBICONV)
-
-STGLIBS = common \
-         logger \
-         scriptexecuter
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/configuration/sgconfig/CMakeLists.txt b/stargazer/plugins/configuration/sgconfig/CMakeLists.txt
deleted file mode 100644 (file)
index 6d50596..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-find_package ( EXPAT REQUIRED )
-
-set ( CPP_FILES stgconfig.cpp
-                conn.cpp
-                configproto.cpp
-                parser.cpp
-                parser_tariffs.cpp
-                parser_admins.cpp
-                parser_users.cpp
-                parser_services.cpp
-                parser_message.cpp
-                parser_auth_by.cpp
-                parser_user_info.cpp
-                parser_server_info.cpp )
-
-add_library ( mod_conf_sg MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_conf_sg scriptexecuter crypto logger common EXPAT::EXPAT )
diff --git a/stargazer/plugins/configuration/sgconfig/Makefile b/stargazer/plugins/configuration/sgconfig/Makefile
deleted file mode 100644 (file)
index a83bb86..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.11 2010/03/04 10:47:45 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_conf_sg.so
-
-SRCS = ./stgconfig.cpp \
-       ./conn.cpp \
-       ./configproto.cpp \
-       ./parser.cpp \
-       ./parser_tariffs.cpp \
-       ./parser_admins.cpp \
-       ./parser_users.cpp \
-       ./parser_services.cpp \
-       ./parser_message.cpp \
-       ./parser_auth_by.cpp \
-       ./parser_user_info.cpp \
-       ./parser_server_info.cpp
-
-LIBS += -lexpat \
-       $(LIB_THREAD)
-
-STGLIBS = common \
-         logger \
-         crypto \
-         scriptexecuter
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/other/CMakeLists.txt b/stargazer/plugins/other/CMakeLists.txt
deleted file mode 100644 (file)
index 60f942f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-if ( BUILD_MOD_PING )
-    add_subdirectory ( ping )
-endif ( BUILD_MOD_PING )
-
-if ( BUILD_MOD_RADIUS )
-    add_subdirectory ( radius )
-endif ( BUILD_MOD_RADIUS )
-
-if ( BUILD_MOD_RSCRYPT )
-    add_subdirectory ( rscript )
-endif ( BUILD_MOD_RSCRYPT )
-
-if ( BUILD_MOD_SMUX )
-    add_subdirectory ( smux )
-endif ( BUILD_MOD_SMUX )
diff --git a/stargazer/plugins/other/ping/CMakeLists.txt b/stargazer/plugins/other/ping/CMakeLists.txt
deleted file mode 100644 (file)
index 386b2ef..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES ping.cpp )
-
-add_library ( mod_ping MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_ping scriptexecuter logger pinger common )
diff --git a/stargazer/plugins/other/ping/Makefile b/stargazer/plugins/other/ping/Makefile
deleted file mode 100644 (file)
index 4edc952..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.11 2008/12/04 17:21:14 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-LIBS += $(LIB_THREAD)
-
-PROG = mod_ping.so
-
-SRCS = ./ping.cpp
-
-STGLIBS = pinger \
-         common \
-         logger \
-         scriptexecuter
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/other/radius/CMakeLists.txt b/stargazer/plugins/other/radius/CMakeLists.txt
deleted file mode 100644 (file)
index 4f6deb2..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-find_package ( YAJL REQUIRED )
-
-set ( CPP_FILES radius.cpp
-                config.cpp
-                conn.cpp )
-
-add_library ( mod_radius MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_radius logger json common YAJL::YAJL )
diff --git a/stargazer/plugins/other/radius/Makefile b/stargazer/plugins/other/radius/Makefile
deleted file mode 100644 (file)
index 1442891..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.3 2010/04/26 12:44:42 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-LIBS += $(LIB_THREAD) -lyajl
-
-PROG = mod_radius.so
-
-SRCS = radius.cpp \
-       config.cpp \
-       conn.cpp
-
-STGLIBS = common \
-         crypto \
-         logger \
-         scriptexecuter \
-         json
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/other/rscript/CMakeLists.txt b/stargazer/plugins/other/rscript/CMakeLists.txt
deleted file mode 100644 (file)
index 14467f0..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES rscript.cpp nrmap_parser.cpp )
-
-add_library ( mod_remote_script MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_remote_script crypto scriptexecuter logger common )
diff --git a/stargazer/plugins/other/rscript/Makefile b/stargazer/plugins/other/rscript/Makefile
deleted file mode 100644 (file)
index 50922cc..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.7 2010/02/16 11:41:00 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-LIBS += $(LIB_THREAD)
-
-PROG = mod_remote_script.so
-
-SRCS = ./rscript.cpp \
-       ./nrmap_parser.cpp
-
-STGLIBS = common \
-         crypto \
-         logger \
-         scriptexecuter
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/other/smux/CMakeLists.txt b/stargazer/plugins/other/smux/CMakeLists.txt
deleted file mode 100644 (file)
index 2888d38..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-set ( CPP_FILES smux.cpp
-                sensors.cpp
-                tables.cpp
-                handlers.cpp
-                utils.cpp
-                types.cpp )
-
-add_library ( mod_smux MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_smux scriptexecuter logger smux common )
diff --git a/stargazer/plugins/other/smux/Makefile b/stargazer/plugins/other/smux/Makefile
deleted file mode 100644 (file)
index 08569e5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-include ../../../../../Makefile.conf
-
-LIBS += $(LIB_THREAD)
-
-PROG = mod_smux.so
-
-SRCS =  smux.cpp \
-       sensors.cpp \
-       tables.cpp \
-       handlers.cpp \
-       utils.cpp \
-       types.cpp
-
-STGLIBS = common \
-         smux \
-         logger \
-         scriptexecuter
-
-CFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
-CXXFLAGS += -I ../../../../../stglibs/smux.lib/include/stg
-
-include ../../Makefile.in
diff --git a/stargazer/plugins/store/CMakeLists.txt b/stargazer/plugins/store/CMakeLists.txt
deleted file mode 100644 (file)
index 1ae9616..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-if ( BUILD_MOD_STORE_FILES )
-    add_subdirectory ( files )
-endif ( BUILD_MOD_STORE_FILES )
-
-if ( BUILD_MOD_STORE_FIREBIRD )
-    add_subdirectory ( firebird )
-endif ( BUILD_MOD_STORE_FIREBIRD )
-
-if ( BUILD_MOD_STORE_MYSQL )
-    add_subdirectory ( mysql )
-endif ( BUILD_MOD_STORE_MYSQL )
-
-if ( BUILD_MOD_STORE_POSTGRESQL )
-    add_subdirectory ( postgresql )
-endif ( BUILD_MOD_STORE_POSTGRESQL )
diff --git a/stargazer/plugins/store/files/CMakeLists.txt b/stargazer/plugins/store/files/CMakeLists.txt
deleted file mode 100644 (file)
index 9f1e825..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-set ( CPP_FILES file_store.cpp )
-
-add_library ( mod_store_files MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_store_files crypto conffiles logger common )
diff --git a/stargazer/plugins/store/files/Makefile b/stargazer/plugins/store/files/Makefile
deleted file mode 100644 (file)
index c952d8a..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.16 2010/03/04 10:47:45 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_store_files.so
-
-SRCS = ./file_store.cpp
-
-STGLIBS = conffiles \
-         common \
-         logger \
-         crypto
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/store/firebird/CMakeLists.txt b/stargazer/plugins/store/firebird/CMakeLists.txt
deleted file mode 100644 (file)
index d21f79a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-find_package ( FBClient REQUIRED )
-
-set ( CPP_FILES firebird_store.cpp
-                firebird_store_admins.cpp
-                firebird_store_corporations.cpp
-                firebird_store_messages.cpp
-                firebird_store_services.cpp
-                firebird_store_tariffs.cpp
-                firebird_store_users.cpp
-                firebird_store_utils.cpp )
-
-add_library ( mod_store_firebird MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_store_firebird crypto common logger ibpp FBClient::FBClient )
diff --git a/stargazer/plugins/store/firebird/Makefile b/stargazer/plugins/store/firebird/Makefile
deleted file mode 100644 (file)
index cbe8156..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.9 2008/12/04 17:15:53 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-DEFS += -DIBPP_LINUX
-
-PROG = mod_store_firebird.so
-
-SRCS = ./firebird_store.cpp \
-       ./firebird_store_admins.cpp \
-       ./firebird_store_corporations.cpp \
-       ./firebird_store_messages.cpp \
-       ./firebird_store_services.cpp \
-       ./firebird_store_tariffs.cpp \
-       ./firebird_store_users.cpp \
-       ./firebird_store_utils.cpp
-
-STGLIBS = ibpp \
-         common \
-         logger \
-         crypto
-
-CXXFLAGS +=  $(FB_CFLAGS)
-LDFLAGS += $(FB_LDFLAGS)
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/store/mysql/CMakeLists.txt b/stargazer/plugins/store/mysql/CMakeLists.txt
deleted file mode 100644 (file)
index 9a56ef4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-find_package ( MySQLConnector REQUIRED )
-
-set ( CPP_FILES mysql_store.cpp )
-
-add_library ( mod_store_mysql MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_store_mysql crypto logger common MySQL::Connector )
diff --git a/stargazer/plugins/store/mysql/Makefile b/stargazer/plugins/store/mysql/Makefile
deleted file mode 100644 (file)
index d676c81..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.6 2010/03/25 10:35:55 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_store_mysql.so
-
-SRCS = ./mysql_store.cpp
-
-STGLIBS = common \
-         crypto \
-         logger
-
-CXXFLAGS += $(MYSQL_CFLAGS)
-LIBS += $(MYSQL_LDFLAGS)
-
-include ../../Makefile.in
-
diff --git a/stargazer/plugins/store/postgresql/CMakeLists.txt b/stargazer/plugins/store/postgresql/CMakeLists.txt
deleted file mode 100644 (file)
index 3c9027e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-find_package ( PostgreSQL REQUIRED )
-
-set ( CPP_FILES postgresql_store.cpp
-                postgresql_store_admins.cpp
-                postgresql_store_corporations.cpp
-                postgresql_store_messages.cpp
-                postgresql_store_services.cpp
-                postgresql_store_tariffs.cpp
-                postgresql_store_users.cpp
-                postgresql_store_utils.cpp )
-
-add_library ( mod_store_postgresql MODULE ${CPP_FILES} )
-
-target_link_libraries ( mod_store_postgresql crypto logger common PostgreSQL::PostgreSQL )
diff --git a/stargazer/plugins/store/postgresql/Makefile b/stargazer/plugins/store/postgresql/Makefile
deleted file mode 100644 (file)
index b59fbbf..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-###############################################################################
-# $Id: Makefile,v 1.4 2010/04/26 12:44:42 faust Exp $
-###############################################################################
-
-include ../../../../../Makefile.conf
-
-PROG = mod_store_postgresql.so
-
-SRCS = ./postgresql_store.cpp \
-       ./postgresql_store_admins.cpp \
-       ./postgresql_store_corporations.cpp \
-       ./postgresql_store_messages.cpp \
-       ./postgresql_store_services.cpp \
-       ./postgresql_store_tariffs.cpp \
-       ./postgresql_store_users.cpp \
-       ./postgresql_store_utils.cpp
-
-STGLIBS = common \
-         crypto \
-         logger
-
-CXXFLAGS +=  $(PG_CFLAGS)
-LDFLAGS += $(PG_LDFLAGS)
-
-LIBS += -lpq
-
-include ../../Makefile.in
-