dufs-bin bascially work

This commit is contained in:
leafee98 2024-05-25 21:22:34 +08:00
parent f1a4add697
commit 6c4dc655a5
4 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1 @@
12

View file

@ -0,0 +1,14 @@
Source: dufs
Section: net
Priority: optional
Maintainer: leafee98 <me@leafee98.com>
Build-Depends: debhelper (>= 10)
Package: dufs-bin
Architecture: amd64
Priority: optional
Provides: dufs
Conflicts: dufs
Description: A distinctive utility webdav file server.
Dufs is a distinctive utility file server that supports static
serving, uploading, searching, accessing control, webdav...

View file

@ -0,0 +1 @@
dufs /usr/bin

30
debhelper/dufs-bin/debian/rules Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/make -f
VERSION=0.41.0
ARCHITECTURE=amd64
PACKAGE_NAME=dufs
DOWNLOAD_NAME=dufs-v$(VERSION)-x86_64-unknown-linux-musl.tar.gz
DOWNLOAD_URL=https://github.com/sigoden/dufs/releases/download/v$(VERSION)/$(DOWNLOAD_NAME)
%:
dh "$@"
leafee98_truncate_changelog:
rm --force debian/changelog
debchange --create \
--package $(PACKAGE_NAME) \
--newversion $(VERSION) \
"Auto build"
leafee98_prepare:
curl --location \
--show-error \
--output $(DOWNLOAD_NAME) \
$(DOWNLOAD_URL)
tar -xf $(DOWNLOAD_NAME)
override_dh_installsystemd:
dh_installsystemd --name remark42 --no-enable --no-start --restart-after-upgrade