File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ pkg_name=jfrog-cli
2
+ pkg_origin=core
3
+ pkg_version=1.3.1
4
+ pkg_license=(' apachev2' )
5
+ pkg_maintainer=
" The Habitat Maintainers <[email protected] >"
6
+ pkg_source=https://jfrog.bintray.com/jfrog-cli-go/1.3.1/jfrog-cli-linux-amd64/jfrog
7
+ pkg_shasum=81265ba5133ea7e735c6ec04f25f1ddcdba504dd41fce07a7ac44d012d993f21
8
+ pkg_deps=(core/glibc core/busybox-static core/cacerts)
9
+ pkg_build_deps=(core/coreutils core/patchelf)
10
+ pkg_bin_dirs=(bin)
11
+
12
+ do_unpack () {
13
+ return 0
14
+ }
15
+
16
+ do_build () {
17
+ return 0
18
+ }
19
+
20
+ do_install () {
21
+ install -D $HAB_CACHE_SRC_PATH /$pkg_filename $pkg_prefix /bin/jfrog
22
+ cgo_wrap_binary jfrog
23
+ }
24
+
25
+ cgo_wrap_binary () {
26
+ local bin=" $pkg_prefix /bin/$1 "
27
+ build_line " Adding wrapper $bin to ${bin} .real"
28
+ mv -v " $bin " " ${bin} .real"
29
+ local certs=" $( pkg_path_for cacerts) /ssl/cert.pem"
30
+ cat << EOF > "$bin "
31
+ #!$( pkg_path_for busybox-static) /bin/sh
32
+ set -e
33
+ if [ ! -f "/etc/ssl/certs/ca-certificates.crt" ]; then
34
+ echo "Adding symlink of $certs under /etc"
35
+ mkdir -p /etc/ssl/certs
36
+ ln -snf $certs /etc/ssl/certs/ca-certificates.crt
37
+ fi
38
+ export LD_LIBRARY_PATH="$LD_RUN_PATH "
39
+ exec $( pkg_path_for glibc) /lib/ld-linux-x86-64.so.2 ${bin} .real \$ @
40
+ EOF
41
+ chmod -v 755 " $bin "
42
+ }
You can’t perform that action at this time.
0 commit comments