[arch-commits] Commit in influxdb/repos/community-x86_64 (5 files)

Morten Linderud foxboron at archlinux.org
Thu Feb 25 18:22:12 UTC 2021


    Date: Thursday, February 25, 2021 @ 18:22:11
  Author: foxboron
Revision: 874160

archrelease: copy trunk to community-x86_64

Added:
  influxdb/repos/community-x86_64/PKGBUILD
    (from rev 874159, influxdb/trunk/PKGBUILD)
  influxdb/repos/community-x86_64/influxdb.service
    (from rev 874159, influxdb/trunk/influxdb.service)
Deleted:
  influxdb/repos/community-x86_64/PKGBUILD
  influxdb/repos/community-x86_64/influxdb.sysusers
  influxdb/repos/community-x86_64/influxdb.tmpfiles

-------------------+
 PKGBUILD          |  127 +++++++++++++++++++---------------------------------
 influxdb.service  |   21 ++++++++
 influxdb.sysusers |    1 
 influxdb.tmpfiles |    4 -
 4 files changed, 69 insertions(+), 84 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-25 18:22:03 UTC (rev 874159)
+++ PKGBUILD	2021-02-25 18:22:11 UTC (rev 874160)
@@ -1,79 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Nicolas Leclercq <nicolas.private at gmail.com>
-# Contributor: Adam S Levy <adam at aslevy.com>
-# Contributor: Charles B. Johnson <mail at cbjohnson.info>
-# Contributor: Daichi Shinozaki <dsdseg at gmail.com>
-# Contributor: Ben Alex <ben.alex at acegi.com.au>
-
-pkgname=influxdb
-pkgver=1.8.3
-pkgrel=1
-pkgdesc='Scalable datastore for metrics, events, and real-time analytics'
-arch=('x86_64')
-url='https://github.com/InfluxData/influxdb'
-license=('MIT')
-makedepends=('go' 'git' 'asciidoc' 'xmlto' 'dep')
-backup=('etc/influxdb/influxdb.conf')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/influxdata/influxdb/archive/v${pkgver}.tar.gz"
-        "fix-go114.patch::https://github.com/Foxboron/influxdb/commit/f8453b48862b50fe44021e320332f75e32457f29.patch"
-        "fix-go115.patch::https://github.com/influxdata/influxdb/commit/3a03ad500a4b2bba65a4af74995ad54e88de7210.patch"
-        "influxdb.sysusers"
-        "influxdb.tmpfiles")
-sha256sums=('d8b89e324ed7343c1397124ac3cc68c405406faf74e7369e733611cada54656d'
-            '2812f5cd31bdf6b9f587d471c249fb90ea58c4000ce52e3b91de7b17ca74dc7d'
-            '616ce43eebc1cbbe5d6376dd6306ffddc3aa1ab0cd396e1b9918ae43e6a27572'
-            '809cca823ae3027984bc7ace70db75753d7d0d4f6658a36db9d94a33054ca5e9'
-            'e2aa59413a6204737383b86cedefd866d7073f56ace5b89aad38c530cc86e60c')
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  patch -Np1 < "$srcdir/fix-go114.patch"
-  patch -Np1 < "$srcdir/fix-go115.patch"
-  mkdir -p build
-}
-
-build(){
-  cd "$pkgname-$pkgver"
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  _LDFLAGS="-linkmode external -X main.version=$pkgver -X main.branch=master"
-  go build -v -ldflags="$_LDFLAGS" -o build ./cmd/...
-  cd "man"
-  make
-}
-
-check(){
-  cd "$pkgname-$pkgver"
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
-  go test ./...
-}
-
-package(){
-  cd "$pkgname-$pkgver"
-
-  install -Dm644 ../influxdb.sysusers "$pkgdir/usr/lib/sysusers.d/influxdb.conf"
-  install -Dm644 ../influxdb.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/influxdb.conf"
-
-  install -d "$pkgdir/usr/bin/"
-  install -Dm755 build/influx         "$pkgdir/usr/bin/"
-  install -Dm755 build/influxd        "$pkgdir/usr/bin/"
-  install -Dm755 build/influx_inspect "$pkgdir/usr/bin/"
-  install -Dm755 build/influx_stress  "$pkgdir/usr/bin/"
-  install -Dm755 build/influx_tools   "$pkgdir/usr/bin/"
-  install -Dm755 build/influx_tsm     "$pkgdir/usr/bin/"
-  # install -Dm755 store          "$pkgdir/usr/bin/"
-
-  install -Dm644 scripts/influxdb.service "$pkgdir/usr/lib/systemd/system/influxdb.service"
-  install -Dm644 etc/config.sample.toml   "$pkgdir/etc/influxdb/influxdb.conf"
-  install -Dm644 LICENSE                  "$pkgdir/usr/share/licenses/influxdb/LICENSE"
-
-  # Install man pages
-  install -d "$pkgdir/usr/share/man/man1"
-  install -Dm644 man/*.1 "$pkgdir/usr/share/man/man1/"
-}

Copied: influxdb/repos/community-x86_64/PKGBUILD (from rev 874159, influxdb/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-25 18:22:11 UTC (rev 874160)
@@ -0,0 +1,48 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Nicolas Leclercq <nicolas.private at gmail.com>
+# Contributor: Adam S Levy <adam at aslevy.com>
+# Contributor: Charles B. Johnson <mail at cbjohnson.info>
+# Contributor: Daichi Shinozaki <dsdseg at gmail.com>
+# Contributor: Ben Alex <ben.alex at acegi.com.au>
+
+pkgname=influxdb
+pkgver=2.0.4
+_commit_sha=4e7a59b
+pkgrel=1
+pkgdesc='Scalable datastore for metrics, events, and real-time analytics'
+arch=('x86_64')
+url='https://github.com/InfluxData/influxdb'
+license=('MIT')
+makedepends=('go' 'git' 'bzr' 'protobuf' 'yarn' 'cargo' 'clang' 'llvm')
+backup=('etc/influxdb/influxdb.conf')
+source=("git+https://github.com/influxdata/influxdb.git#tag=v${pkgver}"
+        "influxdb.service")
+sha256sums=('SKIP'
+            'a22ba54f10fa98ec4e81e864c0c3181e53dedd9e23e1d112ac4ad22c4fa4d9ee')
+
+build(){
+  cd "$pkgname"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  export LDFLAGS="-linkmode external"
+  make -j1 VERSION=$pkgver COMMIT=$_commit_sha INFLUXDB_SHA=$_commit_sha
+}
+
+check(){
+  cd "$pkgname"
+  make test
+}
+
+package(){
+  cd "$pkgname"
+  install -Dm644 ../influxdb.service "$pkgdir/usr/lib/systemd/system/influxdb.service"
+
+  install -d "$pkgdir/usr/bin/"
+  install -Dm755 bin/linux/influx         "$pkgdir/usr/bin/"
+  install -Dm755 bin/linux/influxd        "$pkgdir/usr/bin/"
+
+  install -Dm644 LICENSE                  "$pkgdir/usr/share/licenses/influxdb/LICENSE"
+}

Copied: influxdb/repos/community-x86_64/influxdb.service (from rev 874159, influxdb/trunk/influxdb.service)
===================================================================
--- influxdb.service	                        (rev 0)
+++ influxdb.service	2021-02-25 18:22:11 UTC (rev 874160)
@@ -0,0 +1,21 @@
+# If you modify this, please also make sure to edit init.sh
+
+[Unit]
+Description=InfluxDB is an open-source, distributed, time series database
+Documentation=https://docs.influxdata.com/influxdb/
+After=network.target
+
+[Service]
+User=influxdb
+Group=influxdb
+DynamicUser=yes
+LimitNOFILE=65536
+EnvironmentFile=-/etc/default/influxdb
+StateDirectory=influxdb
+ExecStart=/usr/bin/influxd --bolt-path /var/lib/influxdb/influxd.bolt --engine-path /var/lib/influxdb/engine
+KillMode=control-group
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=influxd.service

Deleted: influxdb.sysusers
===================================================================
--- influxdb.sysusers	2021-02-25 18:22:03 UTC (rev 874159)
+++ influxdb.sysusers	2021-02-25 18:22:11 UTC (rev 874160)
@@ -1 +0,0 @@
-u influxdb - - /var/lib/influxdb

Deleted: influxdb.tmpfiles
===================================================================
--- influxdb.tmpfiles	2021-02-25 18:22:03 UTC (rev 874159)
+++ influxdb.tmpfiles	2021-02-25 18:22:11 UTC (rev 874160)
@@ -1,4 +0,0 @@
-d /var/lib/influxdb   0755 influxdb influxdb
-d /etc/influxdb       0755 influxdb influxdb
-x /var/lib/influxdb/*
-x /etc/influxdb/*



More information about the arch-commits mailing list