From 09b5ac3524458c7432b404b0a0aed5af034e880c Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 16 Oct 2023 16:03:42 +0200 Subject: [PATCH] +github.com/go-acme/lego (#3671) * +github/jetporch/jetporch * try fixing pkg-config dependency of openssl * fixing libz dependency * fixing libz dependency * fixing zlib dependency (typo in previous commit) * fixing dependencies versions * fixing dependencies versions * try with static linking of openssl and zlib * wip * wip * github/jetporch/jetporch -> jetporch.com * use ^major * reuse static linking * clean old stuff * add package file --- projects/github.com/go-acme/lego/package.yml | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/github.com/go-acme/lego/package.yml diff --git a/projects/github.com/go-acme/lego/package.yml b/projects/github.com/go-acme/lego/package.yml new file mode 100644 index 00000000..acecbbc5 --- /dev/null +++ b/projects/github.com/go-acme/lego/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/go-acme/lego/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: go-acme/lego # reads github tags but only tags of releases (this is usually what you want) + strip: /^v/ + +build: + dependencies: + go.dev: ^1.20 + + env: + CGO_ENABLED: 0 + GO11MODULE: on + MAIN_DIRECTORY: ./cmd/lego + LDFLAGS: + - -s + - -w + - -X main.version={{ version }} + linux: + LDFLAGS: + - -buildmode=pie + script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/lego "${MAIN_DIRECTORY}" + +provides: + - bin/lego + +test: + script: test "$(lego --version|cut -d ' ' -f 3)" = {{version}}