diff --git a/.github/packaging/debian/control.body.template b/.github/packaging/debian/control.body.template index 4a9238ec0..340a0939e 100644 --- a/.github/packaging/debian/control.body.template +++ b/.github/packaging/debian/control.body.template @@ -1,7 +1,7 @@ Package: @NAME@ Architecture: all -Description: @SUMMARY@ +Description: @SUMMARY@@CUSTOM_PKG_DATA@ Depends: ${shlibs:Depends}, ${misc:Depends}, diff --git a/.github/scripts/plugin-packaging-deb.sh b/.github/scripts/plugin-packaging-deb.sh index 2d95f0049..1ae6eff80 100755 --- a/.github/scripts/plugin-packaging-deb.sh +++ b/.github/scripts/plugin-packaging-deb.sh @@ -33,8 +33,14 @@ for PLUGIN in $PLUGINS; do pkg_summary=$(echo "${pkg_values[0]}") plugin_name=$(echo "${pkg_values[1]}") deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies | join(",\\n ")') + deb_custom_pkg_data=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '("\\n" + .custom_pkg_data) // ""') - sed -e "s/@NAME@/$PLUGIN_NAME_LOWER/g" -e "s/@SUMMARY@/$pkg_summary/g" -e "s/@REQUIRES@/$deb_dependencies/g" < centreon-plugins/debian/control.body.template >> centreon-plugins/debian/control + sed -e "s/@NAME@/$PLUGIN_NAME_LOWER/g" \ + -e "s/@SUMMARY@/$pkg_summary/g" \ + -e "s/@REQUIRES@/$deb_dependencies/g" \ + -e "s/@CUSTOM_PKG_DATA@/$deb_custom_pkg_data/g" \ + < centreon-plugins/debian/control.body.template \ + >> centreon-plugins/debian/control # .install file sed -e "s/@DIR@/$PLUGIN/g" -e "s/@NAME@/$plugin_name/g" < centreon-plugins/debian/plugin.install.template >> centreon-plugins/debian/$PLUGIN_NAME_LOWER.install diff --git a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json index 9757fe112..0e63cdedf 100644 --- a/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json +++ b/packaging/centreon-plugin-Applications-Cisco-Ssms-Restapi/deb.json @@ -1,4 +1,5 @@ { "dependencies": [ - ] + ], + "custom_pkg_data": "Provides: centreon-plugin-Network-Cisco-Ssms-Restapi\\nReplaces: centreon-plugin-Network-Cisco-Ssms-Restapi\\nConflicts: centreon-plugin-Network-Cisco-Ssms-Restapi" }