You've already forked audiobookshelf
							
							remove patch
This commit is contained in:
		
							
								
								
									
										4
									
								
								.SRCINFO
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.SRCINFO
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
pkgbase = audiobookshelf
 | 
			
		||||
	pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
 | 
			
		||||
	pkgver = 2.23.0
 | 
			
		||||
	pkgrel = 11
 | 
			
		||||
	pkgrel = 1
 | 
			
		||||
	epoch = 1
 | 
			
		||||
	url = https://github.com/advplyr/audiobookshelf
 | 
			
		||||
	arch = x86_64
 | 
			
		||||
@@ -18,14 +18,12 @@ pkgbase = audiobookshelf
 | 
			
		||||
	source = audiobookshelf.hook
 | 
			
		||||
	source = audiobookshelf.service
 | 
			
		||||
	source = audiobookshelf.sysusers
 | 
			
		||||
	source = 0001-support-unix-socket.patch
 | 
			
		||||
	source = audiobookshelf.tmpfiles
 | 
			
		||||
	sha256sums = 69b53fc09e568b01951ada49eeeeba30033369338ab8c61a341fed771a912240
 | 
			
		||||
	sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
 | 
			
		||||
	sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
 | 
			
		||||
	sha256sums = 6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817
 | 
			
		||||
	sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
 | 
			
		||||
	sha256sums = e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd
 | 
			
		||||
	sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f
 | 
			
		||||
 | 
			
		||||
pkgname = audiobookshelf
 | 
			
		||||
 
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
diff --git a/server/Server.js b/server/Server.js
 | 
			
		||||
index c3e73aec..fde5343e 100644
 | 
			
		||||
--- a/server/Server.js
 | 
			
		||||
+++ b/server/Server.js
 | 
			
		||||
@@ -395,10 +395,19 @@ 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}`)
 | 
			
		||||
-    })
 | 
			
		||||
+    const unixSocketPrefix = "unix/"
 | 
			
		||||
+    if(this.Host.startsWith(unixSocketPrefix)) {
 | 
			
		||||
+      const sockPath = this.Host.slice(unixSocketPrefix.length)
 | 
			
		||||
+      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)
 | 
			
		||||
							
								
								
									
										5
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								PKGBUILD
									
									
									
									
									
								
							@@ -4,7 +4,7 @@
 | 
			
		||||
 | 
			
		||||
pkgname=audiobookshelf
 | 
			
		||||
pkgver=2.23.0
 | 
			
		||||
pkgrel=11
 | 
			
		||||
pkgrel=1
 | 
			
		||||
epoch=1
 | 
			
		||||
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
 | 
			
		||||
arch=("x86_64" "aarch64")
 | 
			
		||||
@@ -19,19 +19,16 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
 | 
			
		||||
        "${pkgname}.hook"
 | 
			
		||||
        "${pkgname}.service"
 | 
			
		||||
        "${pkgname}.sysusers"
 | 
			
		||||
				"0001-support-unix-socket.patch"
 | 
			
		||||
        "${pkgname}.tmpfiles")
 | 
			
		||||
sha256sums=('69b53fc09e568b01951ada49eeeeba30033369338ab8c61a341fed771a912240'
 | 
			
		||||
            '50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
 | 
			
		||||
            '91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
 | 
			
		||||
            '6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817'
 | 
			
		||||
            'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
 | 
			
		||||
            'e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd'
 | 
			
		||||
            'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
    cd "${pkgname}-${pkgver}"
 | 
			
		||||
		patch -p1 -i "${srcdir}/0001-support-unix-socket.patch"
 | 
			
		||||
 | 
			
		||||
    npm run client
 | 
			
		||||
    npm ci --only=production
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user