diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | greptimedb.service | 13 | ||||
-rw-r--r-- | greptimedb.sysusers | 1 |
4 files changed, 29 insertions, 5 deletions
@@ -1,12 +1,16 @@ pkgbase = greptimedb-bin pkgdesc = Open-source time-series database. pkgver = 0.1.0.20221205 - pkgrel = 1 + pkgrel = 3 url = https://github.com/GreptimeTeam/greptimedb arch = x86_64 license = Apache-2.0 provides = greptimedb - source = greptime-linux-amd64-0.1.0.20221124.tgz::https://github.com/GreptimeTeam/greptimedb/releases/download/v0.1.0-alpha-20221205-weekly/greptime-linux-amd64.tgz + source = greptime-linux-amd64-0.1.0.20221205.tgz::https://github.com/GreptimeTeam/greptimedb/releases/download/v0.1.0-alpha-20221205-weekly/greptime-linux-amd64.tgz + source = greptimedb.sysusers + source = greptimedb.service sha256sums = fed5fddadb2d580cbf68d4a2dcfa4e7f2686f04bf4a557c7525e3125fbeb66fb + sha256sums = SKIP + sha256sums = SKIP pkgname = greptimedb-bin @@ -3,7 +3,7 @@ pkgname=greptimedb-bin pkgver=0.1.0.20221205 _pkgvergh=v0.1.0-alpha-20221205-weekly -pkgrel=1 +pkgrel=3 pkgdesc='Open-source time-series database.' arch=('x86_64') url='https://github.com/GreptimeTeam/greptimedb' @@ -11,9 +11,15 @@ license=('Apache-2.0') provides=('greptimedb') conflicts=() -source=("greptime-linux-amd64-${pkgver}.tgz::https://github.com/GreptimeTeam/greptimedb/releases/download/${_pkgvergh}/greptime-linux-amd64.tgz") -sha256sums=("fed5fddadb2d580cbf68d4a2dcfa4e7f2686f04bf4a557c7525e3125fbeb66fb") +source=("greptime-linux-amd64-${pkgver}.tgz::https://github.com/GreptimeTeam/greptimedb/releases/download/${_pkgvergh}/greptime-linux-amd64.tgz" + "greptimedb.sysusers" + "greptimedb.service") +sha256sums=("fed5fddadb2d580cbf68d4a2dcfa4e7f2686f04bf4a557c7525e3125fbeb66fb" + "SKIP" + "SKIP") package() { install -Dm755 "${srcdir}/greptime" "${pkgdir}/usr/bin/greptime" + install -Dm644 "${srcdir}/greptimedb.service" "${pkgdir}/usr/lib/systemd/system/greptimedb.service" + install -Dm644 "${srcdir}/greptimedb.sysusers" "${pkgdir}/usr/lib/sysusers.d/greptimedb.conf" } diff --git a/greptimedb.service b/greptimedb.service new file mode 100644 index 000000000000..1681378c26aa --- /dev/null +++ b/greptimedb.service @@ -0,0 +1,13 @@ +[Unit] +Description=GreptimeDB time series database +Documentation=https://docs.greptime.com/ +After=network.target + +[Service] +Type=simple +User=greptime +ExecStart=/usr/bin/greptime standalone start +ExecStop=/usr/bin/greptime standalone stop + +[Install] +WantedBy=multi-user.target diff --git a/greptimedb.sysusers b/greptimedb.sysusers new file mode 100644 index 000000000000..f6dd75a41cbc --- /dev/null +++ b/greptimedb.sysusers @@ -0,0 +1 @@ +u greptime |