File tree Expand file tree Collapse file tree
widgets/centreon-widget-host-monitoring Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ try {
147147 dir(' centreon-widget-host-monitoring' ) {
148148 checkout scm
149149 }
150- sh ' docker run -i --entrypoint "/src/centreon-widget-host-monitoring/ci/scripts/widget-deb-package.sh" -w "/src" -v "$PWD:/src" -e "DISTRIB=Debian11 " -e "VERSION=$VERSION" -e "RELEASE=$RELEASE" registry.centreon.com/centreon-debian11-dependencies:22.04'
150+ sh ' docker run -i --entrypoint "/src/centreon-widget-host-monitoring/ci/scripts/widget-deb-package.sh" -w "/src" -v "$PWD:/src" -e "DISTRIB=bullseye " -e "VERSION=$VERSION" -e "RELEASE=$RELEASE" registry.centreon.com/centreon-debian11-dependencies:22.04'
151151 stash name : ' Debian11' , includes : ' *.deb'
152152 archiveArtifacts artifacts : " *.deb"
153153 }
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ Package: centreon-widget-host-monitoring
1010Architecture: all
1111Depends: ${misc:Depends},
1212 ${shlibs:Depends},
13- centreon-web
13+ centreon-web (>= ${centreon:version}~)
1414Description: Add homepage with Centreon Widgets
Original file line number Diff line number Diff line change 1- host-monitoring usr/share/centreon/www/widgets
1+ host-monitoring usr/share/centreon/www/widgets
2+
3+
Original file line number Diff line number Diff line change @@ -4,3 +4,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
44
55% :
66 dh $@
7+
8+ override_dh_gencontrol :
9+ dh_gencontrol -- -Tdebian/substvars
Original file line number Diff line number Diff line change 1+ centreon:version=
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ mkdir -p /build/$PROJECT
2323(cd /src && tar czvpf - $PROJECT ) | dd of=$PROJECT -$VERSION .tar.gz
2424cp -rv /src/$PROJECT /build/
2525cp -rv /src/$PROJECT /ci/debian /build/$PROJECT /
26+ sed -i " s/^centreon:version=.*$/centreon:version=$( echo $VERSION | egrep -o ' ^[0-9][0-9].[0-9][0-9]' ) /" /build/$PROJECT /debian/substvars
2627
2728ls -lart
2829cd /build/$PROJECT
29- debmake -f " ${AUTHOR} " -e " ${AUTHOR_EMAIL} " -u " $VERSION " -y -r " $RELEASE "
30+ debmake -f " ${AUTHOR} " -e " ${AUTHOR_EMAIL} " -u " $VERSION " -y -r " $DISTRIB "
31+
3032debuild-pbuilder
3133cd /build
3234
You can’t perform that action at this time.
0 commit comments