diff --git a/A/autossh/build_tarballs.jl b/A/autossh/build_tarballs.jl new file mode 100644 index 00000000000..0f585575ebf --- /dev/null +++ b/A/autossh/build_tarballs.jl @@ -0,0 +1,52 @@ +# Note that this script can accept some limited command-line arguments, run +# `julia build_tarballs.jl --help` to see a usage message. +using BinaryBuilder, Pkg + +name = "autossh" +version = v"1.4.0-f" + +# Collection of sources required to complete build +sources = [ + ArchiveSource("https://github.com/Autossh/autossh/releases/download/v1.4f/autossh-1.4f.tgz", "0172e5e1bea40c642e0ef025334be3aadd4ff3b4d62c0b177ed88a8384e2f8f2") +] + +# Bash recipe for building across all platforms +script = raw""" +cd $WORKSPACE/srcdir +cd autossh-1.4f/ +./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --with-ssh=${prefix}/bin \ + ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes +make -j${nproc} +make install +exit +""" + +# These are the platforms we will build for by default, unless further +# platforms are passed in on the command line +platforms = [ + Platform("i686", "linux"; libc = "glibc"), + Platform("x86_64", "linux"; libc = "glibc"), + Platform("aarch64", "linux"; libc = "glibc"), + Platform("armv6l", "linux"; call_abi = "eabihf", libc = "glibc"), + Platform("armv7l", "linux"; call_abi = "eabihf", libc = "glibc"), + Platform("powerpc64le", "linux"; libc = "glibc"), + Platform("i686", "linux"; libc = "musl"), + Platform("x86_64", "linux"; libc = "musl"), + Platform("aarch64", "linux"; libc = "musl"), + Platform("armv6l", "linux"; call_abi = "eabihf", libc = "musl"), + Platform("armv7l", "linux"; call_abi = "eabihf", libc = "musl") +] + + +# The products that we will ensure are always built +products = [ + ExecutableProduct("autossh", :autossh) +] + +# Dependencies that must be installed before this package can be built +dependencies = [ + Dependency(PackageSpec(name="OpenSSH_jll", uuid="9bd350c2-7e96-507f-8002-3f2e150b4e1b")) +] + +# Build the tarballs, and possibly a `build.jl` as well. +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")