diff --git a/.gitignore b/.gitignore index 68bc17f..2217b83 100644 --- a/.gitignore +++ b/.gitignore @@ -14,11 +14,9 @@ dist/ downloads/ eggs/ .eggs/ -lib/ lib64/ parts/ sdist/ -var/ wheels/ share/python-wheels/ *.egg-info/ diff --git a/.woodpecker.yml b/.woodpecker.yml index 6b99d09..10e9b52 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -38,9 +38,9 @@ pipeline: - echo -n > package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog - | for version in "$(cat CHANGELOG.md | grep '" | grep -B 1000 "<"'!'"-- END CHANGES ${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g' >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog - echo -e "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog + echo -e "prometheus-tlsrpt-exporter ($${version}-1); urgency=medium\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog + cat CHANGELOG.md | grep -A 1000 "<"'!'"-- BEGIN CHANGES $${version} -->" | grep -B 1000 "<"'!'"-- END CHANGES $${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g' >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog + echo -e "\n -- $${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog done - gzip -9n package/debian/prometheus-tlsrpt-exporter/usr/share/doc/prometheus-tlsrpt-exporter/changelog - mkdir -p package/debian/prometheus-tlsrpt-exporter/usr/share/prometheus-tlsrpt-exporter diff --git a/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service b/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service new file mode 100644 index 0000000..fa6232a --- /dev/null +++ b/package/debian/prometheus-tlsrpt-exporter/lib/systemd/system/prometheus-tlsrpt-exporter.service @@ -0,0 +1,11 @@ +[Unit] +Description=Prometheus exporter for TLSRPT reports +After=networking.target + +[Service] +EnvironmentFile=-/etc/default/prometheus-tlsrpt-exporter +ExecStart=/usr/bin/prometheus-tlsrpt-exporter $ARGS +User=prometheus-tlsrpt-exporter + +[Install] +WantedBy=multi-user.target