Skip to content
Open
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
27 changes: 27 additions & 0 deletions cross/proxmoxbackupclient_go/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PKG_NAME = proxmoxbackupclient_go
PKG_VERS = 0.0.5
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/tizbac/proxmoxbackupclient_go/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

# golang not supported
UNSUPPORTED_ARCHS = $(PPC_ARCHS)
# lacking support for atomics
UNSUPPORTED_ARCHS += $(ARMv5_ARCHS)

BUILD_DEPENDS = native/go

HOMEPAGE = https://github.com/tizbac/proxmoxbackupclient_go/
COMMENT = In development proxmox backup client written in golang, aimed at windows compatibility.
LICENSE = GPL v3

# REMARKS:
# we patch the sources to get rid of windows dependencies.

CGO_ENABLED = 1
GO_SRC_DIR = $(WORK_DIR)/$(PKG_DIR)
GO_BIN_DIR = $(GO_SRC_DIR)/proxmoxbackupgo

include ../../mk/spksrc.cross-go.mk
1 change: 1 addition & 0 deletions cross/proxmoxbackupclient_go/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin:bin/proxmoxbackupgo
3 changes: 3 additions & 0 deletions cross/proxmoxbackupclient_go/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
proxmoxbackupclient_go-0.0.5.tar.gz SHA1 e60f1a6575839c4c7154cbfc49cb331bb19e4a9d
proxmoxbackupclient_go-0.0.5.tar.gz SHA256 17990accdf72fd6401f71faf470ffdd62ef8bc54af5e81e28d010f217e5766fc
proxmoxbackupclient_go-0.0.5.tar.gz MD5 bfbde6ea576bfed572a8650b538230f8
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# remove dependencies not available on linux and not required for cli tool
#
--- main.go.orig 2024-11-21 00:27:38.000000000 +0000
+++ main.go 2025-06-30 14:18:55.962799680 +0000
@@ -16,8 +16,6 @@
"time"

"github.com/cornelk/hashmap"
- "github.com/gen2brain/beeep"
- "github.com/getlantern/systray"
"github.com/tawesoft/golib/v2/dialog"
)

@@ -185,17 +183,6 @@
os.Exit(2)
}
defer L.ReleaseProcessLock()
- if runtime.GOOS == "windows" {
- go systray.Run(func() {
- systray.SetIcon(ICON)
- systray.SetTooltip("PBSGO Backup running")
- beeep.Notify("Proxmox Backup Go", "Backup started", "")
- },
- func() {
-
- })
- }
-

insecure := cfg.CertFingerprint != ""

@@ -261,10 +248,6 @@
panic(err)
}
}
- if runtime.GOOS == "windows" {
- systray.Quit()
- beeep.Notify("Proxmox Backup Go", msg, "")
- }
if cfg.SMTP != nil {
var subject string

--- go.mod.orig 2024-11-21 00:27:38.000000000 +0000
+++ go.mod 2025-06-30 14:19:05.895435170 +0000
@@ -5,8 +5,6 @@
require (
github.com/cornelk/hashmap v1.0.8
github.com/dchest/siphash v1.2.3
- github.com/gen2brain/beeep v0.0.0-20230907135156-1a38885a97fc
- github.com/getlantern/systray v1.2.2
github.com/jeromehadorn/vss v0.1.0
github.com/klauspost/compress v1.17.4
github.com/rodolfoag/gow32 v0.0.0-20230512144032-1e896a3c51aa
@@ -28,7 +26,6 @@
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
- github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect
golang.org/x/exp v0.0.0-20221208152030-732eee02a75a // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
22 changes: 22 additions & 0 deletions spk/proxmoxbackupclient/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
SPK_NAME = proxmoxbackupclient
SPK_VERS = 0.0.5
SPK_REV = 1
SPK_ICON = src/proxmox.png

DEPENDS = cross/proxmoxbackupclient_go

UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS)

MAINTAINER = hgy59
DISPLAY_NAME = Proxmox Backup Client
DESCRIPTION = Proxmox backup client written in golang \(under development\).
CHANGELOG = "Initial package release."

HOMEPAGE = https://github.com/tizbac/proxmoxbackupclient_go/
LICENSE = GPLv2

STARTABLE = No

SPK_COMMANDS = bin/proxmoxbackupgo

include ../../mk/spksrc.spk.mk
Binary file added spk/proxmoxbackupclient/src/proxmox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.