projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR: 2252
[openssl.git]
/
util
/
cygwin.sh
diff --git
a/util/cygwin.sh
b/util/cygwin.sh
index 0cc31978709363021c82378d6371a1a38f1b88c2..a4f2e740b42cae3c3599df25a7d0394f107cdd13 100755
(executable)
--- a/
util/cygwin.sh
+++ b/
util/cygwin.sh
@@
-7,7
+7,7
@@
# Uncomment when debugging
#set -x
# Uncomment when debugging
#set -x
-CONFIG_OPTIONS="--prefix=/usr shared
no-idea no-rc5 no-mdc2
"
+CONFIG_OPTIONS="--prefix=/usr shared
zlib no-idea no-rc5
"
INSTALL_PREFIX=/tmp/install
VERSION=
INSTALL_PREFIX=/tmp/install
VERSION=
@@
-21,11
+21,11
@@
function cleanup()
function get_openssl_version()
{
function get_openssl_version()
{
- eval `grep '^VERSION=' Makefile
.ssl
`
+ eval `grep '^VERSION=' Makefile`
if [ -z "${VERSION}" ]
then
if [ -z "${VERSION}" ]
then
- echo "Error: Couldn't retrieve OpenSSL version from Makefile.
ssl.
"
- echo " Check value of variable VERSION in Makefile.
ssl.
"
+ echo "Error: Couldn't retrieve OpenSSL version from Makefile."
+ echo " Check value of variable VERSION in Makefile."
exit 1
fi
}
exit 1
fi
}
@@
-47,6
+47,14
@@
function doc_install()
create_cygwin_readme
}
create_cygwin_readme
}
+function certs_install()
+{
+ CERTS_DIR=${INSTALL_PREFIX}/usr/ssl/certs
+
+ mkdir -p ${CERTS_DIR}
+ cp -rp certs/* ${CERTS_DIR}
+}
+
function create_cygwin_readme()
{
README_DIR=${INSTALL_PREFIX}/usr/share/doc/Cygwin
function create_cygwin_readme()
{
README_DIR=${INSTALL_PREFIX}/usr/share/doc/Cygwin
@@
-58,7
+66,7
@@
function create_cygwin_readme()
./config ${CONFIG_OPTIONS}
./config ${CONFIG_OPTIONS}
- The IDEA
, RC5 and MDC2
algorithms are disabled due to patent and/or
+ The IDEA
and RC5
algorithms are disabled due to patent and/or
licensing issues.
EOF
}
licensing issues.
EOF
}
@@
-104,19
+112,25
@@
base_install
doc_install
doc_install
+certs_install
+
create_cygwin_readme
create_profile_files
cd ${INSTALL_PREFIX}
create_cygwin_readme
create_profile_files
cd ${INSTALL_PREFIX}
-strip usr/bin/*.exe usr/bin/*.dll
+chmod u+w usr/lib/engines/*.so
+strip usr/bin/*.exe usr/bin/*.dll usr/lib/engines/*.so
+chmod u-w usr/lib/engines/*.so
# Runtime package
# Runtime package
-find etc usr/bin usr/share/doc usr/ssl/certs usr/ssl/man/man[157] \
- usr/ssl/misc usr/ssl/openssl.cnf usr/ssl/private -empty -o \! -type d |
+find etc usr/bin usr/lib/engines usr/share/doc usr/ssl/certs \
+ usr/ssl/man/man[157] usr/ssl/misc usr/ssl/openssl.cnf usr/ssl/private \
+ -empty -o \! -type d |
tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 -
# Development package
tar cjfT openssl-${VERSION}-${SUBVERSION}.tar.bz2 -
# Development package
-find usr/include usr/lib usr/ssl/man/man3 -empty -o \! -type d |
+find usr/include usr/lib/*.a usr/lib/pkgconfig usr/ssl/man/man3 \
+ -empty -o \! -type d |
tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 -
ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2
tar cjfT openssl-devel-${VERSION}-${SUBVERSION}.tar.bz2 -
ls -l openssl-${VERSION}-${SUBVERSION}.tar.bz2