You've already forked audiobookshelf
Compare commits
27 Commits
91c2471bb6
...
master
Author | SHA1 | Date | |
---|---|---|---|
7542fe43a7 | |||
![]() |
b269f8b00e | ||
![]() |
8accbe9709 | ||
a1496ec18d | |||
![]() |
8575ece2a5 | ||
8d2b01076b | |||
![]() |
630aa2f759 | ||
e6145cafc3 | |||
![]() |
2acc0f6aa0 | ||
0ce8de2f21 | |||
![]() |
c572015619 | ||
01ecf70408 | |||
![]() |
5e860231e6 | ||
73532eb654 | |||
56c067cead | |||
0e5ccd86b8 | |||
![]() |
0d4ddc81b2 | ||
bfaccfec29 | |||
![]() |
cb4c831b99 | ||
1c6b022b8c | |||
![]() |
fa3be0c314 | ||
![]() |
974be4799e | ||
de7478c913 | |||
7cfd98c9e2 | |||
b90bfd4e43 | |||
![]() |
0e9bf7220a | ||
cd1dbd7801 |
12
.SRCINFO
12
.SRCINFO
@@ -1,7 +1,7 @@
|
|||||||
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.28.0
|
||||||
pkgrel = 11
|
pkgrel = 1
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://github.com/advplyr/audiobookshelf
|
url = https://github.com/advplyr/audiobookshelf
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
@@ -13,19 +13,17 @@ 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.28.0.tar.gz::https://github.com/advplyr/audiobookshelf/archive/refs/tags/v2.28.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 = audiobookshelf.tmpfiles
|
source = audiobookshelf.tmpfiles
|
||||||
sha256sums = a298570185ad69c4a36be9f066103965ed672e86a6c406cf8118543073768061
|
sha256sums = 0b9fa156785a085478d9f7d59ae837da7e7293a23562a5e6e22a538ee3313ed2
|
||||||
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
|
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
|
||||||
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
|
||||||
sha256sums = 3586daa8e41b714a0720315a06cf6967adebca4c44f92092817bed101fbf3b67
|
sha256sums = 6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817
|
||||||
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
|
||||||
sha256sums = c89940d4c44e24aa28a94bd0f4217011f5d93ab2ac32055310de84e13d9e721e
|
|
||||||
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
|
||||||
|
|
||||||
pkgname = audiobookshelf
|
pkgname = audiobookshelf
|
||||||
|
@@ -1,36 +0,0 @@
|
|||||||
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
|
|
||||||
index c3e73ae..115d170 100644
|
|
||||||
--- a/server/Server.js
|
|
||||||
+++ b/server/Server.js
|
|
||||||
@@ -395,10 +395,18 @@ class Server {
|
|
||||||
})
|
|
||||||
router.get('/healthcheck', (req, res) => res.sendStatus(200))
|
|
||||||
|
|
||||||
- this.server.listen(this.Port, this.Host, () => {
|
|
||||||
- if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
|
||||||
- else Logger.info(`Listening on port :${this.Port}`)
|
|
||||||
- })
|
|
||||||
+ if(fs.pathExistsSync("/run/audiobookshelf")) {
|
|
||||||
+ const sockPath = "/run/audiobookshelf/web.sock"
|
|
||||||
+ this.server.listen(sockPath, () => {
|
|
||||||
+ fs.chmodSync(sockPath, 0o666);
|
|
||||||
+ Logger.info(`Listening on unix socket :${sockPath}`)
|
|
||||||
+ })
|
|
||||||
+ } else {
|
|
||||||
+ this.server.listen(this.Port, this.Host, () => {
|
|
||||||
+ if (this.Host) Logger.info(`Listening on http://${this.Host}:${this.Port}`)
|
|
||||||
+ else Logger.info(`Listening on port :${this.Port}`)
|
|
||||||
+ })
|
|
||||||
+ }
|
|
||||||
|
|
||||||
// Start listening for socket connections
|
|
||||||
SocketAuthority.initialize(this)
|
|
||||||
--
|
|
||||||
2.48.1
|
|
||||||
|
|
12
PKGBUILD
12
PKGBUILD
@@ -3,8 +3,8 @@
|
|||||||
# 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.28.0
|
||||||
pkgrel=11
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
|
||||||
arch=("x86_64" "aarch64")
|
arch=("x86_64" "aarch64")
|
||||||
@@ -19,20 +19,16 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
|
|||||||
"${pkgname}.hook"
|
"${pkgname}.hook"
|
||||||
"${pkgname}.service"
|
"${pkgname}.service"
|
||||||
"${pkgname}.sysusers"
|
"${pkgname}.sysusers"
|
||||||
"0001-support-unix-socket.patch"
|
|
||||||
"${pkgname}.tmpfiles")
|
"${pkgname}.tmpfiles")
|
||||||
sha256sums=('a298570185ad69c4a36be9f066103965ed672e86a6c406cf8118543073768061'
|
sha256sums=('0b9fa156785a085478d9f7d59ae837da7e7293a23562a5e6e22a538ee3313ed2'
|
||||||
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
|
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
|
||||||
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
|
||||||
'3586daa8e41b714a0720315a06cf6967adebca4c44f92092817bed101fbf3b67'
|
'6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817'
|
||||||
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
|
||||||
'c89940d4c44e24aa28a94bd0f4217011f5d93ab2ac32055310de84e13d9e721e'
|
|
||||||
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${pkgname}-${pkgver}"
|
cd "${pkgname}-${pkgver}"
|
||||||
patch -p1 -i "${srcdir}/0001-support-unix-socket.patch"
|
|
||||||
|
|
||||||
npm run client
|
npm run client
|
||||||
npm ci --only=production
|
npm ci --only=production
|
||||||
find {client/dist,node_modules,server} -type f -name "*.map" | xargs rm -rf
|
find {client/dist,node_modules,server} -type f -name "*.map" | xargs rm -rf
|
||||||
|
@@ -5,6 +5,7 @@ Requires=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/etc/conf.d/audiobookshelf
|
EnvironmentFile=/etc/conf.d/audiobookshelf
|
||||||
|
EnvironmentFile=-/etc/conf.d/audiobookshelf.custom
|
||||||
WorkingDirectory=/var/lib/audiobookshelf
|
WorkingDirectory=/var/lib/audiobookshelf
|
||||||
ExecStart=/usr/bin/audiobookshelf
|
ExecStart=/usr/bin/audiobookshelf
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
@@ -13,6 +14,7 @@ User=audiobookshelf
|
|||||||
Group=audiobookshelf
|
Group=audiobookshelf
|
||||||
|
|
||||||
RuntimeDirectory=audiobookshelf
|
RuntimeDirectory=audiobookshelf
|
||||||
|
StateDirectory=audiobookshelf
|
||||||
|
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
CapabilityBoundingSet=
|
CapabilityBoundingSet=
|
||||||
|
Reference in New Issue
Block a user