2019-12-18 18:43:35 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=restic
|
2022-08-25 21:33:19 +02:00
|
|
|
PKG_VERSION:=0.14.0
|
2022-06-08 18:11:00 +02:00
|
|
|
PKG_RELEASE:=$(AUTORELEASE)
|
2019-12-18 18:43:35 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/restic/restic/tar.gz/v${PKG_VERSION}?
|
2022-08-25 21:33:19 +02:00
|
|
|
PKG_HASH:=78cdd8994908ebe7923188395734bb3cdc9101477e4163c67e7cc3b8fd3b4bd6
|
2019-12-18 18:43:35 +01:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-2-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2022-06-08 18:11:00 +02:00
|
|
|
PKG_MAINTAINER:=Tom Stöveken <tom@naaa.de>
|
2019-12-18 18:43:35 +01:00
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
|
|
|
GO_PKG:=github.com/restic/restic/
|
|
|
|
GO_PKG_BUILD_PKG:=github.com/restic/restic/cmd/restic/
|
|
|
|
GO_PKG_LDFLAGS_X:=main.version=$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
|
|
|
|
define Package/restic
|
|
|
|
TITLE:=restic backup program
|
|
|
|
URL:=http://github.com/restic/restic
|
|
|
|
DEPENDS:=$(GO_ARCH_DEPENDS)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/restic/description
|
|
|
|
restic is a backup program that is fast, efficient and secure. It supports the
|
|
|
|
three major operating systems (Linux, macOS, Windows) and a few smaller ones
|
|
|
|
(FreeBSD, OpenBSD).
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GoBinPackage,restic))
|
|
|
|
$(eval $(call BuildPackage,restic))
|