OLD | NEW |
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 EXECUTABLES="scp${NACL_EXEEXT} ssh${NACL_EXEEXT} \ | 5 EXECUTABLES="scp${NACL_EXEEXT} ssh${NACL_EXEEXT} \ |
6 ssh-add${NACL_EXEEXT} sshd${NACL_EXEEXT}" | 6 ssh-add${NACL_EXEEXT} sshd${NACL_EXEEXT}" |
7 INSTALL_TARGETS="install-nokeys" | 7 INSTALL_TARGETS="install-nokeys" |
8 | 8 |
9 # Add --with-privsep-path otherwise openssh creates /var/empty | 9 # Add --with-privsep-path otherwise openssh creates /var/empty |
10 # in the root of DESTDIR. | 10 # in the root of DESTDIR. |
11 EXTRA_CONFIGURE_ARGS="--with-privsep-path=${PREFIX}/var/empty" | 11 EXTRA_CONFIGURE_ARGS="--with-privsep-path=${PREFIX}/var/empty" |
12 | 12 |
13 # Force configure to recognise the existence of truncate | 13 # Force configure to recognise the existence of truncate |
14 # and sigaction. Normally it will detect that both this functions | 14 # and sigaction. Normally it will detect that both this functions |
15 # are implemented by glibc in terms of NOSYS. | 15 # are implemented by glibc in terms of NOSYS. |
16 export ac_cv_func_truncate=yes | 16 export ac_cv_func_truncate=yes |
17 export ac_cv_func_sigaction=yes | 17 export ac_cv_func_sigaction=yes |
18 | 18 |
19 export SSHLIBS="-lppapi_simple -lnacl_io -lcli_main -lppapi_cpp \ | 19 export SSHLIBS="-lppapi_simple -lnacl_io -lnacl_spawn -lcli_main -lppapi_cpp \ |
20 -lppapi -l${NACL_CPP_LIB}" | 20 -lppapi -l${NACL_CPP_LIB}" |
21 if [ "${NACL_LIBC}" = "newlib" ]; then | 21 if [ "${NACL_LIBC}" = "newlib" ]; then |
22 CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 22 CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
23 export LIBS=" -lcrypto -lglibc-compat" | 23 export LIBS=" -lcrypto -lglibc-compat" |
24 export LD="${NACLCXX}" | 24 export LD="${NACLCXX}" |
25 fi | 25 fi |
26 | 26 |
27 InstallStep() { | 27 InstallStep() { |
28 DefaultInstallStep | 28 DefaultInstallStep |
29 | 29 |
30 MakeDir ${PUBLISH_DIR} | 30 MakeDir ${PUBLISH_DIR} |
31 local ASSEMBLY_DIR="${PUBLISH_DIR}/openssh" | 31 local ASSEMBLY_DIR="${PUBLISH_DIR}/openssh" |
32 MakeDir ${ASSEMBLY_DIR} | 32 MakeDir ${ASSEMBLY_DIR} |
33 LogExecute cp ssh${NACL_EXEEXT} \ | 33 LogExecute cp ssh${NACL_EXEEXT} \ |
34 ${ASSEMBLY_DIR}/ssh_${NACL_ARCH}${NACL_EXEEXT} | 34 ${ASSEMBLY_DIR}/ssh_${NACL_ARCH}${NACL_EXEEXT} |
35 | 35 |
36 pushd ${ASSEMBLY_DIR} | 36 pushd ${ASSEMBLY_DIR} |
37 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ | 37 LogExecute python ${NACL_SDK_ROOT}/tools/create_nmf.py \ |
38 ssh_*${NACL_EXEEXT} \ | 38 ssh_*${NACL_EXEEXT} \ |
39 -s . \ | 39 -s . \ |
40 -o openssh.nmf | 40 -o openssh.nmf |
41 LogExecute python ${TOOLS_DIR}/create_term.py openssh.nmf | 41 LogExecute python ${TOOLS_DIR}/create_term.py openssh.nmf |
42 popd | 42 popd |
43 | 43 |
44 InstallNaClTerm ${ASSEMBLY_DIR} | 44 InstallNaClTerm ${ASSEMBLY_DIR} |
45 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} | 45 LogExecute cp ${START_DIR}/background.js ${ASSEMBLY_DIR} |
46 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} | 46 LogExecute cp ${START_DIR}/manifest.json ${ASSEMBLY_DIR} |
47 } | 47 } |
OLD | NEW |