CMakeLists.txt |
|
patch | blob | history |
LICENSE.APLv2 |
[moved from LICENSE with 100% similarity] |
patch | blob | history |
dbus-interface/CMakeLists.txt |
[moved from interfaces/CMakeLists.txt with 100% similarity] |
patch | blob | history |
dbus-interface/stcmanager-iface-firewall.xml |
[moved from interfaces/stcmanager-iface-firewall.xml with 100% similarity] |
patch | blob | history |
dbus-interface/stcmanager-iface-manager.xml |
[moved from interfaces/stcmanager-iface-manager.xml with 100% similarity] |
patch | blob | history |
dbus-interface/stcmanager-iface-pcap.xml |
[moved from interfaces/stcmanager-iface-pcap.xml with 100% similarity] |
patch | blob | history |
dbus-interface/stcmanager-iface-restriction.xml |
[moved from interfaces/stcmanager-iface-restriction.xml with 100% similarity] |
patch | blob | history |
dbus-interface/stcmanager-iface-statistics.xml |
[moved from interfaces/stcmanager-iface-statistics.xml with 100% similarity] |
patch | blob | history |
include/counter.h |
[moved from src/configure/include/counter.h with 100% similarity] |
patch | blob | history |
include/db/table-counters.h |
[moved from src/database/include/table-counters.h with 100% similarity, mode: 0644] |
patch | blob | history |
include/db/table-firewall.h |
[moved from src/database/include/table-firewall.h with 100% similarity, mode: 0644] |
patch | blob | history |
include/db/table-restrictions.h |
[moved from src/database/include/table-restrictions.h with 100% similarity, mode: 0644] |
patch | blob | history |
include/db/table-statistics.h |
[moved from src/database/include/table-statistics.h with 100% similarity, mode: 0644] |
patch | blob | history |
include/stc-db.h |
[moved from src/database/include/stc-db.h with 100% similarity, mode: 0644] |
patch | blob | history |
include/stc-error.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-firewall.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-gdbus.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-appstatus.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-exception.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-firewall.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-monitor.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-pcap.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-procfs.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-plugin-tether.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager-util.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-manager.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-pcap.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-restriction.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/stc-statistics.h |
[changed mode: 0755->0644]
|
patch | blob | history |
include/transmission.h |
[changed mode: 0755->0644]
|
patch | blob | history |
manager/CMakeLists.txt |
[moved from src/CMakeLists.txt with 68% similarity] |
patch | blob | history |
manager/database/db-common.c |
[moved from src/database/db-common.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/database/db-guard.c |
[moved from src/database/db-guard.c with 100% similarity] |
patch | blob | history |
manager/database/db-internal.h |
[moved from src/database/include/db-internal.h with 100% similarity, mode: 0644] |
patch | blob | history |
manager/database/table-counters.c |
[moved from src/database/tables/table-counters.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/database/table-firewall.c |
[moved from src/database/tables/table-firewall.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/database/table-restrictions.c |
[moved from src/database/tables/table-restrictions.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/database/table-statistics.c |
[moved from src/database/tables/table-statistics.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/configure_stub.h |
[moved from src/configure/include/configure_stub.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-cgroup.c |
[moved from src/helper/helper-cgroup.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-cgroup.h |
[moved from src/helper/helper-cgroup.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-file.c |
[moved from src/helper/helper-file.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-file.h |
[moved from src/helper/helper-file.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-firewall.c |
[moved from src/helper/helper-firewall.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-firewall.h |
[moved from src/helper/helper-firewall.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-inotify.c |
[moved from src/helper/helper-inotify.c with 100% similarity] |
patch | blob | history |
manager/helper/helper-inotify.h |
[moved from src/helper/helper-inotify.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-iptables.c |
[moved from src/helper/helper-iptables.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-iptables.h |
[moved from src/helper/helper-iptables.h with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-net-cls.c |
[moved from src/helper/helper-net-cls.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-net-cls.h |
[moved from src/helper/helper-net-cls.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-nfacct-rule.c |
[moved from src/helper/helper-nfacct-rule.c with 99% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-nfacct-rule.h |
[moved from src/helper/helper-nfacct-rule.h with 99% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-nl.c |
[moved from src/helper/helper-nl.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/helper/helper-nl.h |
[moved from src/helper/helper-nl.h with 100% similarity] |
patch | blob | history |
manager/helper/helper-procfs.c |
[moved from src/helper/helper-procfs.c with 100% similarity] |
patch | blob | history |
manager/helper/helper-procfs.h |
[moved from src/helper/helper-procfs.h with 100% similarity] |
patch | blob | history |
manager/stc-firewall.c |
[moved from src/stc-firewall.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-gdbus.c |
[moved from src/stc-manager-gdbus.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-appstatus.c |
[moved from src/stc-manager-plugin-appstatus.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-exception.c |
[moved from src/stc-manager-plugin-exception.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-firewall.c |
[moved from src/stc-manager-plugin-firewall.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-monitor.c |
[moved from src/stc-manager-plugin-monitor.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-pcap.c |
[moved from src/stc-manager-plugin-pcap.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-procfs.c |
[moved from src/stc-manager-plugin-procfs.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager-plugin-tether.c |
[moved from src/stc-manager-plugin-tether.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-manager.c |
[moved from src/stc-manager.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-pcap.c |
[moved from src/stc-pcap.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-restriction.c |
[moved from src/stc-restriction.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/stc-statistics.c |
[moved from src/stc-statistics.c with 100% similarity, mode: 0644] |
patch | blob | history |
manager/util/stc-manager-util.c |
[moved from src/stc-manager-util.c with 100% similarity, mode: 0644] |
patch | blob | history |
misc/CMakeLists.txt |
[moved from src/utils/CMakeLists.txt with 100% similarity] |
patch | blob | history |
misc/net-cls-release.c |
[moved from src/utils/net-cls-release.c with 100% similarity] |
patch | blob | history |
packaging/stc-manager.manifest |
[moved from stc-manager.manifest with 98% similarity] |
patch | blob | history |
packaging/stc-manager.spec |
|
patch | blob | history |
plugin/CMakeLists.txt |
|
patch | blob | history |
plugin/appstatus/CMakeLists.txt |
|
patch | blob | history |
plugin/appstatus/stc-plugin-appstatus.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/appstatus/stc-plugin-appstatus.h |
[moved from plugin/appstatus/include/stc-plugin-appstatus.h with 100% similarity] |
patch | blob | history |
plugin/exception/CMakeLists.txt |
|
patch | blob | history |
plugin/exception/stc-plugin-exception.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/exception/stc-plugin-exception.h |
[moved from plugin/exception/include/stc-plugin-exception.h with 100% similarity] |
patch | blob | history |
plugin/firewall/CMakeLists.txt |
|
patch | blob | history |
plugin/firewall/stc-plugin-firewall.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/firewall/stc-plugin-firewall.h |
[moved from plugin/firewall/include/stc-plugin-firewall.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/CMakeLists.txt |
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-app.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-app.h |
[moved from plugin/monitor/include/stc-plugin-monitor-app.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-connection.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-connection.h |
[moved from plugin/monitor/include/stc-plugin-monitor-connection.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-context.h |
[moved from plugin/monitor/include/stc-plugin-monitor-context.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-ipt.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-ipt.h |
[moved from plugin/monitor/include/stc-plugin-monitor-ipt.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-proc.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-proc.h |
[moved from plugin/monitor/include/stc-plugin-monitor-proc.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-rstn.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-rstn.h |
[moved from plugin/monitor/include/stc-plugin-monitor-rstn.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor-time.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor-time.h |
[moved from plugin/monitor/include/stc-plugin-monitor-time.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/monitor/stc-plugin-monitor.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/monitor/stc-plugin-monitor.h |
[moved from plugin/monitor/include/stc-plugin-monitor.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/pcap/CMakeLists.txt |
|
patch | blob | history |
plugin/pcap/stc-plugin-pcap-internal.h |
[moved from plugin/pcap/include/stc-plugin-pcap-internal.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/pcap/stc-plugin-pcap.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/pcap/stc-plugin-pcap.h |
[moved from plugin/pcap/include/stc-plugin-pcap.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/procfs/CMakeLists.txt |
|
patch | blob | history |
plugin/procfs/stc-plugin-procfs.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/procfs/stc-plugin-procfs.h |
[moved from plugin/procfs/include/stc-plugin-procfs.h with 100% similarity, mode: 0644] |
patch | blob | history |
plugin/tether/CMakeLists.txt |
|
patch | blob | history |
plugin/tether/stc-plugin-tether.c |
[changed mode: 0755->0644]
|
patch | blob | history |
plugin/tether/stc-plugin-tether.h |
[moved from plugin/tether/include/stc-plugin-tether.h with 100% similarity] |
patch | blob | history |
res/500.stc-manager_upgrade.sh |
[moved from scripts/500.stc-manager_upgrade.sh with 100% similarity, mode: 0755] |
patch | blob | history |
res/dbus/net.stc-manager.service |
[moved from resources/dbus/net.stc-manager.service with 100% similarity, mode: 0644] |
patch | blob | history |
res/dbus/stc-manager.conf |
[moved from resources/dbus/stc-manager.conf with 100% similarity, mode: 0644] |
patch | blob | history |
res/exceptions |
[moved from data/exceptions with 100% similarity] |
patch | blob | history |
res/firewall_db.sql |
[moved from data/firewall_db.sql with 100% similarity] |
patch | blob | history |
res/systemd/stc-manager.service |
[moved from resources/systemd/stc-manager.service with 100% similarity] |
patch | blob | history |
res/traffic_db.sql |
[moved from data/traffic_db.sql with 100% similarity] |
patch | blob | history |
tests/CMakeLists.txt |
[moved from unittest/CMakeLists.txt with 100% similarity] |
patch | blob | history |
tests/common.cpp |
[moved from unittest/common.cpp with 99% similarity] |
patch | blob | history |
tests/common.h |
[moved from unittest/common.h with 100% similarity] |
patch | blob | history |
tests/firewall.cpp |
[moved from unittest/firewall.cpp with 99% similarity] |
patch | blob | history |
tests/firewall.h |
[moved from unittest/firewall.h with 100% similarity] |
patch | blob | history |
tests/gdbus.cpp |
[moved from unittest/gdbus.cpp with 100% similarity] |
patch | blob | history |
tests/gdbus.h |
[moved from unittest/gdbus.h with 100% similarity] |
patch | blob | history |
tests/manager.cpp |
[moved from unittest/manager.cpp with 100% similarity] |
patch | blob | history |
tests/manager.h |
[moved from unittest/manager.h with 100% similarity] |
patch | blob | history |
tests/restriction.cpp |
[moved from unittest/restriction.cpp with 100% similarity] |
patch | blob | history |
tests/restriction.h |
[moved from unittest/restriction.h with 100% similarity] |
patch | blob | history |
tests/statistics.cpp |
[moved from unittest/statistics.cpp with 99% similarity] |
patch | blob | history |
tests/statistics.h |
[moved from unittest/statistics.h with 100% similarity] |
patch | blob | history |
tests/stcmgr.cpp |
[moved from unittest/stcmgr.cpp with 100% similarity] |
patch | blob | history |
tests/stcmgr.h |
[moved from unittest/stcmgr.h with 100% similarity] |
patch | blob | history |
tests/unittest.cpp |
[moved from unittest/unittest.cpp with 100% similarity] |
patch | blob | history |
tests/unittest.h |
[moved from unittest/unittest.h with 100% similarity] |
patch | blob | history |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(stc-manager C CXX)
SET(PACKAGE ${PROJECT_NAME})
-SET(INTERFACES "${CMAKE_SOURCE_DIR}/interfaces")
+SET(INTERFACES "${CMAKE_SOURCE_DIR}/dbus-interface")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(LIBDIR ${PREFIX}/${LIB_PATH})
-SET(DATA_DIR ${CMAKE_SOURCE_DIR}/data)
+SET(DATA_DIR ${CMAKE_SOURCE_DIR}/res)
-ADD_SUBDIRECTORY(interfaces)
-ADD_SUBDIRECTORY(src)
+ADD_SUBDIRECTORY(dbus-interface)
+ADD_SUBDIRECTORY(manager)
ADD_SUBDIRECTORY(plugin)
+ADD_SUBDIRECTORY(misc)
IF(BUILD_GTESTS)
- ADD_SUBDIRECTORY(unittest)
+ ADD_SUBDIRECTORY(tests)
ENDIF(BUILD_GTESTS)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(SOURCE_DIR ${CMAKE_SOURCE_DIR}/src)
+SET(SOURCE_DIR ${CMAKE_SOURCE_DIR}/manager)
SET(HELPER_SOURCE_DIR ${SOURCE_DIR}/helper)
SET(DATABASE_SOURCE_DIR ${SOURCE_DIR}/database)
-SET(CONFIGURE_SOURCE_DIR ${SOURCE_DIR}/configure)
SET(LIMITATION_SOURCE_DIR ${SOURCE_DIR}/limitation)
SET(PLUGIN_DIR ${CMAKE_SOURCE_DIR}/plugin)
SET(APPSTATUS_SOURCE_DIR ${PLUGIN_DIR}/appstatus)
SET(FIREWALL_SOURCE_DIR ${PLUGIN_DIR}/firewall)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/interfaces)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/dbus-interface)
INCLUDE_DIRECTORIES(${SOURCE_DIR})
INCLUDE_DIRECTORIES(${HELPER_SOURCE_DIR})
INCLUDE_DIRECTORIES(${DATABASE_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${DATABASE_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/db)
-INCLUDE_DIRECTORIES(${CONFIGURE_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${CONFIGURE_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(${APPSTATUS_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${EXCEPTION_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${PROCFS_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${PCAP_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${TETHER_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${MONITOR_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${FIREWALL_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${LIMITATION_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${LIMITATION_SOURCE_DIR}/include)
-
-INCLUDE_DIRECTORIES(${APPSTATUS_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${EXCEPTION_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${PROCFS_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${PCAP_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${TETHER_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${MONITOR_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${FIREWALL_SOURCE_DIR}/include)
-
-FILE(GLOB SOURCE_SRCS ${SOURCE_DIR}/*.c)
+FILE(GLOB SOURCE_SRCS ${SOURCE_DIR}/*.c util/*.c)
FILE(GLOB HELPER_SRCS ${HELPER_SOURCE_DIR}/*.c)
-FILE(GLOB CONFIGURE_SRCS ${CONFIGURE_SOURCE_DIR}/*.c)
-FILE(GLOB LIMITATION_SRCS ${LIMITATION_SOURCE_DIR}/*.c)
-SET(SRCS ${SRCS} ${SOURCE_SRCS} ${HELPER_SRCS} ${CONFIGURE_SRCS} ${LIMITATION_SRCS})
+SET(SRCS ${SRCS} ${SOURCE_SRCS} ${HELPER_SRCS})
IF("${ENABLE_DATABASE}" STREQUAL "YES")
FILE(GLOB DATABASE_SRCS ${DATABASE_SOURCE_DIR}/*.c)
- FILE(GLOB DATABASE_TABLES_SRCS ${DATABASE_SOURCE_DIR}/tables/*.c)
- SET(SRCS ${SRCS} ${DATABASE_SRCS} ${DATABASE_TABLES_SRCS})
+ SET(SRCS ${SRCS} ${DATABASE_SRCS})
INSTALL(FILES ${DATA_DIR}/traffic_db.sql DESTINATION /usr/share)
INSTALL(FILES ${DATA_DIR}/firewall_db.sql DESTINATION /usr/share)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${stc_pkgs_LDFLAGS} -ldl)
INSTALL(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${BIN_DIR})
ADD_DEPENDENCIES(${PROJECT_NAME} GENERATED_DBUS_CODE)
-
-ADD_SUBDIRECTORY(utils)
warn_symbol, counter->iotype, counter->iftype,
counter->classid, counter->ifname);
}
-
netlink_create_command(struct netlink_serialization_params *params);
#endif /* __STC_NFACCT_RULE_H__ */
-
<domain name="_"/>
</request>
</manifest>
-
Group: Network & Connectivity/Other
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
%define enable_database YES
%define enable_statistics YES
%prep
%setup -q
-chmod 644 %{SOURCE0}
+cp %{SOURCE1001} ./%{name}.manifest
%build
#Exceptions file
mkdir -p %{buildroot}/%{_localstatedir}/lib/stc
-cp data/exceptions %{buildroot}/%{_localstatedir}/lib/stc/exceptions
+cp res/exceptions %{buildroot}/%{_localstatedir}/lib/stc/exceptions
#Systemd service file
mkdir -p %{buildroot}%{_unitdir}
-cp resources/systemd/stc-manager.service %{buildroot}%{_unitdir}/stc-manager.service
+cp res/systemd/stc-manager.service %{buildroot}%{_unitdir}/stc-manager.service
mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants/
ln -s ../stc-manager.service %{buildroot}%{_unitdir}/multi-user.target.wants/stc-manager.service
#DBus DAC (stc-manager.manifest enables DBus SMACK)
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
-cp resources/dbus/stc-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/stc-manager.conf
+cp res/dbus/stc-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/stc-manager.conf
mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
-cp resources/dbus/net.stc-manager.service %{buildroot}%{_datadir}/dbus-1/system-services/net.stc.service
+cp res/dbus/net.stc-manager.service %{buildroot}%{_datadir}/dbus-1/system-services/net.stc.service
#OS Upgrade
mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/%{upgrade_script_filename} %{buildroot}%{upgrade_script_path}
+cp -f res/%{upgrade_script_filename} %{buildroot}%{upgrade_script_path}
%files
%manifest %{name}.manifest
-%license LICENSE
+%license LICENSE.APLv2
%defattr(-,root,root,-)
%attr(500,root,root) %{_bindir}/*
-SET(SOURCE_DIR ${CMAKE_SOURCE_DIR}/src)
+SET(SOURCE_DIR ${CMAKE_SOURCE_DIR}/manager)
SET(HELPER_SOURCE_DIR ${SOURCE_DIR}/helper)
SET(DATABASE_SOURCE_DIR ${SOURCE_DIR}/database)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/interfaces)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/dbus-interface)
INCLUDE_DIRECTORIES(${SOURCE_DIR})
INCLUDE_DIRECTORIES(${HELPER_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${DATABASE_SOURCE_DIR})
-INCLUDE_DIRECTORIES(${DATABASE_SOURCE_DIR}/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/db)
ADD_SUBDIRECTORY(appstatus)
ADD_SUBDIRECTORY(exception)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/configure/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/tether/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/exception/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/appstatus/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/firewall/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/tether)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/exception)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/appstatus)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/firewall)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/monitor/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/exception/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/monitor)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/exception)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/monitor/include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/plugin/monitor)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -g -Werror -fvisibility=hidden")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
break;
case 3: /* get all */
default:
- *params = g_variant_new("(@a{sv})", g_variant_builder_end(builder));
+ *params = g_variant_new("(@a{sv})", g_variant_builder_end(builder));
break;
}