fix(packaging): fix packaged files and java dependencies (#5253)
Co-authored-by: May <110405507+mushroomempires@users.noreply.github.com>
This commit is contained in:
parent
09a2393a63
commit
8bb8d404dd
|
@ -64,8 +64,8 @@ jobs:
|
||||||
-type f \
|
-type f \
|
||||||
-exec grep -E '(@CONNECTOR_VERSION@)|(@CONNECTOR_HOME@)|(@CONNECTOR_ETC@)|(@CONNECTOR_LOG@)|(@CONNECTOR_USER@)|(@JAVA_BIN@)' {} ';' \
|
-exec grep -E '(@CONNECTOR_VERSION@)|(@CONNECTOR_HOME@)|(@CONNECTOR_ETC@)|(@CONNECTOR_LOG@)|(@CONNECTOR_USER@)|(@JAVA_BIN@)' {} ';' \
|
||||||
-exec sed -i \
|
-exec sed -i \
|
||||||
-e 's|@CONNECTOR_VERSION@|'"%{version}"'|g' \
|
-e 's|@CONNECTOR_VERSION@|'"${{ needs.get-environment.outputs.version }}"'|g' \
|
||||||
-e 's|@CONNECTOR_HOME@|'"%{_datadir}/centreon-as400"'|g' \
|
-e 's|@CONNECTOR_HOME@|'"/usr/share/centreon-as400"'|g' \
|
||||||
-e 's|@CONNECTOR_ETC@|'"/etc/centreon-as400/"'|g' \
|
-e 's|@CONNECTOR_ETC@|'"/etc/centreon-as400/"'|g' \
|
||||||
-e 's|@CONNECTOR_LOG@|'"/var/log/centreon-as400/"'|g' \
|
-e 's|@CONNECTOR_LOG@|'"/var/log/centreon-as400/"'|g' \
|
||||||
-e 's|@CONNECTOR_USER@|'"centreon-as400"'|g' \
|
-e 's|@CONNECTOR_USER@|'"centreon-as400"'|g' \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
2024-10-21 Pieter Kippes <pkippes@centreon.com> - 2.0.6
|
2024-10-21 Pieter Kippes <pkippes@centreon.com> - 2.0.6
|
||||||
* Fixed packaging
|
* Fixed packaging issues with config files and java version
|
||||||
|
|
||||||
2024-10-18 Pieter Kippes <pkippes@centreon.com> - 2.0.5
|
2024-10-18 Pieter Kippes <pkippes@centreon.com> - 2.0.5
|
||||||
* Fixed packaging for config files
|
* Fixed packaging for config files
|
||||||
|
|
|
@ -73,8 +73,8 @@
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.13.0</version>
|
<version>3.13.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>17</source>
|
<source>11</source>
|
||||||
<target>17</target>
|
<target>11</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ homepage: "https://www.centreon.com"
|
||||||
license: "Apache-2.0"
|
license: "Apache-2.0"
|
||||||
|
|
||||||
contents:
|
contents:
|
||||||
- src: "../connector.as400/target/centreon-as400-${VERSION}-jar-with-dependencies.jar" # VARIABLE VERSION REQUIRED HERE
|
- src: "../connector.as400/target/centreon-as400-@CONNECTOR_VERSION@-jar-with-dependencies.jar" # VARIABLE VERSION REQUIRED HERE
|
||||||
dst: "/usr/share/centreon-as400/bin/centreon-as400-${VERSION}-jar-with-dependencies.jar" # VARIABLE VERSION REQUIRED HERE
|
dst: "/usr/share/centreon-as400/bin/centreon-as400-@CONNECTOR_VERSION@-jar-with-dependencies.jar" # VARIABLE VERSION REQUIRED HERE
|
||||||
expand: true
|
expand: true
|
||||||
file_info:
|
file_info:
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -60,10 +60,10 @@ scripts:
|
||||||
overrides:
|
overrides:
|
||||||
rpm:
|
rpm:
|
||||||
depends:
|
depends:
|
||||||
- java-1.8.0-openjdk
|
- "java-17-openjdk"
|
||||||
deb:
|
deb:
|
||||||
depends:
|
depends:
|
||||||
- default-jre
|
- "openjdk-17-jre"
|
||||||
|
|
||||||
rpm:
|
rpm:
|
||||||
summary: Centreon AS 400 Plugin daemon
|
summary: Centreon AS 400 Plugin daemon
|
||||||
|
|
Loading…
Reference in New Issue