[arch-commits] Commit in promscale/repos/community-x86_64 (6 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Jan 19 03:17:33 UTC 2022
Date: Wednesday, January 19, 2022 @ 03:17:32
Author: grawlinson
Revision: 1110409
archrelease: copy trunk to community-x86_64
Added:
promscale/repos/community-x86_64/PKGBUILD
(from rev 1110408, promscale/trunk/PKGBUILD)
promscale/repos/community-x86_64/systemd.service
(from rev 1110408, promscale/trunk/systemd.service)
promscale/repos/community-x86_64/sysusers.conf
(from rev 1110408, promscale/trunk/sysusers.conf)
Deleted:
promscale/repos/community-x86_64/PKGBUILD
promscale/repos/community-x86_64/systemd.service
promscale/repos/community-x86_64/sysusers.conf
-----------------+
PKGBUILD | 155 +++++++++++++++++++++++++++++-------------------------
systemd.service | 95 ++++++++++++++++-----------------
sysusers.conf | 2
3 files changed, 133 insertions(+), 119 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-19 03:16:13 UTC (rev 1110408)
+++ PKGBUILD 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -1,71 +0,0 @@
-# Maintainer: George Rawlinson <george at rawlinson.net.nz>
-
-pkgname=promscale
-pkgver=0.7.1
-pkgrel=1
-pkgdesc="An analytical platform for Prometheus metrics"
-arch=('x86_64')
-url="https://github.com/timescale/promscale"
-license=('Apache')
-depends=('glibc')
-makedepends=('go')
-optdepends=(
- 'timescaledb: for a local timescaledb instance'
- 'prometheus: for a local prometheus instance'
- 'promscale_extension: for optimised postgresql performance'
-)
-source=(
- "$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
- 'systemd.service'
- 'sysusers.conf'
-)
-sha512sums=('d0ad6914dfa772dc992f113738871df7f6adb461303fb57158396d4be0743c1be30c93cfb1466bbaa193121f4c82474f1b6dcb8e15e72abbcdd24a004b31c376'
- '926bfd97c57d8d146a260aaa0983f7e7181688662537f803679b7bf82a43f41197ddc82ad8fa5087dfc5daca95adef0a35c19e5fbfbb29012944e42ba9f651a3'
- 'ec5e6ec6b967119722d8fdaaaaf1a4d8dea9ad0b78707a1ddd6b55da524b571c7ecd4c2b97776c6ce9f49d4549d760482a2346c11ab287650469448d9c662726')
-b2sums=('f576c4771bef80a8f472b3b4408762632810ed287278e4b9e0fec0ac01a012f61b835385db378044160c30cde8cf17c475ef6f4d1dab90948cfaebe05f89e78f'
- '98ad7412c94ff5a6643e9eec7a1cf4c7828ef84b25ec18b4469b70cc11ccbe933cde4e822c9b33977ae8bb25bf10de6baef13f84a83bde82b3922c7056f2f712'
- '1e720f8e453d9acad5f0ed39a51b59c429322b9e9e885f3d71d0e2fd37276268e639422f8d39ca9fca14e0e5ccf646d717fbe89e0dd696980d03467cfb7d3e0f')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- # create directory for build output
- mkdir build_output
-
- # download dependencies
- go mod download
-}
-
-build() {
- cd "$pkgname-$pkgver"
-
- # set Go flags
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
-
- go build -v \
- -buildmode=pie \
- -trimpath \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
- -o build_output ./cmd/...
-}
-
-package() {
- # systemd integration
- install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
- install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
-
- # documentation
- cd "$pkgname-$pkgver"
- install -vDm644 cmd/prom-migrator/README.md "$pkgdir/usr/share/doc/$pkgname/prom-migrator.md"
- install -vDm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
- cp -vr docs "$pkgdir/usr/share/doc/$pkgname"
-
- # binaries
- install -vDm755 -t "$pkgdir/usr/bin" \
- "build_output/$pkgname" \
- build_output/prom-migrator
-}
Copied: promscale/repos/community-x86_64/PKGBUILD (from rev 1110408, promscale/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -0,0 +1,84 @@
+# Maintainer: George Rawlinson <george at rawlinson.net.nz>
+
+pkgname=promscale
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="An analytical platform for Prometheus metrics"
+arch=('x86_64')
+url="https://github.com/timescale/promscale"
+license=('Apache')
+depends=('glibc')
+makedepends=('git' 'go')
+optdepends=(
+ 'timescaledb: for a local timescaledb instance'
+ 'prometheus: for a local prometheus instance'
+ 'promscale_extension: for optimised postgresql performance'
+)
+backup=('etc/promscale.conf')
+options=('!lto')
+_commit='6caab16b3e0a0bc237f290f3288f2e7cd5c28f4b'
+source=(
+ "$pkgname::git+$url.git#commit=$_commit"
+ 'systemd.service'
+ 'sysusers.conf'
+)
+sha512sums=('SKIP'
+ '28a4f7b02c7ba36887c4b3906048fc7574d0c66424d20aad5c5c191954c7416adf19d14d6ac7dbb0fef7ff2f4457ed1014c324e9a56f9d08fc47257d8d915ddd'
+ 'ec5e6ec6b967119722d8fdaaaaf1a4d8dea9ad0b78707a1ddd6b55da524b571c7ecd4c2b97776c6ce9f49d4549d760482a2346c11ab287650469448d9c662726')
+b2sums=('SKIP'
+ '00c948fad197fcedcb4171d253b430304673681dd5761f25a6ee545a3c146e37e00f89c4f9d44fdd5ffafcfee5d5eaa5bc3cacd43a0cf46467a9eb7a7f82a281'
+ '1e720f8e453d9acad5f0ed39a51b59c429322b9e9e885f3d71d0e2fd37276268e639422f8d39ca9fca14e0e5ccf646d717fbe89e0dd696980d03467cfb7d3e0f')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build_output
+
+ # download dependencies
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+
+ go build -v \
+ -buildmode=pie \
+ -trimpath \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+ -X version.CommitHash=$($ git rev-parse HEAD) \
+ -X telemetry.BuildPlatform=archlinux" \
+ -o build_output ./cmd/...
+}
+
+package() {
+ # systemd integration
+ install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+ install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+ # documentation
+ cd "$pkgname"
+ install -vDm644 cmd/prom-migrator/README.md "$pkgdir/usr/share/doc/$pkgname/prom-migrator.md"
+ install -vDm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ cp -vr docs "$pkgdir/usr/share/doc/$pkgname"
+
+ # binaries
+ install -vDm755 -t "$pkgdir/usr/bin" \
+ "build_output/$pkgname" \
+ build_output/prom-migrator
+
+ # configuration
+ install -vDm644 -t "$pkgdir/etc" build/conf/promscale.conf
+}
Deleted: systemd.service
===================================================================
--- systemd.service 2022-01-19 03:16:13 UTC (rev 1110408)
+++ systemd.service 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -1,47 +0,0 @@
-[Unit]
-Description=Promscale service
-Documentation=https://github.com/timescale/promscale
-Requires=network-online.target
-After=network-online.target
-
-[Service]
-User=promscale
-Group=promscale
-Restart=on-failure
-RestartSec=5s
-# If PROMSCALE_ARGS is required, it should be applied using a drop-in
-# systemd file. See `man 5 systemd.unit` for details.
-ExecStart=/usr/bin/promscale $PROMSCALE_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-
-NoNewPrivileges=true
-ProtectSystem=strict
-ProtectHome=true
-PrivateTmp=true
-PrivateDevices=true
-ProtectHostname=true
-ProtectClock=true
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectKernelLogs=true
-ProtectControlGroups=true
-RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
-RestrictNamespaces=true
-LockPersonality=true
-MemoryDenyWriteExecute=true
-RestrictRealtime=true
-RestrictSUIDSGID=true
-RemoveIPC=true
-CapabilityBoundingSet=
-AmbientCapabilities=
-PrivateUsers=true
-
-SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
-SystemCallArchitectures=native
-
-LimitNOFILE=1048576
-UMask=0077
-
-[Install]
-WantedBy=multi-user.target
Copied: promscale/repos/community-x86_64/systemd.service (from rev 1110408, promscale/trunk/systemd.service)
===================================================================
--- systemd.service (rev 0)
+++ systemd.service 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -0,0 +1,48 @@
+[Unit]
+Description=TimescaleDB Promscale Service
+Documentation=https://github.com/timescale/promscale
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=promscale
+Group=promscale
+EnvironmentFile=-/etc/promscale.conf
+ExecStart=/usr/bin/promscale $OPTIONS
+Restart=on-failure
+RestartSec=5s
+KillMode=mixed
+KillSignal=SIGINT
+
+# Hardening
+NoNewPrivileges=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RestrictNamespaces=true
+LockPersonality=true
+MemoryDenyWriteExecute=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+RemoveIPC=true
+CapabilityBoundingSet=
+AmbientCapabilities=
+PrivateUsers=true
+
+SystemCallFilter=@system-service
+SystemCallFilter=~@privileged @resources
+SystemCallArchitectures=native
+
+LimitNOFILE=1048576
+UMask=0077
+
+[Install]
+WantedBy=multi-user.target
Deleted: sysusers.conf
===================================================================
--- sysusers.conf 2022-01-19 03:16:13 UTC (rev 1110408)
+++ sysusers.conf 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -1 +0,0 @@
-u promscale - "Promscale daemon user"
Copied: promscale/repos/community-x86_64/sysusers.conf (from rev 1110408, promscale/trunk/sysusers.conf)
===================================================================
--- sysusers.conf (rev 0)
+++ sysusers.conf 2022-01-19 03:17:32 UTC (rev 1110409)
@@ -0,0 +1 @@
+u promscale - "Promscale daemon user"
More information about the arch-commits
mailing list