From e09875f18e32f37001182170a3f4fb2fc1918e45 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Fri, 7 May 2021 19:52:05 +0100 Subject: useful abstractions and fix lie in honk.install - the binary is launched with the 'honk' user, not the 'nobody' user --- .SRCINFO | 4 ++-- PKGBUILD | 8 ++++---- honk.install | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ce5e95e..aac01df 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = honk pkgdesc = ActivityPub compatible server with web frontend. pkgver = 0.9.6 - pkgrel = 3 + pkgrel = 4 epoch = 0 url = https://humungus.tedunangst.com/r/honk install = honk.install @@ -12,7 +12,7 @@ pkgbase = honk makedepends = sqlite depends = gcc-go depends = sqlite - optdepends = nginx: reverse proxy with tls support + optdepends = nginx: for TLS and reverse proxying provides = honk conflicts = honk options = !strip diff --git a/PKGBUILD b/PKGBUILD index 06a342e..47ef7ac 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ pkgname=honk pkgver=0.9.6 -pkgrel=3 +pkgrel=4 epoch=0 pkgdesc="ActivityPub compatible server with web frontend." arch=("x86_64") @@ -11,7 +11,7 @@ url="https://humungus.tedunangst.com/r/honk" license=("custom:ISC") makedepends=("gcc-go" "sqlite") depends=("gcc-go" "sqlite") -optdepends=("nginx: reverse proxy with tls support") +optdepends=("nginx: for TLS and reverse proxying") changelog="$pkgname.changelog" provides=("${pkgname}") conflicts=("${pkgname}") @@ -27,8 +27,8 @@ build() { } package() { - _PKG_HONKDIR="$pkgdir/usr/share/webapps/honk" - install -vDm700 "$pkgname-$pkgver/honk" "$_PKG_HONKDIR/honk" + _PKG_HONKDIR="$pkgdir/usr/share/webapps/$pkgname" + install -vDm700 "$pkgname-$pkgver/$pkgname" "$_PKG_HONKDIR/$pkgname" install -vDm644 "$pkgname-$pkgver"/views/* -t "$_PKG_HONKDIR/views/" install -vDm644 "$pkgname-$pkgver"/docs/* -t "$_PKG_HONKDIR/docs/" install -vDm644 "$pkgname-$pkgver"/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" diff --git a/honk.install b/honk.install index 5cb9d27..dcb03bb 100755 --- a/honk.install +++ b/honk.install @@ -7,7 +7,7 @@ post_install() { useradd -r -m -d $_HONKDIR honk chown honk:honk -R "$_HONKDIR" systemctl daemon-reload - printf "\n\n${_BOLD}VERY IMPORTANT${_STYLE_END}:\nType:\n\t cd $_HONKDIR && ./honk init\nin a shell to initialize the database, and then you can type 'systemctl start honk' to start the honk server.\n'systemctl status honk' will help you identify problems that might arise.\nThe service launch the binary with the noboby user and group.\n\n" + printf "\n\n${_BOLD}VERY IMPORTANT${_STYLE_END}:\nType:\n\t cd $_HONKDIR && ./honk init\nin a shell to initialize the database, and then you can type 'systemctl start honk' to start the honk server.\n'systemctl status honk' will help you identify problems that might arise.\nThe service launch the binary with the honk user and group.\n\n" } post_remove() { -- cgit v1.2.3-70-g09d2