2018-09-17 22:36:53 +01:00
|
|
|
# -*- 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
|
|
|
|
|
|
|
|
|
|
name 1password-cli
|
2026-07-02 00:01:13 -04:00
|
|
|
version 2.34.1
|
2025-05-10 10:44:15 -04:00
|
|
|
revision 0
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2022-01-14 23:18:24 -05:00
|
|
|
homepage https://support.1password.com/command-line
|
2018-09-17 22:36:53 +01:00
|
|
|
|
|
|
|
|
description Official 1Password command-line tool
|
|
|
|
|
|
|
|
|
|
long_description View and manage 1password.com users, groups and objects \
|
|
|
|
|
from the command-line.
|
|
|
|
|
|
2022-01-14 23:18:24 -05:00
|
|
|
categories security
|
|
|
|
|
installs_libs no
|
|
|
|
|
license Restrictive/Distributable
|
2020-11-22 13:00:22 -05:00
|
|
|
maintainers {gmail.com:newtonne.github @newtonne} \
|
|
|
|
|
{gmail.com:herby.gillot @herbygillot} \
|
|
|
|
|
openmaintainer
|
2018-09-17 22:36:53 +01:00
|
|
|
|
|
|
|
|
set bin_name op
|
2021-07-23 00:43:40 -04:00
|
|
|
set archive ${bin_name}_apple_universal
|
2020-05-25 22:57:26 -04:00
|
|
|
set pkg_path ${workpath}/pkg
|
2021-04-15 12:18:56 -04:00
|
|
|
set pkg_workpath ${pkg_path}/op.pkg
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2020-05-25 22:57:26 -04:00
|
|
|
extract.cmd pkgutil
|
|
|
|
|
extract.pre_args --expand
|
|
|
|
|
extract.post_args ${pkg_path}
|
2018-09-17 22:36:53 +01:00
|
|
|
extract.mkdir yes
|
2020-05-25 22:57:26 -04:00
|
|
|
extract.suffix .pkg
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2022-03-16 05:49:17 -04:00
|
|
|
master_sites https://cache.agilebits.com/dist/1P/op2/pkg/v${version}/
|
2021-07-23 00:43:40 -04:00
|
|
|
distfiles ${archive}_v${version}${extract.suffix}
|
2021-07-26 07:48:14 -04:00
|
|
|
supported_archs arm64 x86_64
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2026-07-02 00:01:13 -04:00
|
|
|
checksums rmd160 f47db6b7aff42578061dc66b7be8307e2bb9f7d7 \
|
|
|
|
|
sha256 be9d58d4ce8351a9f1d4201584baea801a2fc30b3a63fe633a09f04d913c1e17 \
|
|
|
|
|
size 28298570
|
2018-09-17 22:36:53 +01:00
|
|
|
|
|
|
|
|
# Pre-built binary
|
|
|
|
|
use_configure no
|
|
|
|
|
build {}
|
|
|
|
|
|
2020-05-25 22:57:26 -04:00
|
|
|
post-extract {
|
2021-04-15 12:18:56 -04:00
|
|
|
system -W ${pkg_workpath} "cat ./Payload | gzip -d > ./Payload.cpio"
|
|
|
|
|
system -W ${pkg_workpath} "cat ./Payload.cpio | cpio -i"
|
2020-05-25 22:57:26 -04:00
|
|
|
}
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2025-01-20 23:42:57 -05:00
|
|
|
post-build {
|
|
|
|
|
set op ${pkg_workpath}/${bin_name}
|
|
|
|
|
set completions ${worksrcpath}/completions
|
|
|
|
|
|
|
|
|
|
xinstall -m 0755 -d ${completions}
|
|
|
|
|
|
|
|
|
|
foreach shell {bash fish zsh} {
|
|
|
|
|
system -nodup -W ${worksrcpath} \
|
|
|
|
|
"${op} completion ${shell} > ${completions}/${bin_name}.${shell}"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-17 22:36:53 +01:00
|
|
|
destroot {
|
2022-01-14 23:18:24 -05:00
|
|
|
xinstall -m 0755 ${pkg_workpath}/${bin_name} ${destroot}${prefix}/bin
|
2025-01-20 23:42:57 -05:00
|
|
|
|
|
|
|
|
set completions ${worksrcpath}/completions
|
|
|
|
|
|
|
|
|
|
set bash_comp_path ${destroot}${prefix}/share/bash-completion/completions
|
|
|
|
|
xinstall -m 0755 -d ${bash_comp_path}
|
|
|
|
|
xinstall -m 0644 ${completions}/${bin_name}.bash ${bash_comp_path}/${bin_name}
|
|
|
|
|
|
|
|
|
|
set fish_comp_path ${destroot}${prefix}/share/fish/vendor_completions.d
|
|
|
|
|
xinstall -m 0755 -d ${fish_comp_path}
|
|
|
|
|
xinstall -m 0644 ${completions}/${bin_name}.fish ${fish_comp_path}
|
|
|
|
|
|
|
|
|
|
set zsh_comp_path ${destroot}${prefix}/share/zsh/site-functions
|
|
|
|
|
xinstall -m 0755 -d ${zsh_comp_path}
|
|
|
|
|
xinstall -m 0644 ${completions}/${bin_name}.zsh ${zsh_comp_path}/_${bin_name}
|
2018-09-17 22:36:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
livecheck.type regex
|
2022-04-18 18:44:30 -04:00
|
|
|
livecheck.url https://app-updates.agilebits.com/product_history/CLI2
|
2021-07-23 00:43:40 -04:00
|
|
|
livecheck.regex ${archive}_v(\\d+(\\.\\d+)+)${extract.suffix}
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2025-08-20 15:07:53 +02:00
|
|
|
notes "
|
|
|
|
|
1Password CLI has been installed as '${bin_name}'
|
2018-09-17 22:36:53 +01:00
|
|
|
|
2025-01-20 23:42:57 -05:00
|
|
|
For instructions on getting started, see:
|
|
|
|
|
https://support.1password.com/command-line-getting-started/#get-started-with-the-command-line-tool
|
|
|
|
|
|
|
|
|
|
Completion scripts have been installed for Bash, Fish, and Zsh.
|
2025-08-20 15:07:53 +02:00
|
|
|
"
|