mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix(packaging): manage custom instructions for debian packaging (#4398)
* fix(packaging): manage custom instructions for debian packaging * fix(packaging): manage custom instructions for debian packaging * fix(packaging): manage custom instructions for debian packaging * fix(packaging): manage custom instructions for debian packaging * fix(packaging): manage custom instructions for debian packaging * fix(packaging): manage custom instructions for debian packaging * breaks * fix * fix * fix * fix
This commit is contained in:
parent
8e41e054ae
commit
9b3b6d33e1
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Package: @NAME@
|
Package: @NAME@
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Description: @SUMMARY@
|
Description: @SUMMARY@@CUSTOM_PKG_DATA@
|
||||||
Depends:
|
Depends:
|
||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
|
8
.github/scripts/plugin-packaging-deb.sh
vendored
8
.github/scripts/plugin-packaging-deb.sh
vendored
@ -33,8 +33,14 @@ for PLUGIN in $PLUGINS; do
|
|||||||
pkg_summary=$(echo "${pkg_values[0]}")
|
pkg_summary=$(echo "${pkg_values[0]}")
|
||||||
plugin_name=$(echo "${pkg_values[1]}")
|
plugin_name=$(echo "${pkg_values[1]}")
|
||||||
deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies | join(",\\n ")')
|
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
|
# .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
|
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
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"dependencies": [
|
"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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user