/
Portfile
65 lines (48 loc) · 2.04 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- 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 golang 1.0
go.setup github.com/moul/assh 2.16.0 v
go.package moul.io/assh/v2
go.offline_build no
github.tarball_from archive
revision 0
homepage https://manfred.life/assh
description Make your ssh client smarter
long_description {*}${description}. ${name} is a transparent wrapper that \
adds support for regex, aliases, gateways, dynamic \
hostnames, graphviz, json output, yaml configuration, and \
more to SSH.
categories sysutils net
installs_libs no
license MIT
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
checksums rmd160 3a7f999816cea8e1dd72ae70d0e77e568888e689 \
sha256 9635d4123d344779728299627be57ee7ca26aa3ca65ed2fd4510a4fdd508b3cf \
size 377261
build.cmd \
"make generate && \
${build.cmd} \
-v \
-ldflags=\"-X moul.io/assh/v2/pkg/version.Version=${version}\""
build.pre_args
build.args
build.jobs 0
set assh_examples_dir ${prefix}/share/${name}/examples
destroot {
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
xinstall -d ${destroot}${assh_examples_dir}
file copy {*}[glob ${worksrcpath}/examples/*] \
${destroot}${assh_examples_dir}
# Shell completions
xinstall -d ${destroot}${prefix}/share/bash-completion/completions
xinstall ${worksrcpath}/contrib/completion/bash_autocomplete \
${destroot}${prefix}/share/bash-completion/completions/${name}
xinstall -d ${destroot}${prefix}/share/zsh/site-functions
xinstall ${worksrcpath}/contrib/completion/zsh_autocomplete \
${destroot}${prefix}/share/zsh/site-functions/_${name}
}
notes "
Example configuration can be found in:
${assh_examples_dir}
"