aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-15 10:22:20 +0200
committersaturneric <[email protected]>2026-09-15 10:22:20 +0200
commit106c3dfea084e94dbb45adee92fd0d913ba533f8 (patch)
treefc2b661b280d35ffbf58a8f16336d0baa44db3ca
parentrefactor(email): remove obsolete crypto SDK stubs (diff)
downloadmodules-106c3dfea084e94dbb45adee92fd0d913ba533f8.tar.gz
modules-106c3dfea084e94dbb45adee92fd0d913ba533f8.zip
feat(modules): package modules as signed gfmodule files
- add signed package generation for email and GnuPG info modules - package key server sync and version checking modules - define module IDs, versions, capabilities, and metadata - retain loose library builds during the packaging transition
-rw-r--r--src/m_email/CMakeLists.txt13
-rw-r--r--src/m_gpg_info/CMakeLists.txt15
-rw-r--r--src/m_key_server_sync/CMakeLists.txt12
-rw-r--r--src/m_ver_check/CMakeLists.txt12
4 files changed, 49 insertions, 3 deletions
diff --git a/src/m_email/CMakeLists.txt b/src/m_email/CMakeLists.txt
index 8df4901..52dc683 100644
--- a/src/m_email/CMakeLists.txt
+++ b/src/m_email/CMakeLists.txt
@@ -121,3 +121,16 @@ module_add_translations(${MODULE_TARGET}
if(GPGFRONTEND_MODULES_BUILD_TESTS)
add_subdirectory(test)
endif()
+
+
+# Build a signed `*.gfmodule` alongside the loose library. Packages are where
+# this is going -- loose libraries are transitional and a future version will
+# stop loading them -- but both are produced for now.
+gf_add_module_package(
+ TARGET mod_email
+ MODULE_ID com.bktus.gpgfrontend.module.email
+ VERSION 2.0.0
+ CAPABILITIES gpg ui network
+ META "Name=Email"
+ "Description=Everything related to E-Mails."
+ "Author=Saturneric")
diff --git a/src/m_gpg_info/CMakeLists.txt b/src/m_gpg_info/CMakeLists.txt
index 9e0201c..c78c08e 100644
--- a/src/m_gpg_info/CMakeLists.txt
+++ b/src/m_gpg_info/CMakeLists.txt
@@ -41,4 +41,17 @@ gpgfrontend_collect_ts_files(TS_FILES "ModuleGnuPGInfoGathering" "${LOCALE_TS_PA
module_add_translations(${MODULE_TARGET}
TS_FILES ${TS_FILES}
SOURCES ${INTEGRATED_MODULE_SOURCE}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+ INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR})
+
+# Build a signed `*.gfmodule` alongside the loose library. Packages are where
+# this is going -- loose libraries are transitional and a future version will
+# stop loading them -- but both are produced for now, so that a build of this
+# tree keeps working while the rest of the modules are packaged.
+gf_add_module_package(
+ TARGET gpg_info
+ MODULE_ID com.bktus.gpgfrontend.module.gnupg_info_gathering
+ VERSION 1.2.2
+ CAPABILITIES gpg
+ META "Name=GatherGnupgInfo"
+ "Description=Try gathering gnupg information."
+ "Author=Saturneric")
diff --git a/src/m_key_server_sync/CMakeLists.txt b/src/m_key_server_sync/CMakeLists.txt
index 58a6b65..1d4c5f4 100644
--- a/src/m_key_server_sync/CMakeLists.txt
+++ b/src/m_key_server_sync/CMakeLists.txt
@@ -41,4 +41,14 @@ gpgfrontend_collect_ts_files(TS_FILES "ModuleKeyServerSync" "${LOCALE_TS_PATH}")
module_add_translations(${MODULE_TARGET}
TS_FILES ${TS_FILES}
SOURCES ${INTEGRATED_MODULE_SOURCE}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+ INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR})
+
+# Build a signed `*.gfmodule` alongside the loose library. See m_email.
+gf_add_module_package(
+ TARGET key_server_sync
+ MODULE_ID com.bktus.gpgfrontend.module.key_server_sync
+ VERSION 1.3.2
+ CAPABILITIES gpg ui network
+ META "Name=KeyServerSync"
+ "Description=Sync Information From Trusted Key Server."
+ "Author=Saturneric")
diff --git a/src/m_ver_check/CMakeLists.txt b/src/m_ver_check/CMakeLists.txt
index efe5629..75689aa 100644
--- a/src/m_ver_check/CMakeLists.txt
+++ b/src/m_ver_check/CMakeLists.txt
@@ -44,4 +44,14 @@ gpgfrontend_collect_ts_files(TS_FILES "ModuleVersionChecking" "${LOCALE_TS_PATH}
module_add_translations(${MODULE_TARGET}
TS_FILES ${TS_FILES}
SOURCES ${INTEGRATED_MODULE_SOURCE}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file
+ INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR})
+
+# Build a signed `*.gfmodule` alongside the loose library. See m_email.
+gf_add_module_package(
+ TARGET ver_check
+ MODULE_ID com.bktus.gpgfrontend.module.version_checking
+ VERSION 1.5.0
+ CAPABILITIES ui network
+ META "Name=VersionChecking"
+ "Description=Try checking GpgFrontend version."
+ "Author=Saturneric")