这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/sftpgo/0001-conf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,25 @@
},
"httpd": {
"bindings": [
@@ -341,9 +341,9 @@
}
}
],
- "templates_path": "templates",
- "static_files_path": "static",
- "openapi_path": "openapi",
+ "templates_path": "@TERMUX_PREFIX@/share/sftpgo/templates",
+ "static_files_path": "@TERMUX_PREFIX@/share/sftpgo/static",
+ "openapi_path": "@TERMUX_PREFIX@/share/sftpgo/openapi",
"web_root": "",
"certificate_file": "",
"certificate_key_file": "",
@@ -422,7 +422,7 @@
"auth_type": 0,
"encryption": 0,
"domain": "",
- "templates_path": "templates",
+ "templates_path": "@TERMUX_PREFIX@/share/sftpgo/templates",
"debug": 0,
"oauth2": {
"provider": 0,
5 changes: 5 additions & 0 deletions packages/sftpgo/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Full-featured and highly configurable SFTP, HTTP/S, FTP/
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.6.4"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/drakkan/sftpgo/releases/download/v$TERMUX_PKG_VERSION/sftpgo_v${TERMUX_PKG_VERSION}_src_with_deps.tar.xz
TERMUX_PKG_SHA256=5903360dd6da0dba07c778e2886e437d1c54a625894b7443e3b3b155f5ed3a73
TERMUX_PKG_BUILD_IN_SRC=true
Expand Down Expand Up @@ -58,4 +59,8 @@ termux_step_make_install() {

mkdir -p "$TERMUX_PREFIX"/share/sftpgo/man/man1
"$TERMUX_PKG_HOSTBUILD_DIR"/sftpgo gen man -d "$TERMUX_PREFIX"/share/sftpgo/man/man1

# for sftpgo.db
mkdir -p "$TERMUX_PREFIX"/var/lib/sftpgo
touch "$TERMUX_PREFIX"/var/lib/sftpgo/.placeholder
}
Loading