Skip to content

Commit

Permalink
infisical: new submission
Browse files Browse the repository at this point in the history
  • Loading branch information
esafak committed Aug 15, 2024
1 parent 55fd1fd commit cd3f12e
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions security/infisical/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0

github.setup infisical infisical 0.28.4 infisical-cli/v
github.tarball_from releases
revision 0

categories security devel
maintainers openmaintainer {esafak @esafak}
license MIT

description Official CLI for Infisical, an open source secrets platform
long_description Official CLI for Infisical, an open source secrets platform
homepage https://infisical.com/

extract.mkdir yes
use_configure no
build {}

supported_archs arm64 x86_64
set arch ${build_arch}

if {${build_arch} eq "x86_64"} {
set arch "amd64"
}

distfiles infisical_${version}_darwin_${arch}.tar.gz
checksums infisical_${version}_darwin_amd64.tar.gz \
rmd160 069e4ee96660b3ad192ada2ba4b7a9f06d8d2ec8 \
sha256 0ff208aebd7410bae29f1bd99642c3d0cad021c3f1c58c2fe2479d1926ae8e2b \
size 15532412 \
infisical_${version}_darwin_arm64.tar.gz \
rmd160 96202ac993e8802788065fd714a3e08dc97ac3ab \
sha256 49320ab75b80d2975093492094469a08f250b1c780a6154ce0da269cf6bef83c \
size 14869954

destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/

# Shell completion
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
xinstall -d ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d
system "${destroot}${prefix}/bin/${name} completion bash > ${destroot}${prefix}/etc/bash_completion.d/${name}"
system "${destroot}${prefix}/bin/${name} completion fish > ${destroot}${prefix}/share/fish/vendor_completions.d/${name}.fish"
system "${destroot}${prefix}/bin/${name} completion zsh > ${destroot}${prefix}/share/zsh/site-functions/_${name}"
}

test.run yes
test.cmd ${prefix}/bin/infisical
test.target --version

0 comments on commit cd3f12e

Please sign in to comment.