Compare commits
3 Commits
cd1dbd7801
...
7cfd98c9e2
Author | SHA1 | Date | |
---|---|---|---|
7cfd98c9e2 | |||
b90bfd4e43 | |||
![]() |
0e9bf7220a |
8
.SRCINFO
8
.SRCINFO
@ -1,6 +1,6 @@
|
|||||||
pkgbase = audiobookshelf
|
pkgbase = audiobookshelf
|
||||||
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
|
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
|
||||||
pkgver = 2.19.5
|
pkgver = 2.20.0
|
||||||
pkgrel = 11
|
pkgrel = 11
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://github.com/advplyr/audiobookshelf
|
url = https://github.com/advplyr/audiobookshelf
|
||||||
@ -13,19 +13,19 @@ pkgbase = audiobookshelf
|
|||||||
depends = nodejs
|
depends = nodejs
|
||||||
options = !debug
|
options = !debug
|
||||||
backup = etc/conf.d/audiobookshelf
|
backup = etc/conf.d/audiobookshelf
|
||||||
source = audiobookshelf-2.19.5.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.19.5.tar.gz
|
source = audiobookshelf-2.20.0.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.20.0.tar.gz
|
||||||
source = audiobookshelf.conf
|
source = audiobookshelf.conf
|
||||||
source = audiobookshelf.hook
|
source = audiobookshelf.hook
|
||||||
source = audiobookshelf.service
|
source = audiobookshelf.service
|
||||||
source = audiobookshelf.sysusers
|
source = audiobookshelf.sysusers
|
||||||
source = 0001-support-unix-socket.patch
|
source = 0001-support-unix-socket.patch
|
||||||
source = audiobookshelf.tmpfiles
|
source = audiobookshelf.tmpfiles
|
||||||
sha256sums = a298570185ad69c4a36be9f066103965ed672e86a6c406cf8118543073768061
|
sha256sums = b0a3072c3274658c8de35af66a1ddffb5fee33eb5ec293046edb26a865a2519e
|
||||||
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
|
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
|
||||||
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
||||||
sha256sums = f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3
|
sha256sums = f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3
|
||||||
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
||||||
sha256sums = c89940d4c44e24aa28a94bd0f4217011f5d93ab2ac32055310de84e13d9e721e
|
sha256sums = e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd
|
||||||
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
||||||
|
|
||||||
pkgname = audiobookshelf
|
pkgname = audiobookshelf
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
From 070fc3ff00d21939ddc127273467f42ef0bb4767 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Balakrishnan Balasubramanian <git.user@balki.me>
|
|
||||||
Date: Wed, 12 Feb 2025 11:18:31 -0500
|
|
||||||
Subject: [PATCH] support unix socket
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/server/Server.js b/server/Server.js
|
diff --git a/server/Server.js b/server/Server.js
|
||||||
index c3e73ae..115d170 100644
|
index c3e73aec..fde5343e 100644
|
||||||
--- a/server/Server.js
|
--- a/server/Server.js
|
||||||
+++ b/server/Server.js
|
+++ b/server/Server.js
|
||||||
@@ -395,10 +395,18 @@ class Server {
|
@@ -395,10 +395,19 @@ class Server {
|
||||||
})
|
})
|
||||||
router.get('/healthcheck', (req, res) => res.sendStatus(200))
|
router.get('/healthcheck', (req, res) => res.sendStatus(200))
|
||||||
|
|
||||||
@ -16,21 +10,19 @@ index c3e73ae..115d170 100644
|
|||||||
- if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
- if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
||||||
- else Logger.info(`Listening on port :${this.Port}`)
|
- else Logger.info(`Listening on port :${this.Port}`)
|
||||||
- })
|
- })
|
||||||
+ if(fs.pathExistsSync("/run/audiobookshelf")) {
|
+ const unixSocketPrefix = "unix/"
|
||||||
+ const sockPath = "/run/audiobookshelf/web.sock"
|
+ if(this.Host.startsWith(unixSocketPrefix)) {
|
||||||
+ this.server.listen(sockPath, () => {
|
+ const sockPath = this.Host.slice(unixSocketPrefix.length)
|
||||||
+ fs.chmodSync(sockPath, 0o666);
|
+ this.server.listen(sockPath, () => {
|
||||||
+ Logger.info(`Listening on unix socket :${sockPath}`)
|
+ fs.chmodSync(sockPath, 0o666)
|
||||||
+ })
|
+ Logger.info(`Listening on unix socket ${sockPath}`)
|
||||||
|
+ })
|
||||||
+ } else {
|
+ } else {
|
||||||
+ this.server.listen(this.Port, this.Host, () => {
|
+ this.server.listen(this.Port, this.Host, () => {
|
||||||
+ if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
+ if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
||||||
+ else Logger.info(`Listening on port :${this.Port}`)
|
+ else Logger.info(`Listening on port :${this.Port}`)
|
||||||
+ })
|
+ })
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
// Start listening for socket connections
|
// Start listening for socket connections
|
||||||
SocketAuthority.initialize(this)
|
SocketAuthority.initialize(this)
|
||||||
--
|
|
||||||
2.48.1
|
|
||||||
|
|
||||||
|
6
PKGBUILD
6
PKGBUILD
@ -3,7 +3,7 @@
|
|||||||
# Based on PKGBUILD by Kevin S <aur@eldenring.mozmail.com>
|
# Based on PKGBUILD by Kevin S <aur@eldenring.mozmail.com>
|
||||||
|
|
||||||
pkgname=audiobookshelf
|
pkgname=audiobookshelf
|
||||||
pkgver=2.19.5
|
pkgver=2.20.0
|
||||||
pkgrel=11
|
pkgrel=11
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
||||||
@ -21,12 +21,12 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
|
|||||||
"${pkgname}.sysusers"
|
"${pkgname}.sysusers"
|
||||||
"0001-support-unix-socket.patch"
|
"0001-support-unix-socket.patch"
|
||||||
"${pkgname}.tmpfiles")
|
"${pkgname}.tmpfiles")
|
||||||
sha256sums=('a298570185ad69c4a36be9f066103965ed672e86a6c406cf8118543073768061'
|
sha256sums=('b0a3072c3274658c8de35af66a1ddffb5fee33eb5ec293046edb26a865a2519e'
|
||||||
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
|
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
|
||||||
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
||||||
'f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3'
|
'f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3'
|
||||||
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
||||||
'c89940d4c44e24aa28a94bd0f4217011f5d93ab2ac32055310de84e13d9e721e'
|
'e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd'
|
||||||
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user