woocode / sa-auto / src / openssh.sh

#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS="";
L_LDFLAGS="";

CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
LDFLAGS=" $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;

C_INCLUDE_PATH=$APP_LIB/openssl/include
export C_INCLUDE_PATH


LD_LIBRARY_PATH=$APP_LIB/openssl/lib
export LD_LIBRARY_PATH;

LDFLAGS="-static";export LDFLAGS;

rm -rf $OPENSSH
rm -rf $APP_SVR/openssh

tar zxvf $OPENSSH.tar.gz

cd $OPENSSH

mkdir -p  $APP_SVR/$OPENSSH/var/run
mkdir -p  $APP_SVR/$OPENSSH/var/empty
chmod 000 $APP_SVR/$OPENSSH/var

./configure --prefix=$APP_SVR/$OPENSSH		           \
            --with-ssl-dir=$APP_LIB/openssl	           \
            --without-openssl-header-check                 \
            --with-zlib=$APP_LIB/zlib	                   \
            --with-privsep-path=$APP_SVR/$OPENSSH/var                

make $MAKEOPT &&

make install

ln -s $APP_SVR/$OPENSSH $APP_SVR/openssh


#            --with-zlib=$APP_LIB/zlib	                     \
	    #--with-prngd-socket=$APP_SVR/openssh/var/run/egd-pool &&
            #--with-privsep-user=$USER                                  \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.