From d6d34747bb81d2bcc83b24e50b44d5a269731569 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sun, 6 Oct 2024 15:49:43 -0700 Subject: [PATCH 1/4] add recipes --- recipes/rsc-2fa/bld.bat | 9 +++++++++ recipes/rsc-2fa/build.sh | 7 +++++++ recipes/rsc-2fa/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ recipes/rush/bld.bat | 8 ++++++++ recipes/rush/build.sh | 6 ++++++ recipes/rush/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ recipes/sift/bld.bat | 11 +++++++++++ recipes/sift/build.sh | 9 +++++++++ recipes/sift/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ recipes/snyk-ls/bld.bat | 8 ++++++++ recipes/snyk-ls/build.sh | 6 ++++++ recipes/snyk-ls/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ recipes/solt/bld.bat | 8 ++++++++ recipes/solt/build.sh | 6 ++++++ recipes/solt/meta.yaml | 35 +++++++++++++++++++++++++++++++++++ 15 files changed, 253 insertions(+) create mode 100755 recipes/rsc-2fa/bld.bat create mode 100755 recipes/rsc-2fa/build.sh create mode 100755 recipes/rsc-2fa/meta.yaml create mode 100755 recipes/rush/bld.bat create mode 100755 recipes/rush/build.sh create mode 100755 recipes/rush/meta.yaml create mode 100755 recipes/sift/bld.bat create mode 100755 recipes/sift/build.sh create mode 100755 recipes/sift/meta.yaml create mode 100755 recipes/snyk-ls/bld.bat create mode 100755 recipes/snyk-ls/build.sh create mode 100755 recipes/snyk-ls/meta.yaml create mode 100755 recipes/solt/bld.bat create mode 100755 recipes/solt/build.sh create mode 100755 recipes/solt/meta.yaml diff --git a/recipes/rsc-2fa/bld.bat b/recipes/rsc-2fa/bld.bat new file mode 100755 index 0000000000000..8cb07003c67b8 --- /dev/null +++ b/recipes/rsc-2fa/bld.bat @@ -0,0 +1,9 @@ +go mod vendor || goto :error +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\2fa.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/rsc-2fa/build.sh b/recipes/rsc-2fa/build.sh new file mode 100755 index 0000000000000..894dde513a646 --- /dev/null +++ b/recipes/rsc-2fa/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go mod vendor +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/2fa -ldflags="-s -w" +go-licenses save . --save_path=license-files diff --git a/recipes/rsc-2fa/meta.yaml b/recipes/rsc-2fa/meta.yaml new file mode 100755 index 0000000000000..05f2d84ff01f2 --- /dev/null +++ b/recipes/rsc-2fa/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "rsc-2fa" %} +{% set version = "1.2.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/rsc/2fa/archive/v{{ version }}.tar.gz + sha256: d8db6b9a714c9146a4b82fd65b54f9bdda3e58380bce393f45e1ef49e4e9bee5 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - 2fa --help 2>&1 | grep -q "2fa -list" + +about: + home: https://github.com/rsc/rsc-2fa + license: BSD-3-Clause + license_file: + - LICENSE + - license-files/ + summary: Two-factor authentication on the command-line + dev_url: https://github.com/rsc/rsc-2fa + +extra: + recipe-maintainers: + - danielnachun diff --git a/recipes/rush/bld.bat b/recipes/rush/bld.bat new file mode 100755 index 0000000000000..270aba497a084 --- /dev/null +++ b/recipes/rush/bld.bat @@ -0,0 +1,8 @@ +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/rush/build.sh b/recipes/rush/build.sh new file mode 100755 index 0000000000000..baf693d84cd80 --- /dev/null +++ b/recipes/rush/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil diff --git a/recipes/rush/meta.yaml b/recipes/rush/meta.yaml new file mode 100755 index 0000000000000..373ac63647d4b --- /dev/null +++ b/recipes/rush/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "rush" %} +{% set version = "0.5.4" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/shenwei356/rush/archive/v{{ version }}.tar.gz + sha256: fe1d1a453b1ce64f6d27d1e89bef253ef7be2938cb901508d2845d71329b8ec5 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - rush --help + +about: + home: https://github.com/shenwei365/rush + license: MIT + license_file: + - LICENSE + - license-files/ + summary: A cross-platform command-line tool for executing jobs in parallel + dev_url: https://github.com/shenwei365/rush + +extra: + recipe-maintainers: + - danielnachun diff --git a/recipes/sift/bld.bat b/recipes/sift/bld.bat new file mode 100755 index 0000000000000..984e8f306890f --- /dev/null +++ b/recipes/sift/bld.bat @@ -0,0 +1,11 @@ +go mod init github.com/svent/sift || goto :error +go mod tidy -e || goto :error +go mod vendor -e || goto :error +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files --ignore=github.com/svent/sift || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/sift/build.sh b/recipes/sift/build.sh new file mode 100755 index 0000000000000..61a06ae77d965 --- /dev/null +++ b/recipes/sift/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go mod init github.com/svent/sift +go mod tidy -e +go mod vendor -e +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files --ignore=github.com/svent/sift diff --git a/recipes/sift/meta.yaml b/recipes/sift/meta.yaml new file mode 100755 index 0000000000000..7d9eced1ffb7a --- /dev/null +++ b/recipes/sift/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "sift" %} +{% set version = "0.9.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/svent/sift/archive/v{{ version }}.tar.gz + sha256: bbbd5c472c36b78896cd7ae673749d3943621a6d5523d47973ed2fc6800ae4c8 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - sift --help + +about: + home: https://github.com/svent/sift + license: GPL-3.0-only + license_file: + - LICENSE + - license-files/ + summary: Fast and powerful open source alternative to grep + dev_url: https://github.com/svent/sift + +extra: + recipe-maintainers: + - danielnachun diff --git a/recipes/snyk-ls/bld.bat b/recipes/snyk-ls/bld.bat new file mode 100755 index 0000000000000..0a6bb16a59e3c --- /dev/null +++ b/recipes/snyk-ls/bld.bat @@ -0,0 +1,8 @@ +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/snyk-ls/build.sh b/recipes/snyk-ls/build.sh new file mode 100755 index 0000000000000..4f5499d6ddcd2 --- /dev/null +++ b/recipes/snyk-ls/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files diff --git a/recipes/snyk-ls/meta.yaml b/recipes/snyk-ls/meta.yaml new file mode 100755 index 0000000000000..ca3d7112f4657 --- /dev/null +++ b/recipes/snyk-ls/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "snyk-ls" %} +{% set version = "20240830.154625" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/snyk/snyk-ls/archive/v{{ version }}.tar.gz + sha256: 5caa5ba8009b691e013d461af876845d0c554de67751ec97b39b82ac120f8b44 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - snyk-ls --help 2>&1 | grep -q "Usage of snyk-ls" + +about: + home: https://github.com/snyk/snyk-ls + license: MIT + license_file: + - LICENSE + - license-files/ + summary: Language Server used by IDEs as Snyk Backend for Frontends + dev_url: https://github.com/snyk/snyk-ls + +extra: + recipe-maintainers: + - danielnachun diff --git a/recipes/solt/bld.bat b/recipes/solt/bld.bat new file mode 100755 index 0000000000000..0a6bb16a59e3c --- /dev/null +++ b/recipes/solt/bld.bat @@ -0,0 +1,8 @@ +go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error +go-licenses save . --save_path=license-files || goto :error + +goto :EOF + +:error +echo Failed with error #%errorlevel%. +exit 1 diff --git a/recipes/solt/build.sh b/recipes/solt/build.sh new file mode 100755 index 0000000000000..4f5499d6ddcd2 --- /dev/null +++ b/recipes/solt/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o xtrace -o nounset -o pipefail -o errexit + +go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" +go-licenses save . --save_path=license-files diff --git a/recipes/solt/meta.yaml b/recipes/solt/meta.yaml new file mode 100755 index 0000000000000..da4be68c0f356 --- /dev/null +++ b/recipes/solt/meta.yaml @@ -0,0 +1,35 @@ +{% set name = "solt" %} +{% set version = "1.2.2" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/aegoroff/solt/archive/v{{ version }}.tar.gz + sha256: 1dc785d1b1ee279c522e1297bf93257ba34fb90c168077351decec01afd4f132 + +build: + number: 0 + +requirements: + build: + - {{ compiler('go-nocgo') }} + - go-licenses + +test: + commands: + - solt --help + +about: + home: https://github.com/aegoroff/solt + license: MIT + license_file: + - LICENSE.txt + - license-files/ + summary: Small console app written in Go that allows you to easily analyze sources and Microsoft Visual Studio solutions and projects. + dev_url: https://github.com/aegoroff/solt + +extra: + recipe-maintainers: + - danielnachun From aae30d3ba304a7dab924ffb4ffc9c3e4e981d68e Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 9 Nov 2024 21:03:34 -0800 Subject: [PATCH 2/4] add missing licenses for rush --- recipes/rush/bld.bat | 3 +++ recipes/rush/build.sh | 3 +++ .../github.com/cznic/sortutil/LICENSE | 27 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 recipes/rush/license-files/github.com/cznic/sortutil/LICENSE diff --git a/recipes/rush/bld.bat b/recipes/rush/bld.bat index 270aba497a084..6d1d2f8f66ab2 100755 --- a/recipes/rush/bld.bat +++ b/recipes/rush/bld.bat @@ -1,6 +1,9 @@ go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil || goto :error +:: Manually copy licenses that go-licenses could not download +xcopy /s %RECIPE_DIR%\license-files\* %SRC_DIR%\license-files || goto :error + goto :EOF :error diff --git a/recipes/rush/build.sh b/recipes/rush/build.sh index baf693d84cd80..099f5e18f1733 100755 --- a/recipes/rush/build.sh +++ b/recipes/rush/build.sh @@ -4,3 +4,6 @@ set -o xtrace -o nounset -o pipefail -o errexit go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil + +# Manually copy licenses that go-licenses could not download +cp -r ${RECIPE_DIR}/license-files/* ${SRC_DIR}/license-files diff --git a/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE b/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE new file mode 100644 index 0000000000000..67983e0e61870 --- /dev/null +++ b/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2014 The sortutil Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the names of the authors nor the names of the +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. From d27537fb72ba74d227fe67ffe68c7d3b6b8c35da Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 9 Nov 2024 21:22:37 -0800 Subject: [PATCH 3/4] add missing dependencies --- recipes/rsc-2fa/meta.yaml | 2 ++ recipes/snyk-ls/meta.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/recipes/rsc-2fa/meta.yaml b/recipes/rsc-2fa/meta.yaml index 05f2d84ff01f2..19d95afe0ebfd 100755 --- a/recipes/rsc-2fa/meta.yaml +++ b/recipes/rsc-2fa/meta.yaml @@ -18,6 +18,8 @@ requirements: - go-licenses test: + requires: + - m2-grep # [win] commands: - 2fa --help 2>&1 | grep -q "2fa -list" diff --git a/recipes/snyk-ls/meta.yaml b/recipes/snyk-ls/meta.yaml index ca3d7112f4657..5e2d00aac6037 100755 --- a/recipes/snyk-ls/meta.yaml +++ b/recipes/snyk-ls/meta.yaml @@ -18,6 +18,8 @@ requirements: - go-licenses test: + requires: + - m2-grep # [win] commands: - snyk-ls --help 2>&1 | grep -q "Usage of snyk-ls" From c87c4db52d316b63da0993aa420490ccfbe7dd76 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Sat, 9 Nov 2024 21:26:24 -0800 Subject: [PATCH 4/4] remove rush --- recipes/rush/bld.bat | 11 ------ recipes/rush/build.sh | 9 ----- .../github.com/cznic/sortutil/LICENSE | 27 -------------- recipes/rush/meta.yaml | 35 ------------------- 4 files changed, 82 deletions(-) delete mode 100755 recipes/rush/bld.bat delete mode 100755 recipes/rush/build.sh delete mode 100644 recipes/rush/license-files/github.com/cznic/sortutil/LICENSE delete mode 100755 recipes/rush/meta.yaml diff --git a/recipes/rush/bld.bat b/recipes/rush/bld.bat deleted file mode 100755 index 6d1d2f8f66ab2..0000000000000 --- a/recipes/rush/bld.bat +++ /dev/null @@ -1,11 +0,0 @@ -go build -buildmode=pie -trimpath -o=%LIBRARY_PREFIX%\bin\%PKG_NAME%.exe -ldflags="-s" || goto :error -go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil || goto :error - -:: Manually copy licenses that go-licenses could not download -xcopy /s %RECIPE_DIR%\license-files\* %SRC_DIR%\license-files || goto :error - -goto :EOF - -:error -echo Failed with error #%errorlevel%. -exit 1 diff --git a/recipes/rush/build.sh b/recipes/rush/build.sh deleted file mode 100755 index 099f5e18f1733..0000000000000 --- a/recipes/rush/build.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -set -o xtrace -o nounset -o pipefail -o errexit - -go build -buildmode=pie -trimpath -o=${PREFIX}/bin/${PKG_NAME} -ldflags="-s -w" -go-licenses save . --save_path=license-files --ignore github.com/cznic/sortutil - -# Manually copy licenses that go-licenses could not download -cp -r ${RECIPE_DIR}/license-files/* ${SRC_DIR}/license-files diff --git a/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE b/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE deleted file mode 100644 index 67983e0e61870..0000000000000 --- a/recipes/rush/license-files/github.com/cznic/sortutil/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2014 The sortutil Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the names of the authors nor the names of the -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/recipes/rush/meta.yaml b/recipes/rush/meta.yaml deleted file mode 100755 index 373ac63647d4b..0000000000000 --- a/recipes/rush/meta.yaml +++ /dev/null @@ -1,35 +0,0 @@ -{% set name = "rush" %} -{% set version = "0.5.4" %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - url: https://github.com/shenwei356/rush/archive/v{{ version }}.tar.gz - sha256: fe1d1a453b1ce64f6d27d1e89bef253ef7be2938cb901508d2845d71329b8ec5 - -build: - number: 0 - -requirements: - build: - - {{ compiler('go-nocgo') }} - - go-licenses - -test: - commands: - - rush --help - -about: - home: https://github.com/shenwei365/rush - license: MIT - license_file: - - LICENSE - - license-files/ - summary: A cross-platform command-line tool for executing jobs in parallel - dev_url: https://github.com/shenwei365/rush - -extra: - recipe-maintainers: - - danielnachun