From d52858fad329138d8d92a0243772a5288f3e1bbd Mon Sep 17 00:00:00 2001 From: Noel Cower Date: Sat, 27 Feb 2021 21:10:05 -0800 Subject: [PATCH] xq-api: update to 0.5.0. Adds the RELOAD_EVERY config option to set the -reload-every flag for the service. --- srcpkgs/xq-api/files/xq-api/conf | 1 + srcpkgs/xq-api/files/xq-api/run | 1 + srcpkgs/xq-api/template | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xq-api/files/xq-api/conf b/srcpkgs/xq-api/files/xq-api/conf index 869fe0ace99..c3695497dc2 100644 --- a/srcpkgs/xq-api/files/xq-api/conf +++ b/srcpkgs/xq-api/files/xq-api/conf @@ -6,3 +6,4 @@ LOG_ACCESS=f LOG_TO_STDERR=t LOG_DIR= REPODATA=/var/db/xbps +RELOAD_EVERY= diff --git a/srcpkgs/xq-api/files/xq-api/run b/srcpkgs/xq-api/files/xq-api/run index d998291d039..b6c0533f194 100755 --- a/srcpkgs/xq-api/files/xq-api/run +++ b/srcpkgs/xq-api/files/xq-api/run @@ -6,6 +6,7 @@ exec 2>&1 exec chpst -u _xqapi:_xqapi xq-api \ ${NET:+-net="$NET"} \ ${ADDR:+-listen="$ADDR"} \ + ${RELOAD_EVERY:+-reload-every="$RELOAD_EVERY"} \ ${MAX_QUERIES:+-max-queries="$MAX_QUERIES"} \ ${LOG_V:+-v="$LOG_V"} \ ${LOG_ACCESS:+-log-access="$LOG_ACCESS"} \ diff --git a/srcpkgs/xq-api/template b/srcpkgs/xq-api/template index 16e97083cae..c22ae1d72d5 100644 --- a/srcpkgs/xq-api/template +++ b/srcpkgs/xq-api/template @@ -1,7 +1,7 @@ # Template file for 'xq-api' pkgname=xq-api -version=0.4.0 -revision=2 +version=0.5.0 +revision=1 build_style=go go_import_path=go.spiff.io/xq-api conf_files="/etc/sv/xq-api/conf" @@ -11,7 +11,7 @@ maintainer="Noel Cower " license="BSD-2-Clause" homepage="https://github.com/nilium/xq-api" distfiles="https://github.com/nilium/xq-api/archive/v${version}.tar.gz" -checksum=0d03345899feb2094e662e6e1d0a4de09ebb82f4f2a474cdc48504059c837c6d +checksum=087940a16830eaf821abfcb8c6e0daad47078b4859b9acf236464bfca809ed43 system_accounts="_xqapi" _xqapi_homedir="/var/lib/xq-api"