minor fixes
This commit is contained in:
parent
a01363cf4b
commit
4576961ae6
510
Makefile
Normal file
510
Makefile
Normal file
@ -0,0 +1,510 @@
|
||||
#############################################################################
|
||||
# Makefile for building: ServidorTFG
|
||||
# Generated by qmake (3.1) (Qt 5.14.2)
|
||||
# Project: ServidorTFG.pro
|
||||
# Template: app
|
||||
# Command: /usr/lib64/qt5/bin/qmake -o Makefile ServidorTFG.pro
|
||||
#############################################################################
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
EQ = =
|
||||
|
||||
####### Compiler, tools and options
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
DEFINES =
|
||||
CFLAGS = -pipe -O2 -Wall -Wextra -fPIC $(DEFINES)
|
||||
CXXFLAGS = -pipe -O2 -std=gnu++11 -Wall -Wextra -fPIC $(DEFINES)
|
||||
INCPATH = -I. -I/usr/lib64/qt5/mkspecs/linux-g++
|
||||
QMAKE = /usr/lib64/qt5/bin/qmake
|
||||
DEL_FILE = rm -f
|
||||
CHK_DIR_EXISTS= test -d
|
||||
MKDIR = mkdir -p
|
||||
COPY = cp -f
|
||||
COPY_FILE = cp -f
|
||||
COPY_DIR = cp -f -R
|
||||
INSTALL_FILE = install -m 644 -p
|
||||
INSTALL_PROGRAM = install -m 755 -p
|
||||
INSTALL_DIR = cp -f -R
|
||||
QINSTALL = /usr/lib64/qt5/bin/qmake -install qinstall
|
||||
QINSTALL_PROGRAM = /usr/lib64/qt5/bin/qmake -install qinstall -exe
|
||||
DEL_FILE = rm -f
|
||||
SYMLINK = ln -f -s
|
||||
DEL_DIR = rmdir
|
||||
MOVE = mv -f
|
||||
TAR = tar -cf
|
||||
COMPRESS = gzip -9f
|
||||
DISTNAME = ServidorTFG1.0.0
|
||||
DISTDIR = /home/roche/Cosas/C++/ServidorTFG/.tmp/ServidorTFG1.0.0
|
||||
LINK = g++
|
||||
LFLAGS = -Wl,-O1
|
||||
LIBS = $(SUBLIBS) -lcrypto -lssl -pthread -lcppunit -lmysqlcppconn
|
||||
AR = ar cqs
|
||||
RANLIB =
|
||||
SED = sed
|
||||
STRIP = strip
|
||||
|
||||
####### Output directory
|
||||
|
||||
OBJECTS_DIR = ./
|
||||
|
||||
####### Files
|
||||
|
||||
SOURCES = main.cpp \
|
||||
conexion.cpp \
|
||||
conexion_ssl.cpp \
|
||||
config_reader.cpp \
|
||||
tests.cpp \
|
||||
data_acces.cpp \
|
||||
msql_acces.cpp \
|
||||
session_manager.cpp \
|
||||
session_manager_ssl.cpp \
|
||||
config_package.cpp
|
||||
OBJECTS = main.o \
|
||||
conexion.o \
|
||||
conexion_ssl.o \
|
||||
config_reader.o \
|
||||
tests.o \
|
||||
data_acces.o \
|
||||
msql_acces.o \
|
||||
session_manager.o \
|
||||
session_manager_ssl.o \
|
||||
config_package.o
|
||||
DIST = /usr/lib64/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib64/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_packetprotocol_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldebug_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldevtools_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickparticles_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickshapes_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib64/qt5/mkspecs/linux-g++/qmake.conf \
|
||||
/usr/lib64/qt5/mkspecs/features/spec_post.prf \
|
||||
.qmake.stash \
|
||||
/usr/lib64/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/toolchain.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/qmake_use.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/lex.prf \
|
||||
ServidorTFG.pro conexion.h \
|
||||
conexion_ssl.h \
|
||||
config_reader.h \
|
||||
tests.h \
|
||||
data_acces.h \
|
||||
msql_acces.h \
|
||||
session_manager.h \
|
||||
session_manager_ssl.h \
|
||||
config_package.h main.cpp \
|
||||
conexion.cpp \
|
||||
conexion_ssl.cpp \
|
||||
config_reader.cpp \
|
||||
tests.cpp \
|
||||
data_acces.cpp \
|
||||
msql_acces.cpp \
|
||||
session_manager.cpp \
|
||||
session_manager_ssl.cpp \
|
||||
config_package.cpp
|
||||
QMAKE_TARGET = ServidorTFG
|
||||
DESTDIR =
|
||||
TARGET = ServidorTFG
|
||||
|
||||
|
||||
first: all
|
||||
####### Build rules
|
||||
|
||||
ServidorTFG: $(OBJECTS)
|
||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
|
||||
|
||||
Makefile: ServidorTFG.pro /usr/lib64/qt5/mkspecs/linux-g++/qmake.conf /usr/lib64/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib64/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib64/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib64/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_packetprotocol_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldebug_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldevtools_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickparticles_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickshapes_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib64/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib64/qt5/mkspecs/linux-g++/qmake.conf \
|
||||
/usr/lib64/qt5/mkspecs/features/spec_post.prf \
|
||||
.qmake.stash \
|
||||
/usr/lib64/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/toolchain.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/qmake_use.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib64/qt5/mkspecs/features/lex.prf \
|
||||
ServidorTFG.pro
|
||||
$(QMAKE) -o Makefile ServidorTFG.pro
|
||||
/usr/lib64/qt5/mkspecs/features/spec_pre.prf:
|
||||
/usr/lib64/qt5/mkspecs/common/unix.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/linux.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/sanitize.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/gcc-base-unix.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/g++-base.conf:
|
||||
/usr/lib64/qt5/mkspecs/common/g++-unix.conf:
|
||||
/usr/lib64/qt5/mkspecs/qconfig.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_core_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_edid_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_egl_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fb_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_glx_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_gui_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_help_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_input_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_multimedia_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_network_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_packetprotocol_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qml_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldebug_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmldevtools_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlmodels_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmltest_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_qmlworkerscript_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quick_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickparticles_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickshapes_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_quickwidgets_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_script_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_scripttools_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_service_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_sql_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_svg_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_theme_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandclient_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_waylandcompositor_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_x11extras_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml.pri:
|
||||
/usr/lib64/qt5/mkspecs/modules/qt_lib_xml_private.pri:
|
||||
/usr/lib64/qt5/mkspecs/features/qt_functions.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/qt_config.prf:
|
||||
/usr/lib64/qt5/mkspecs/linux-g++/qmake.conf:
|
||||
/usr/lib64/qt5/mkspecs/features/spec_post.prf:
|
||||
.qmake.stash:
|
||||
/usr/lib64/qt5/mkspecs/features/exclusive_builds.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/toolchain.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/default_pre.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/resolve_config.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/default_post.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/warn_on.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/qmake_use.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/file_copies.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/testcase_targets.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/exceptions.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/yacc.prf:
|
||||
/usr/lib64/qt5/mkspecs/features/lex.prf:
|
||||
ServidorTFG.pro:
|
||||
qmake: FORCE
|
||||
@$(QMAKE) -o Makefile ServidorTFG.pro
|
||||
|
||||
qmake_all: FORCE
|
||||
|
||||
|
||||
all: Makefile ServidorTFG
|
||||
|
||||
dist: distdir FORCE
|
||||
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
|
||||
|
||||
distdir: FORCE
|
||||
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
|
||||
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
|
||||
|
||||
|
||||
clean: compiler_clean
|
||||
-$(DEL_FILE) $(OBJECTS)
|
||||
-$(DEL_FILE) *~ core *.core
|
||||
|
||||
|
||||
distclean: clean
|
||||
-$(DEL_FILE) $(TARGET)
|
||||
-$(DEL_FILE) .qmake.stash
|
||||
-$(DEL_FILE) Makefile
|
||||
|
||||
|
||||
####### Sub-libraries
|
||||
|
||||
check: first
|
||||
|
||||
benchmark: first
|
||||
|
||||
compiler_yacc_decl_make_all:
|
||||
compiler_yacc_decl_clean:
|
||||
compiler_yacc_impl_make_all:
|
||||
compiler_yacc_impl_clean:
|
||||
compiler_lex_make_all:
|
||||
compiler_lex_clean:
|
||||
compiler_clean:
|
||||
|
||||
####### Compile
|
||||
|
||||
main.o: main.cpp conexion.h \
|
||||
config_reader.h \
|
||||
data_acces.h \
|
||||
conexion_ssl.h \
|
||||
tests.h \
|
||||
msql_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
|
||||
|
||||
conexion.o: conexion.cpp conexion.h \
|
||||
config_reader.h \
|
||||
data_acces.h \
|
||||
session_manager.h \
|
||||
msql_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o conexion.o conexion.cpp
|
||||
|
||||
conexion_ssl.o: conexion_ssl.cpp conexion_ssl.h \
|
||||
conexion.h \
|
||||
config_reader.h \
|
||||
data_acces.h \
|
||||
session_manager.h \
|
||||
session_manager_ssl.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o conexion_ssl.o conexion_ssl.cpp
|
||||
|
||||
config_reader.o: config_reader.cpp config_reader.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o config_reader.o config_reader.cpp
|
||||
|
||||
tests.o: tests.cpp tests.h \
|
||||
config_reader.h \
|
||||
data_acces.h \
|
||||
msql_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tests.o tests.cpp
|
||||
|
||||
data_acces.o: data_acces.cpp data_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o data_acces.o data_acces.cpp
|
||||
|
||||
msql_acces.o: msql_acces.cpp msql_acces.h \
|
||||
data_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o msql_acces.o msql_acces.cpp
|
||||
|
||||
session_manager.o: session_manager.cpp session_manager.h \
|
||||
data_acces.h \
|
||||
msql_acces.h \
|
||||
config_package.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o session_manager.o session_manager.cpp
|
||||
|
||||
session_manager_ssl.o: session_manager_ssl.cpp session_manager_ssl.h \
|
||||
session_manager.h \
|
||||
data_acces.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o session_manager_ssl.o session_manager_ssl.cpp
|
||||
|
||||
config_package.o: config_package.cpp config_package.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o config_package.o config_package.cpp
|
||||
|
||||
####### Install
|
||||
|
||||
install: FORCE
|
||||
|
||||
uninstall: FORCE
|
||||
|
||||
FORCE:
|
||||
|
BIN
ServidorTFG
Executable file
BIN
ServidorTFG
Executable file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.8.2, 2020-06-03T18:58:43. -->
|
||||
<!-- Written by QtCreator 4.8.2, 2020-06-03T22:37:50. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
8
conf
Normal file
8
conf
Normal file
@ -0,0 +1,8 @@
|
||||
#security=yes use tls, no use unsecure conexion
|
||||
security=yes
|
||||
#port to listen
|
||||
port=4433
|
||||
#certificate to seccure conexion
|
||||
cert=/home/roche/Cosas/OpenSSL/public.pem
|
||||
#private key for certificate
|
||||
key=/home/roche/Cosas/OpenSSL/private.pem
|
@ -84,7 +84,7 @@ int session_manager::generate_package(){
|
||||
return -1;
|
||||
}
|
||||
delete [] (use_conf);
|
||||
std::string result = this->appli_command("--ask", n_package);
|
||||
std::string result = this->appli_command("--buildpkg", n_package);
|
||||
delete[] (n_package);
|
||||
if(result=="err"){
|
||||
return -1;
|
||||
@ -99,24 +99,24 @@ int session_manager::generate_package(){
|
||||
int session_manager::remove(){
|
||||
char* n_package = new char[256];
|
||||
this->read_data(n_package, 256);
|
||||
this->read_data(n_package, 256);
|
||||
std::string result = this->appli_command("--unmerge",n_package);
|
||||
this->data->write_remove(n_package);
|
||||
delete[] (n_package);
|
||||
if(result=="err"){
|
||||
return -1;
|
||||
}else{
|
||||
this->data->write_remove(result);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
std::string session_manager::appli_command(char comand[], char* n_package){
|
||||
char** args=new char*[6];
|
||||
char** args=new char*[5];
|
||||
args[0]="sudo";
|
||||
args[1]=strcat(&this->env[0],"emerge");
|
||||
args[2]="--buildpkg";
|
||||
args[3]=comand;
|
||||
args[4]=n_package;
|
||||
args[5]=nullptr;
|
||||
args[2]=comand;
|
||||
args[3]=n_package;
|
||||
args[4]=nullptr;
|
||||
int pid = fork();
|
||||
int status=-2;
|
||||
std::string ret;
|
||||
@ -127,13 +127,8 @@ std::string session_manager::appli_command(char comand[], char* n_package){
|
||||
exit(0);
|
||||
}else {
|
||||
waitpid(pid, &status, WCONTINUED);
|
||||
if(status>0){
|
||||
this->write_data("ok");
|
||||
ret = n_package;
|
||||
}else{
|
||||
this->write_data("bad");
|
||||
ret = "err";
|
||||
}
|
||||
this->write_data("ok");
|
||||
ret = n_package;
|
||||
}
|
||||
delete [] (args);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user