mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
os400: Provide options for libssh2 use in compile scripts. Adjust README.
This commit is contained in:
parent
b27893d15c
commit
0cf80c05ea
@ -103,10 +103,10 @@ options:
|
|||||||
CURLOPT_RTSP_TRANSPORT
|
CURLOPT_RTSP_TRANSPORT
|
||||||
CURLOPT_SERVICE_NAME
|
CURLOPT_SERVICE_NAME
|
||||||
CURLOPT_SOCKS5_GSSAPI_SERVICE
|
CURLOPT_SOCKS5_GSSAPI_SERVICE
|
||||||
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 Note: SSH not available on OS400.
|
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
|
||||||
CURLOPT_SSH_KNOWNHOSTS Note: SSH not available on OS400.
|
CURLOPT_SSH_KNOWNHOSTS
|
||||||
CURLOPT_SSH_PRIVATE_KEYFILE Note: SSH not available on OS400.
|
CURLOPT_SSH_PRIVATE_KEYFILE
|
||||||
CURLOPT_SSH_PUBLIC_KEYFILE Note: SSH not available on OS400.
|
CURLOPT_SSH_PUBLIC_KEYFILE
|
||||||
CURLOPT_SSLCERT
|
CURLOPT_SSLCERT
|
||||||
CURLOPT_SSLCERTTYPE
|
CURLOPT_SSLCERTTYPE
|
||||||
CURLOPT_SSL_CIPHER_LIST
|
CURLOPT_SSL_CIPHER_LIST
|
||||||
@ -204,6 +204,8 @@ _ POP3
|
|||||||
_ POP3S
|
_ POP3S
|
||||||
_ POP3 with secure transmission
|
_ POP3 with secure transmission
|
||||||
_ RTSP
|
_ RTSP
|
||||||
|
_ SCP if libssh2 is enabled
|
||||||
|
_ SFTP if libssh2 is enabled
|
||||||
_ SMTP
|
_ SMTP
|
||||||
_ SMTPS
|
_ SMTPS
|
||||||
_ SMTP with secure transmission
|
_ SMTP with secure transmission
|
||||||
@ -219,13 +221,17 @@ archive extraction. Do not ask questions about these subjects if you're not
|
|||||||
familiar with.
|
familiar with.
|
||||||
|
|
||||||
_ As a prerequisite, QADRT development environment must be installed.
|
_ As a prerequisite, QADRT development environment must be installed.
|
||||||
|
_ If data compression has to be supported, ZLIB development environment must
|
||||||
|
be installed.
|
||||||
|
_ Likewise, if SCP and SFTP protocols have to be compiled in, LIBSSH2
|
||||||
|
developent environment must be installed.
|
||||||
_ Install the curl source directory in IFS.
|
_ Install the curl source directory in IFS.
|
||||||
_ Enter shell (QSH)
|
_ Enter shell (QSH)
|
||||||
_ Change current directory to the curl installation directory
|
_ Change current directory to the curl installation directory
|
||||||
_ Change current directory to ./packages/OS400
|
_ Change current directory to ./packages/OS400
|
||||||
_ Edit file iniscript.sh. You may want to change tunable configuration
|
_ Edit file iniscript.sh. You may want to change tunable configuration
|
||||||
parameters, like debug info generation, optimisation level, listing option,
|
parameters, like debug info generation, optimisation level, listing option,
|
||||||
target library, etc.
|
target library, ZLIB/LIBSSH2 availability and location, etc.
|
||||||
_ Copy any file in the current directory to makelog (i.e.:
|
_ Copy any file in the current directory to makelog (i.e.:
|
||||||
cp initscript.sh makelog): this is intended to create the makelog file with
|
cp initscript.sh makelog): this is intended to create the makelog file with
|
||||||
an ASCII CCSID!
|
an ASCII CCSID!
|
||||||
@ -254,6 +260,8 @@ _ CURL.INC member in file H. This defines everything needed by an ILE/RPG
|
|||||||
program using libcurl.
|
program using libcurl.
|
||||||
_ LIBxxx modules and programs. Although the test environment is not supported
|
_ LIBxxx modules and programs. Although the test environment is not supported
|
||||||
on OS/400, the libcurl test programs are compiled for manual tests.
|
on OS/400, the libcurl test programs are compiled for manual tests.
|
||||||
|
_ IFS directory /curl/include/curl containg the C header files for IFS source
|
||||||
|
C/C++ compilation and curl.inc.rpgle for IFS source ILE/RPG compilation.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -267,7 +275,8 @@ _ The EBCDIC CCSID used by QADRT is 37 by default, NOT THE JOB'S CCSID. If
|
|||||||
LC_CTYPE, or by setting environment variable QADRT_ENV_LOCALE to the locale
|
LC_CTYPE, or by setting environment variable QADRT_ENV_LOCALE to the locale
|
||||||
object path before executing the program.
|
object path before executing the program.
|
||||||
_ Do not use original source include files unless you know what you are doing.
|
_ Do not use original source include files unless you know what you are doing.
|
||||||
Use the installed members instead (in /QSYS.LIB/CURL.LIB/H.FILE).
|
Use the installed members instead (in /QSYS.LIB/CURL.LIB/H.FILE and
|
||||||
|
/curl/include/curl).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,6 +60,13 @@ setenv ZLIB_INCLUDE '/zlib/include' # ZLIB include IFS directory.
|
|||||||
setenv ZLIB_LIB 'ZLIB' # ZLIB library.
|
setenv ZLIB_LIB 'ZLIB' # ZLIB library.
|
||||||
setenv ZLIB_BNDDIR 'ZLIB_A' # ZLIB binding directory.
|
setenv ZLIB_BNDDIR 'ZLIB_A' # ZLIB binding directory.
|
||||||
|
|
||||||
|
# Define LIBSSH2 availability and locations.
|
||||||
|
|
||||||
|
setenv WITH_LIBSSH2 0 # Define to 1 to enable.
|
||||||
|
setenv LIBSSH2_INCLUDE '/libssh2/include' # LIBSSH2 include IFS directory.
|
||||||
|
setenv LIBSSH2_LIB 'LIBSSH2' # LIBSSH2 library.
|
||||||
|
setenv LIBSSH2_BNDDIR 'LIBSSH2_A' # LIBSSH2 binding directory.
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -190,6 +197,10 @@ make_module()
|
|||||||
then CMD="${CMD} '${ZLIB_INCLUDE}'"
|
then CMD="${CMD} '${ZLIB_INCLUDE}'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${WITH_LIBSSH2}" != "0" ]
|
||||||
|
then CMD="${CMD} '${LIBSSH2_INCLUDE}'"
|
||||||
|
fi
|
||||||
|
|
||||||
CMD="${CMD} ${INCLUDES})"
|
CMD="${CMD} ${INCLUDES})"
|
||||||
CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})"
|
CMD="${CMD} TGTCCSID(${TGTCCSID}) TGTRLS(${TGTRLS})"
|
||||||
CMD="${CMD} OUTPUT(${OUTPUT})"
|
CMD="${CMD} OUTPUT(${OUTPUT})"
|
||||||
@ -202,6 +213,10 @@ make_module()
|
|||||||
then DEFINES="${DEFINES} HAVE_LIBZ HAVE_ZLIB_H"
|
then DEFINES="${DEFINES} HAVE_LIBZ HAVE_ZLIB_H"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${WITH_LIBSSH2}" != "0" ]
|
||||||
|
then DEFINES="${DEFINES} USE_LIBSSH2 HAVE_LIBSSH2_H"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${DEFINES}" ]
|
if [ "${DEFINES}" ]
|
||||||
then CMD="${CMD} DEFINE(${DEFINES})"
|
then CMD="${CMD} DEFINE(${DEFINES})"
|
||||||
fi
|
fi
|
||||||
|
@ -128,6 +128,11 @@ then CMD="CRTSRVPGM SRVPGM(${TARGETLIB}/${SRVPGM})"
|
|||||||
CMD="${CMD} BNDDIR(${TARGETLIB}/${STATBNDDIR}"
|
CMD="${CMD} BNDDIR(${TARGETLIB}/${STATBNDDIR}"
|
||||||
if [ "${WITH_ZLIB}" != 0 ]
|
if [ "${WITH_ZLIB}" != 0 ]
|
||||||
then CMD="${CMD} ${ZLIB_LIB}/${ZLIB_BNDDIR}"
|
then CMD="${CMD} ${ZLIB_LIB}/${ZLIB_BNDDIR}"
|
||||||
|
liblist -a "${ZLIB_LIB}"
|
||||||
|
fi
|
||||||
|
if [ "${WITH_LIBSSH2}" != 0 ]
|
||||||
|
then CMD="${CMD} ${LIBSSH2_LIB}/${LIBSSH2_BNDDIR}"
|
||||||
|
liblist -a "${LIBSSH2_LIB}"
|
||||||
fi
|
fi
|
||||||
CMD="${CMD})"
|
CMD="${CMD})"
|
||||||
CMD="${CMD} BNDSRVPGM(QADRTTS QGLDCLNT QGLDBRDR)"
|
CMD="${CMD} BNDSRVPGM(QADRTTS QGLDCLNT QGLDBRDR)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user