Date: Thursday, January 17, 2019 @ 22:46:02 Author: demize Revision: 344405
archrelease: copy trunk to testing-x86_64 Added: prometheus/repos/testing-x86_64/PKGBUILD (from rev 344404, prometheus/trunk/PKGBUILD) prometheus/repos/testing-x86_64/prometheus.service (from rev 344404, prometheus/trunk/prometheus.service) prometheus/repos/testing-x86_64/prometheus.sysusers (from rev 344404, prometheus/trunk/prometheus.sysusers) Deleted: prometheus/repos/testing-x86_64/PKGBUILD prometheus/repos/testing-x86_64/prometheus.service prometheus/repos/testing-x86_64/prometheus.sysusers ---------------------+ PKGBUILD | 128 +++++++++++++++++++++++++------------------------- prometheus.service | 34 ++++++------- prometheus.sysusers | 2 3 files changed, 82 insertions(+), 82 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-01-17 22:45:51 UTC (rev 344404) +++ PKGBUILD 2019-01-17 22:46:02 UTC (rev 344405) @@ -1,64 +0,0 @@ -# Maintainer: Johannes Löthberg <johan...@kyriasis.com> - -pkgname=prometheus -pkgver=2.6.0 -pkgrel=3 - -pkgdesc='An open-source systems monitoring and alerting toolkit' -url='https://prometheus.io' -arch=('x86_64') -license=('Apache') - -depends=('glibc') -makedepends=('go-pie' 'git' 'bzr') - -backup=('etc/prometheus/prometheus.yml') - -source=("https://github.com/prometheus/prometheus/archive/v$pkgver.tar.gz" - prometheus.service - prometheus.sysusers) - -sha256sums=('e0d3e77e45466fd055726268354a02834968a3275791be6cbd17513ec7860c1d' - 'e3f742c3e6eca7d4e0e6d190d88cf71692ca8810a77ef66831e450cb8e0a84a7' - '2747fabb4e56b808361eb7dd7acf9729ab8973d1ebe2f857dd56f6c71f71e45f') - -build() { - cd prometheus-$pkgver - - go build \ - -gcflags "all=-trimpath=${PWD}" \ - -asmflags "all=-trimpath=${PWD}" \ - -ldflags "-extldflags ${LDFLAGS}" \ - ./cmd/prometheus - go build \ - -gcflags "all=-trimpath=${PWD}" \ - -asmflags "all=-trimpath=${PWD}" \ - -ldflags "-extldflags ${LDFLAGS}" \ - ./cmd/promtool -} - -check() { - cd prometheus-$pkgver - - go test ./... -} - -package() { - install -Dm644 prometheus.service "$pkgdir"/usr/lib/systemd/system/prometheus.service - install -Dm644 prometheus.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus.conf - - cd prometheus-$pkgver - - install -Dm755 -t "$pkgdir"/usr/bin prometheus promtool - install -Dm640 -g210 -t "$pkgdir"/etc/prometheus documentation/examples/prometheus.yml - install -dm755 -o210 -g210 "$pkgdir"/var/lib/prometheus - - # Web - install -dm755 "$pkgdir"/usr/share/prometheus/ - cp -R web/ui "$pkgdir"/usr/share/prometheus/web - - # Examples - install -Dm644 -t "$pkgdir"/usr/share/doc/prometheus/examples documentation/examples/prometheus*.yml - cp -R consoles console_libraries "$pkgdir"/usr/share/doc/prometheus/examples - -} Copied: prometheus/repos/testing-x86_64/PKGBUILD (from rev 344404, prometheus/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-01-17 22:46:02 UTC (rev 344405) @@ -0,0 +1,64 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> + +pkgname=prometheus +pkgver=2.6.1 +pkgrel=1 + +pkgdesc='An open-source systems monitoring and alerting toolkit' +url='https://prometheus.io' +arch=('x86_64') +license=('Apache') + +depends=('glibc') +makedepends=('go-pie' 'git' 'bzr') + +backup=('etc/prometheus/prometheus.yml') + +source=("https://github.com/prometheus/prometheus/archive/v$pkgver.tar.gz" + prometheus.service + prometheus.sysusers) + +sha256sums=('3ece7541e090e6c11c0c35a0856b99005094aded0152e1e3e71ea2390ac8069f' + 'e3f742c3e6eca7d4e0e6d190d88cf71692ca8810a77ef66831e450cb8e0a84a7' + '2747fabb4e56b808361eb7dd7acf9729ab8973d1ebe2f857dd56f6c71f71e45f') + +build() { + cd prometheus-$pkgver + + go build \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" \ + ./cmd/prometheus + go build \ + -gcflags "all=-trimpath=${PWD}" \ + -asmflags "all=-trimpath=${PWD}" \ + -ldflags "-extldflags ${LDFLAGS}" \ + ./cmd/promtool +} + +check() { + cd prometheus-$pkgver + + go test ./... +} + +package() { + install -Dm644 prometheus.service "$pkgdir"/usr/lib/systemd/system/prometheus.service + install -Dm644 prometheus.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus.conf + + cd prometheus-$pkgver + + install -Dm755 -t "$pkgdir"/usr/bin prometheus promtool + install -Dm640 -g210 -t "$pkgdir"/etc/prometheus documentation/examples/prometheus.yml + install -dm755 -o210 -g210 "$pkgdir"/var/lib/prometheus + + # Web + install -dm755 "$pkgdir"/usr/share/prometheus/ + cp -R web/ui "$pkgdir"/usr/share/prometheus/web + + # Examples + install -Dm644 -t "$pkgdir"/usr/share/doc/prometheus/examples documentation/examples/prometheus*.yml + cp -R consoles console_libraries "$pkgdir"/usr/share/doc/prometheus/examples + +} Deleted: prometheus.service =================================================================== --- prometheus.service 2019-01-17 22:45:51 UTC (rev 344404) +++ prometheus.service 2019-01-17 22:46:02 UTC (rev 344405) @@ -1,17 +0,0 @@ -[Unit] -Description=Prometheus service -Requires=network-online.target -After=network-online.target - -[Service] -User=prometheus -Group=prometheus -Restart=on-failure -ExecStart=/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data -ExecReload=/bin/kill -HUP $MAINPID -NoNewPrivileges=true -ProtectHome=true -ProtectSystem=full - -[Install] -WantedBy=multi-user.target Copied: prometheus/repos/testing-x86_64/prometheus.service (from rev 344404, prometheus/trunk/prometheus.service) =================================================================== --- prometheus.service (rev 0) +++ prometheus.service 2019-01-17 22:46:02 UTC (rev 344405) @@ -0,0 +1,17 @@ +[Unit] +Description=Prometheus service +Requires=network-online.target +After=network-online.target + +[Service] +User=prometheus +Group=prometheus +Restart=on-failure +ExecStart=/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data +ExecReload=/bin/kill -HUP $MAINPID +NoNewPrivileges=true +ProtectHome=true +ProtectSystem=full + +[Install] +WantedBy=multi-user.target Deleted: prometheus.sysusers =================================================================== --- prometheus.sysusers 2019-01-17 22:45:51 UTC (rev 344404) +++ prometheus.sysusers 2019-01-17 22:46:02 UTC (rev 344405) @@ -1 +0,0 @@ -u prometheus 210 "Prometheus dedicated user" Copied: prometheus/repos/testing-x86_64/prometheus.sysusers (from rev 344404, prometheus/trunk/prometheus.sysusers) =================================================================== --- prometheus.sysusers (rev 0) +++ prometheus.sysusers 2019-01-17 22:46:02 UTC (rev 344405) @@ -0,0 +1 @@ +u prometheus 210 "Prometheus dedicated user"