mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 15:03:56 +08:00
🏅 Sync 2026-06-22 01:15:34
This commit is contained in:
1 parent
6d4cdd8118
commit
4b85448aee
41 files changed
+3203
-1407
No files matched your search
+25
-22
@@ -2,38 +2,40 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gecoosac
|
||||
PKG_VERSION:=2.2.20251015
|
||||
PKG_RELEASE:=12
|
||||
PKG_RELEASE:=13
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
PKG_MAINTAINER:=lwb1978 <lwb1978@gmail.com>
|
||||
PKG_LICENSE:=AGPL-3.0-only
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
ARCH_ID:=$(strip $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(ARCH)))
|
||||
|
||||
ifneq (,$(filter x86_64,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_amd64
|
||||
PKG_HASH:=skip
|
||||
else ifneq (,$(filter aarch64%,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_arm64
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),arm)
|
||||
else ifneq (,$(filter arm%,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_arm
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),mips)
|
||||
PKG_ARCH:=ac_linux_mips
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),mipsel)
|
||||
else ifneq (,$(filter mipsel%,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_mipsle
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),i386)
|
||||
PKG_ARCH:=ac_linux_386
|
||||
else ifneq (,$(filter mips%,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_mips
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),x86_64)
|
||||
PKG_ARCH:=ac_linux_amd64
|
||||
else ifneq (,$(filter i386%,$(ARCH_ID)))
|
||||
PKG_ARCH:=ac_linux_386
|
||||
PKG_HASH:=skip
|
||||
else
|
||||
PKG_HASH:=skip
|
||||
endif
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH_PACKAGES)
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(ARCH_ID)
|
||||
PKG_SOURCE_URL:=https://github.com/laipeng668/luci-app-gecoosac/releases/download/V$(PKG_VERSION)/$(PKG_ARCH)?
|
||||
UNPACK_CMD=$(CP) $(DL_DIR)/$(PKG_SOURCE) $(PKG_BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
PKG_LICENSE:=AGPL-3.0-only
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=lwb1978 <lwb1978@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
@@ -59,14 +61,15 @@ endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/etc/init.d/gecoosac $(1)/etc/init.d/gecoosac
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/etc/config/gecoosac $(1)/etc/config/gecoosac
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
$(INSTALL_BIN) ./files/etc/uci-defaults/gecoosac $(1)/etc/uci-defaults/gecoosac
|
||||
$(INSTALL_DIR) $(1)/etc/gecoosac/tls
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin
|
||||
$(INSTALL_BIN) ./files/etc/init.d/gecoosac $(1)/etc/init.d/gecoosac
|
||||
$(INSTALL_BIN) ./files/etc/uci-defaults/gecoosac $(1)/etc/uci-defaults/gecoosac
|
||||
$(INSTALL_CONF) ./files/etc/config/gecoosac $(1)/etc/config/gecoosac
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
@@ -318,6 +318,8 @@ ensure_dirs() {
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local runtime_upload_dir runtime_db_dir runtime_piddir
|
||||
|
||||
init_conf
|
||||
normalize_conf
|
||||
|
||||
@@ -333,6 +335,9 @@ start_service() {
|
||||
fi
|
||||
|
||||
ensure_dirs || return 1
|
||||
runtime_upload_dir="${upload_dir%/}/"
|
||||
runtime_db_dir="${db_dir%/}/"
|
||||
runtime_piddir="${piddir%/}/"
|
||||
|
||||
if [ "$isonlyoneprot" = "0" ] && [ "$https" = "1" ]; then
|
||||
if [ "$crt_file" = "$DEFAULT_CRT_FILE" ] && [ "$key_file" = "$DEFAULT_KEY_FILE" ]; then
|
||||
@@ -352,13 +357,13 @@ start_service() {
|
||||
|
||||
procd_open_instance gecoosac
|
||||
procd_set_param command "$PROG"
|
||||
procd_append_param command -f "$upload_dir"
|
||||
procd_append_param command -f "$runtime_upload_dir"
|
||||
procd_append_param command -p "$port"
|
||||
procd_append_param command -debug "$debug"
|
||||
procd_append_param command -dbpath "$db_dir"
|
||||
procd_append_param command -dbpath "$runtime_db_dir"
|
||||
procd_append_param command -token "1"
|
||||
procd_append_param command -lang "$lang"
|
||||
procd_append_param command -piddir "$piddir"
|
||||
procd_append_param command -piddir "$runtime_piddir"
|
||||
if [ "$isonlyoneprot" = "0" ]; then
|
||||
procd_append_param command -isonlyoneprot "0"
|
||||
procd_append_param command -mp "$m_port"
|
||||
|
||||
Reference in new issue
Block a user