From 6c4dc655a55e3e4d0dde65271ee2982a62893501 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Sat, 25 May 2024 21:22:34 +0800 Subject: [PATCH] dufs-bin bascially work --- debhelper/dufs-bin/debian/compat | 1 + debhelper/dufs-bin/debian/control | 14 ++++++++++++++ debhelper/dufs-bin/debian/install | 1 + debhelper/dufs-bin/debian/rules | 30 ++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 debhelper/dufs-bin/debian/compat create mode 100644 debhelper/dufs-bin/debian/control create mode 100644 debhelper/dufs-bin/debian/install create mode 100755 debhelper/dufs-bin/debian/rules diff --git a/debhelper/dufs-bin/debian/compat b/debhelper/dufs-bin/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debhelper/dufs-bin/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debhelper/dufs-bin/debian/control b/debhelper/dufs-bin/debian/control new file mode 100644 index 0000000..85711b6 --- /dev/null +++ b/debhelper/dufs-bin/debian/control @@ -0,0 +1,14 @@ +Source: dufs +Section: net +Priority: optional +Maintainer: leafee98 +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... diff --git a/debhelper/dufs-bin/debian/install b/debhelper/dufs-bin/debian/install new file mode 100644 index 0000000..7eb2285 --- /dev/null +++ b/debhelper/dufs-bin/debian/install @@ -0,0 +1 @@ +dufs /usr/bin diff --git a/debhelper/dufs-bin/debian/rules b/debhelper/dufs-bin/debian/rules new file mode 100755 index 0000000..19c0b62 --- /dev/null +++ b/debhelper/dufs-bin/debian/rules @@ -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 +