mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update to v1.8.0
This commit is contained in:
parent
59cf11269f
commit
bf35e4fca1
5 changed files with 51 additions and 41 deletions
24
.SRCINFO
24
.SRCINFO
|
|
@ -1,24 +1,24 @@
|
|||
pkgbase = filebrowser-bin
|
||||
pkgdesc = Web File Manager which can be used as a middleware or standalone app.
|
||||
pkgver = 1.7.0
|
||||
pkgver = 1.8.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/filebrowser/filebrowser
|
||||
install = filebrowser-bin.install
|
||||
arch = x86_64
|
||||
license = Apache
|
||||
depends = glibc
|
||||
backup = etc/filebrowser/config.json
|
||||
backup = usr/share/filebrowser/storage/README.txt
|
||||
backup = usr/lib/systemd/system/filebrowser.service
|
||||
source = filebrowser.service
|
||||
provides = filebrowser
|
||||
conflicts = filebrowser
|
||||
source = filebrowser@.service
|
||||
source = config.json
|
||||
source = README.txt
|
||||
source = filebrowser-bin.install
|
||||
source = https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE.md
|
||||
md5sums = 8c32a68ea6e6c9079f989bf72bb37ba9
|
||||
md5sums = d47072829df221f4ac29b9f299d964f0
|
||||
md5sums = 93513176e4f94536c504e5d5045e70f8
|
||||
md5sums = d92e60ee98664c54f68aa515a6169708
|
||||
source_x86_64 = linux-amd64-filebrowser.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v1.7.0/linux-amd64-filebrowser.tar.gz
|
||||
md5sums_x86_64 = 2c2178231b9380e904954b6b3becfd10
|
||||
sha256sums = 031102764271b433d7910fd13289cf65e9b414f01ae83ff39876f8d642f1172c
|
||||
sha256sums = 45e2e154a3cf25ad72263f6617d5df330fade65a944921dcbee86692c09e4ac8
|
||||
sha256sums = 82e9879a58d21f4ca4a28315f94ffdadfbbf461752e63252bf12b91de93bc9c8
|
||||
sha256sums = 9cf5de169b595cdae317551ef69a794b59fa3d1e151db4190d337fe08d13d5f8
|
||||
source_x86_64 = https://github.com/filebrowser/filebrowser/releases/download/v1.8.0/linux-amd64-filebrowser.tar.gz
|
||||
sha256sums_x86_64 = af2684787d0f9ee49e6c66409033e5fa8e609a38780ff9b45f3d53379d6c3d32
|
||||
|
||||
pkgname = filebrowser-bin
|
||||
|
||||
|
|
|
|||
39
PKGBUILD
39
PKGBUILD
|
|
@ -1,34 +1,31 @@
|
|||
# Maintainer: axionl <axionl@aosc.io>
|
||||
pkgname=filebrowser-bin
|
||||
pkgver=1.7.0
|
||||
pkgver=1.8.0
|
||||
pkgrel=1
|
||||
pkgdesc="Web File Manager which can be used as a middleware or standalone app."
|
||||
arch=('x86_64')
|
||||
url="https://github.com/filebrowser/filebrowser"
|
||||
license=('Apache')
|
||||
depends=('glibc')
|
||||
backup=('etc/filebrowser/config.json'
|
||||
'usr/share/filebrowser/storage/README.txt'
|
||||
'usr/lib/systemd/system/filebrowser.service')
|
||||
source=('filebrowser.service'
|
||||
'config.json'
|
||||
'README.txt'
|
||||
'https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE.md')
|
||||
provides=("filebrowser")
|
||||
conflicts=("filebrowser")
|
||||
install="$pkgname.install"
|
||||
|
||||
source_x86_64=(linux-amd64-filebrowser.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v$pkgver/linux-amd64-filebrowser.tar.gz)
|
||||
source=('filebrowser@.service' 'config.json' 'filebrowser-bin.install'
|
||||
'https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE.md')
|
||||
|
||||
md5sums=('8c32a68ea6e6c9079f989bf72bb37ba9'
|
||||
'd47072829df221f4ac29b9f299d964f0'
|
||||
'93513176e4f94536c504e5d5045e70f8'
|
||||
'd92e60ee98664c54f68aa515a6169708')
|
||||
md5sums_x86_64=('2c2178231b9380e904954b6b3becfd10')
|
||||
source_x86_64=(https://github.com/filebrowser/filebrowser/releases/download/v$pkgver/linux-amd64-filebrowser.tar.gz)
|
||||
|
||||
sha256sums=('031102764271b433d7910fd13289cf65e9b414f01ae83ff39876f8d642f1172c'
|
||||
'45e2e154a3cf25ad72263f6617d5df330fade65a944921dcbee86692c09e4ac8'
|
||||
'82e9879a58d21f4ca4a28315f94ffdadfbbf461752e63252bf12b91de93bc9c8'
|
||||
'9cf5de169b595cdae317551ef69a794b59fa3d1e151db4190d337fe08d13d5f8')
|
||||
sha256sums_x86_64=('af2684787d0f9ee49e6c66409033e5fa8e609a38780ff9b45f3d53379d6c3d32')
|
||||
|
||||
package() {
|
||||
dir="$srcdir"
|
||||
install -Dm644 filebrowser.service ${pkgdir}/usr/lib/systemd/system/filebrowser.service
|
||||
install -Dm644 config.json ${pkgdir}/etc/filebrowser/config.json
|
||||
install -Dm755 $dir/filebrowser ${pkgdir}/usr/bin/filebrowser
|
||||
install -Dm755 LICENSE.md ${pkgdir}/usr/share/licenses/filebrowser-bin/LICENSE
|
||||
install -Dm644 README.txt ${pkgdir}/usr/share/filebrowser/storage/README.txt
|
||||
cat ${pkgdir}/usr/share/filebrowser/storage/README.txt
|
||||
install -Dm644 filebrowser@.service ${pkgdir}/usr/lib/systemd/system/filebrowser@.service
|
||||
install -Dm644 config.json ${pkgdir}/etc/filebrowser/example.config.json
|
||||
install -Dm755 LICENSE.md ${pkgdir}/usr/share/licenses/filebrowser-bin/LICENSE
|
||||
install -Dm755 $srcdir/filebrowser ${pkgdir}/usr/bin/filebrowser
|
||||
}
|
||||
# vim set: ts=4 sw=4 et:
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
Welcome to the filebrowser.
|
||||
*****************************************
|
||||
Url: https://henriquedias.com/filebrowser/
|
||||
port: 8080
|
||||
scope: /usr/share/filebrowser/storage/
|
||||
config path: /etc/filebrowser/config.json
|
||||
*****************************************
|
||||
20
filebrowser-bin.install
Normal file
20
filebrowser-bin.install
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
post_install() {
|
||||
echo "
|
||||
Welcome to the filebrowser!
|
||||
For the first time you need to initialize, for example:
|
||||
|
||||
-----------------------------------------------------------------------------
|
||||
$ sudo mkdir -p /usr/share/filebrowser/storage
|
||||
$ sudo touch /usr/share/filebrowser/database.db
|
||||
$ sudo cp /etc/filebrowser/example.config.json /etc/filebrowser/config.json
|
||||
$ sudo systemctl enable --now filebrowser@config
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
More: https://github.com/filebrowser/filebrowser
|
||||
"
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
echo "You need to remove database and config by yourself."
|
||||
}
|
||||
# vim: set ts=2 sw=2 et:
|
||||
|
|
@ -5,7 +5,7 @@ Wants=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/filebrowser --config /etc/filebrowser/config.json
|
||||
ExecStart=/usr/bin/filebrowser --config /etc/filebrowser/%I.json
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
Loading…
Add table
Reference in a new issue