Skip to content

Commit

Permalink
Initial deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
arlake228 committed Oct 24, 2023
1 parent c4605e4 commit 87e86e9
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/oneshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
#fail-fast: true
matrix:
os: [ 'el9' ]
os: [ 'el9', 'u20' ]

runs-on: ubuntu-latest

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
perfsonar-host-metrics (5.0.5-1) perfsonar-5.0; urgency=low

* Initial release.

-- perfSONAR developers <[email protected]> Tue, 24 Oct 2023 19:19:42 -0400
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Source: perfsonar-host-metrics
Maintainer: perfSONAR developers <[email protected]>
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: perfsonar-host-metrics
Source: <http://www.perfsonar.net>

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".
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
apache-node_exporter.conf /etc/apache2/conf-available/
exporter_opts.sh /usr/lib/perfsonar/host_metrics/
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/make -f
%:
dh $@ --with systemd

override_dh_auto_clean:


override_dh_auto_build:


override_dh_auto_install:
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 87e86e9

Please sign in to comment.