New package: xq-api-0.1.1
This commit is contained in:
parent
6c36bbd09e
commit
814070a243
3 changed files with 42 additions and 0 deletions
7
srcpkgs/xq-api/files/xq-api/conf
Normal file
7
srcpkgs/xq-api/files/xq-api/conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
NET=tcp
|
||||||
|
ADDR=127.0.0.1:8197
|
||||||
|
MAX_QUERIES=16
|
||||||
|
LOG_ACCESS=f
|
||||||
|
LOG_TO_STDERR=t
|
||||||
|
LOG_DIR=
|
||||||
|
REPODATA=/var/db/xbps
|
13
srcpkgs/xq-api/files/xq-api/run
Executable file
13
srcpkgs/xq-api/files/xq-api/run
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r ./conf ] && . ./conf
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
exec chpst -u _xqapi:_xqapi xq-api \
|
||||||
|
${NET:+-net="$NET"} \
|
||||||
|
${ADDR:+-listen="$ADDR"} \
|
||||||
|
${MAX_QUERIES:+-max-queries="$MAX_QUERIES"} \
|
||||||
|
${LOG_ACCESS:+-log-access="$LOG_ACCESS"} \
|
||||||
|
${LOG_TO_STDERR:+-logtostderr="$LOG_TO_STDERR"} \
|
||||||
|
${LOG_DIR:+-log_dir="$LOG_DIR"} \
|
||||||
|
${REPODATA}
|
22
srcpkgs/xq-api/template
Normal file
22
srcpkgs/xq-api/template
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Template file for 'xq-api'
|
||||||
|
pkgname=xq-api
|
||||||
|
version=0.1.1
|
||||||
|
revision=1
|
||||||
|
build_style=go
|
||||||
|
go_import_path=go.spiff.io/xq-api
|
||||||
|
conf_files="/etc/sv/xq-api/conf"
|
||||||
|
make_dirs="/var/lib/xq-api 0755 _xqapi _xqapi"
|
||||||
|
short_desc="HTTP-based xbps repodata query API"
|
||||||
|
maintainer="Noel Cower <ncower@gmail.com>"
|
||||||
|
license="BSD-2-Clause"
|
||||||
|
homepage="https://github.com/nilium/xq-api"
|
||||||
|
distfiles="https://github.com/nilium/xq-api/archive/v${version}.tar.gz"
|
||||||
|
checksum=a2409ff28abc19e2968624105d914c38134a86df29252a7b23b33a531836dadd
|
||||||
|
system_accounts="_xqapi"
|
||||||
|
_xqapi_homedir="/var/lib/xq-api"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vman xq-api.8
|
||||||
|
vlicense COPYING
|
||||||
|
vsv xq-api
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue