Compare commits
No commits in common. "master" and "upstream" have entirely different histories.
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -1,12 +0,0 @@
|
||||
prometheus-pushgateway (1.1.0-1) UNRELEASED; urgency=medium
|
||||
|
||||
* Bump
|
||||
* Bump
|
||||
|
||||
-- Mario Fetka <mario.fetka@gmail.com> Wed, 12 Feb 2020 14:02:56 +0100
|
||||
|
||||
prometheus-pushgateway (0.9.1) stable; urgency=medium
|
||||
|
||||
* Version bump to 0.9.1.
|
||||
|
||||
-- Jiri Tyr <jiri.tyr@gmail.com> Mon, 12 Aug 2019 14:57:49 +0200
|
10
debian/control
vendored
10
debian/control
vendored
@ -1,10 +0,0 @@
|
||||
Source: prometheus-pushgateway
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Jiri Tyr <jiri.tyr@gmail.com>
|
||||
Standards-Version: 4.1.1
|
||||
Homepage: https://prometheus.io/
|
||||
|
||||
Package: prometheus-pushgateway
|
||||
Architecture: any
|
||||
Description: Push acceptor for ephemeral and batch jobs to expose their metrics to Prometheus
|
1
debian/default
vendored
1
debian/default
vendored
@ -1 +0,0 @@
|
||||
PUSHGATEWAY_OPTS=""
|
24
debian/postinst
vendored
24
debian/postinst
vendored
@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Add prometheus user
|
||||
if ! getent passwd prometheus > /dev/null; then
|
||||
adduser --quiet --system --home /var/lib/prometheus \
|
||||
--group --gecos "Prometheus services" prometheus || true
|
||||
fi
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
:
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
46
debian/rules
vendored
46
debian/rules
vendored
@ -1,46 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
define checkdir
|
||||
@test -f debian/rules || \
|
||||
(echo Not in correct source directory; exit 1)
|
||||
endef
|
||||
|
||||
define checkroot
|
||||
@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
|
||||
endef
|
||||
|
||||
PACKAGE = pushgateway
|
||||
TOP_DIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
||||
SRC_DIR = $(TOP_DIR)
|
||||
DEB_DIR = $(TOP_DIR)/debian
|
||||
DEST_DIR = $(DEB_DIR)/$(PACKAGE)
|
||||
|
||||
BIN_DIR = $(DEST_DIR)/usr/bin
|
||||
CONF_DIR = $(DEST_DIR)/etc/prometheus
|
||||
DEFAULT_DIR = $(DEST_DIR)/etc/default
|
||||
DOCS_DIR = $(DEST_DIR)/usr/share/doc/$(PACKAGE)
|
||||
SYSD_DIR = $(DEST_DIR)/usr/lib/systemd/system
|
||||
|
||||
build:
|
||||
|
||||
binary:
|
||||
$(checkdir)
|
||||
$(checkroot)
|
||||
mkdir -p $(DEST_DIR)/DEBIAN $(BIN_DIR) $(CONF_DIR) $(DEFAULT_DIR) $(DOCS_DIR) $(SYSD_DIR)
|
||||
install -Dm755 $(SRC_DIR)/$(PACKAGE) -t $(BIN_DIR)
|
||||
install -Dm644 $(SRC_DIR)/LICENSE -t $(DOCS_DIR)
|
||||
install -Dm644 $(SRC_DIR)/NOTICE -t $(DOCS_DIR)
|
||||
install -Dm755 $(DEB_DIR)/postinst -t $(DEST_DIR)/DEBIAN
|
||||
install -Dm644 $(DEB_DIR)/default $(DEFAULT_DIR)/$(PACKAGE)
|
||||
install -Dm644 $(DEB_DIR)/service $(SYSD_DIR)/$(PACKAGE).service
|
||||
dpkg-gencontrol -P$(DEST_DIR)
|
||||
cd $(DEST_DIR) && find . -type f ! -regex '.*DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
|
||||
dpkg-deb -b $(DEST_DIR) ../
|
||||
|
||||
clean:
|
||||
$(checkdir)
|
||||
-rm -rf debian/$(PACKAGE)
|
||||
-rm -f debian/files
|
||||
-rm -f debian/substvars
|
||||
|
||||
.PHONY: binary clean
|
17
debian/service
vendored
17
debian/service
vendored
@ -1,17 +0,0 @@
|
||||
# -*- mode: conf -*-
|
||||
|
||||
[Unit]
|
||||
Description=Prometheus Pushgateway.
|
||||
Documentation=https://github.com/prometheus/pushgateway
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/pushgateway
|
||||
User=prometheus
|
||||
ExecStart=/usr/bin/pushgateway \
|
||||
$PUSHGATEWAY_OPTS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user