[arch-commits] Commit in prometheus/repos (7 files)
Johannes Löthberg
demize at archlinux.org
Sun Dec 15 16:00:06 UTC 2019
Date: Sunday, December 15, 2019 @ 16:00:06
Author: demize
Revision: 371514
archrelease: copy trunk to extra-x86_64
Added:
prometheus/repos/extra-x86_64/PKGBUILD
(from rev 371513, prometheus/trunk/PKGBUILD)
prometheus/repos/extra-x86_64/prometheus.service
(from rev 371513, prometheus/trunk/prometheus.service)
prometheus/repos/extra-x86_64/prometheus.sysusers
(from rev 371513, prometheus/trunk/prometheus.sysusers)
Deleted:
prometheus/repos/community-x86_64/
prometheus/repos/extra-x86_64/PKGBUILD
prometheus/repos/extra-x86_64/prometheus.service
prometheus/repos/extra-x86_64/prometheus.sysusers
----------------------------------+
/PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++
/prometheus.service | 27 +++++++++++++
/prometheus.sysusers | 1
extra-x86_64/PKGBUILD | 71 ------------------------------------
extra-x86_64/prometheus.service | 27 -------------
extra-x86_64/prometheus.sysusers | 1
6 files changed, 100 insertions(+), 99 deletions(-)
Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD 2019-12-15 15:58:53 UTC (rev 371513)
+++ extra-x86_64/PKGBUILD 2019-12-15 16:00:06 UTC (rev 371514)
@@ -1,71 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-
-pkgname=prometheus
-pkgver=2.14.0
-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=('5c40de1961997996ef5b59561a78116a9548235bc77305c05f214b6319a0284d'
- '116a5444d7da1f96446a9801f0c9df9c45e7d6af497c9fabf36f0dd26c31c025'
- '2747fabb4e56b808361eb7dd7acf9729ab8973d1ebe2f857dd56f6c71f71e45f')
-
-build() {
- cd prometheus-$pkgver
-
- LDFLAGS="-extldflags $LDFLAGS \
- -X github.com/prometheus/common/version.Version=$pkgver \
- -X github.com/prometheus/common/version.Revision=$pkgver \
- -X github.com/prometheus/common/version.Branch=tarball \
- -X github.com/prometheus/common/version.BuildUser=someone at builder \
- -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)"
-
- go build \
- -gcflags "all=-trimpath=$PWD" \
- -asmflags "all=-trimpath=$PWD" \
- -ldflags "$LDFLAGS" \
- ./cmd/prometheus
- go build \
- -gcflags "all=-trimpath=$PWD" \
- -asmflags "all=-trimpath=$PWD" \
- -ldflags "$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/extra-x86_64/PKGBUILD (from rev 371513, prometheus/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2019-12-15 16:00:06 UTC (rev 371514)
@@ -0,0 +1,72 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=prometheus
+pkgver=2.14.0
+pkgrel=2
+
+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' 'yarn')
+
+backup=('etc/prometheus/prometheus.yml')
+
+source=("https://github.com/prometheus/prometheus/archive/v$pkgver.tar.gz"
+ prometheus.service
+ prometheus.sysusers)
+
+sha256sums=('5c40de1961997996ef5b59561a78116a9548235bc77305c05f214b6319a0284d'
+ '116a5444d7da1f96446a9801f0c9df9c45e7d6af497c9fabf36f0dd26c31c025'
+ '2747fabb4e56b808361eb7dd7acf9729ab8973d1ebe2f857dd56f6c71f71e45f')
+
+build() {
+ cd prometheus-$pkgver
+
+ LDFLAGS="-extldflags $LDFLAGS \
+ -X github.com/prometheus/common/version.Version=$pkgver \
+ -X github.com/prometheus/common/version.Revision=$pkgver \
+ -X github.com/prometheus/common/version.Branch=tarball \
+ -X github.com/prometheus/common/version.BuildUser=someone at builder \
+ -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)"
+
+ make assets
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "$LDFLAGS" \
+ ./cmd/prometheus
+ go build \
+ -gcflags "all=-trimpath=$PWD" \
+ -asmflags "all=-trimpath=$PWD" \
+ -ldflags "$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/web/ui
+ cp -R web/ui/{static,templates} "$pkgdir"/usr/share/prometheus/web/ui/
+
+ # 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: extra-x86_64/prometheus.service
===================================================================
--- extra-x86_64/prometheus.service 2019-12-15 15:58:53 UTC (rev 371513)
+++ extra-x86_64/prometheus.service 2019-12-15 16:00:06 UTC (rev 371514)
@@ -1,27 +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
-ProtectHostname=true
-ProtectControlGroups=true
-ProtectKernelModules=true
-ProtectKernelTunables=true
-LockPersonality=true
-RestrictRealtime=yes
-RestrictNamespaces=yes
-MemoryDenyWriteExecute=yes
-PrivateDevices=yes
-CapabilityBoundingSet=
-
-[Install]
-WantedBy=multi-user.target
Copied: prometheus/repos/extra-x86_64/prometheus.service (from rev 371513, prometheus/trunk/prometheus.service)
===================================================================
--- extra-x86_64/prometheus.service (rev 0)
+++ extra-x86_64/prometheus.service 2019-12-15 16:00:06 UTC (rev 371514)
@@ -0,0 +1,27 @@
+[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
+ProtectHostname=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+LockPersonality=true
+RestrictRealtime=yes
+RestrictNamespaces=yes
+MemoryDenyWriteExecute=yes
+PrivateDevices=yes
+CapabilityBoundingSet=
+
+[Install]
+WantedBy=multi-user.target
Deleted: extra-x86_64/prometheus.sysusers
===================================================================
--- extra-x86_64/prometheus.sysusers 2019-12-15 15:58:53 UTC (rev 371513)
+++ extra-x86_64/prometheus.sysusers 2019-12-15 16:00:06 UTC (rev 371514)
@@ -1 +0,0 @@
-u prometheus 210 "Prometheus dedicated user"
Copied: prometheus/repos/extra-x86_64/prometheus.sysusers (from rev 371513, prometheus/trunk/prometheus.sysusers)
===================================================================
--- extra-x86_64/prometheus.sysusers (rev 0)
+++ extra-x86_64/prometheus.sysusers 2019-12-15 16:00:06 UTC (rev 371514)
@@ -0,0 +1 @@
+u prometheus 210 "Prometheus dedicated user"
More information about the arch-commits
mailing list