-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuildenv
More file actions
52 lines (44 loc) · 1.51 KB
/
Copy pathbuildenv
File metadata and controls
52 lines (44 loc) · 1.51 KB
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
# bump: openssh-version /OPENSSH_VERSION="(.*)"/ https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/|re:#href="openssh-(\d+)\.(\d+)p(\d+)\.tar\.gz"#${1}.${2}.${3}#|semver:*|re:/^(?P<name>\d+\.\d+)\.(?P<value>\d+)$/${name}p${value}/
OPENSSH_VERSION="9.9p1"
export ZOPEN_BUILD_LINE="STABLE"
export ZOPEN_CATEGORIES="security"
export ZOPEN_STABLE_URL="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${OPENSSH_VERSION}.tar.gz"
export ZOPEN_STABLE_DEPS="make zlib openssl3 coreutils sed gawk man-db:bin groff:bin"
export ZOPEN_EXTRA_CONFIGURE_OPTS="--with-ssl-dir=\$OPENSSL3_HOME --with-zlib=\$ZLIB_HOME --with-mantype=man"
export ZOPEN_MAKE_MINIMAL="yes"
export ZOPEN_MAKE_OPTS="-j\$ZOPEN_NUM_JOBS"
export ZOPEN_CHECK_OPTS="tests -j\$ZOPEN_NUM_JOBS"
export ZOPEN_MAKE_CHECK_MINIMAL="yes"
export ZOPEN_COMP=CLANG # use clang
zopen_check_results()
{
dir="$1"
pfx="$2"
chk="$1/$2_check.log"
# Echo the following information to gauge build health
echo "actualFailures:0"
echo "totalTests:1"
echo "expectedFailures:0"
echo "expectedTotalTests:1"
}
zopen_append_to_env()
{
# echo envars outside of PATH, MANPATH, LIBPATH
}
zopen_append_to_setup()
{
# echo commands that will run when installing via setup.sh
}
zopen_post_install()
{
install_dir="$1"
cp "$PWD/contrib/ssh-copy-id" "$install_dir/bin/ssh-copy-id"
chmod 755 "$install_dir/bin/ssh-copy-id"
#TODO These are broken:
rm $ZOPEN_INSTALL_DIR/bin/sftp
rm $ZOPEN_INSTALL_DIR/bin/scp
}
zopen_get_version()
{
echo $OPENSSH_VERSION | cut -d 'p' -f 1
}