summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-05-07 19:52:05 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2021-05-07 19:52:05 +0100
commite09875f18e32f37001182170a3f4fb2fc1918e45 (patch)
tree7a80434ecc92ec70943c5fa20110751e4d2e1550
parent8e69d469111d67ec8ad055a257eff81ac2bfe46e (diff)
downloadhonk_aur-e09875f18e32f37001182170a3f4fb2fc1918e45.tar.gz
honk_aur-e09875f18e32f37001182170a3f4fb2fc1918e45.zip
useful abstractions and fix lie in honk.install
- the binary is launched with the 'honk' user, not the 'nobody' user
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rwxr-xr-xhonk.install2
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() {