diff --git a/.github/workflows/oneshot-build.yml b/.github/workflows/oneshot-build.yml index 9c175a4..28a49cb 100644 --- a/.github/workflows/oneshot-build.yml +++ b/.github/workflows/oneshot-build.yml @@ -5,7 +5,7 @@ jobs: strategy: #fail-fast: true matrix: - os: [ 'el9' ] + os: [ 'el9', 'u20' ] runs-on: ubuntu-latest diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/changelog b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/changelog new file mode 100644 index 0000000..cbc0118 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/changelog @@ -0,0 +1,5 @@ +perfsonar-host-metrics (5.0.5-1) perfsonar-5.0; urgency=low + + * Initial release. + + -- perfSONAR developers Tue, 24 Oct 2023 19:19:42 -0400 \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/compat b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/compat new file mode 100644 index 0000000..9a03714 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/compat @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/control b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/control new file mode 100644 index 0000000..22a37a7 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/control @@ -0,0 +1,14 @@ +Source: perfsonar-host-metrics +Maintainer: perfSONAR developers +Section: net +Priority: optional +Standards-Version: 4.3.0 +Build-Depends: debhelper (>= 10) +Homepage: http://www.perfsonar.net + +Package: perfsonar-host-metrics +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, prometheus-node-exporter, + openssl, apache2, apache2-ssl-dev, perfsonar-common +Description: perfSONAR Host Metrics + A package that installs and sets-up Prometheus node_exporter for a perfSONAR install diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/copyright b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/copyright new file mode 100644 index 0000000..7d41b62 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: perfsonar-host-metrics +Source: + +Files: * +Copyright: 2000-2023 perfSONAR project +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.install b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.install new file mode 100644 index 0000000..f2e28f8 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.install @@ -0,0 +1,2 @@ +apache-node_exporter.conf /etc/apache2/conf-available/ +exporter_opts.sh /usr/lib/perfsonar/host_metrics/ \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.postinst b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.postinst new file mode 100644 index 0000000..bce45d3 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/perfsonar-host-metrics.postinst @@ -0,0 +1,43 @@ +#!/bin/bash +# postinst script for perfsonar-archive +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + # check if installation or update, where version is a parameter + if [ -z "$2" ]; then + + #set node_exporter opts + bash /usr/lib/perfsonar/host_metrics/exporter_opts.sh + + #enable node_exporter + systemctl daemon-reload + systemctl enable node_exporter.service + systemctl restart node_exporter.service + + # Apache setup + if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then + . /usr/share/apache2/apache2-maintscript-helper + + apache2_invoke enmod ssl + apache2_invoke enmod proxy + apache2_invoke enmod proxy_http + apache2_invoke enconf apache-node_exporter + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# +exit 0 \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/rules b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/rules new file mode 100644 index 0000000..f61fe3a --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +%: + dh $@ --with systemd + +override_dh_auto_clean: + + +override_dh_auto_build: + + +override_dh_auto_install: \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/source/format b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/source/format new file mode 100644 index 0000000..46ebe02 --- /dev/null +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/deb/source/format @@ -0,0 +1 @@ +3.0 (quilt) \ No newline at end of file diff --git a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/rpm/perfsonar-host-metrics.spec b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/rpm/perfsonar-host-metrics.spec index a763bf3..119a15d 100644 --- a/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/rpm/perfsonar-host-metrics.spec +++ b/perfsonar-host-metrics/perfsonar-host-metrics/unibuild-packaging/rpm/perfsonar-host-metrics.spec @@ -33,7 +33,7 @@ BuildRequires: selinux-policy-devel %{?selinux_requires} %description -A package that installs sets-up Prometheus node_exporter for a perfSONAR install +A package that installs and sets-up Prometheus node_exporter for a perfSONAR install %prep %setup -q -n perfsonar-host-metrics-%{version}