Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8b2f9cdf
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8b2f9cdf
编写于
4月 21, 2002
作者:
L
Lutz Jänicke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add cygwin build script (Corinna Vinschen <vinschen@redhat.com>).
上级
01682a8b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
125 addition
and
0 deletion
+125
-0
util/cygwin.sh
util/cygwin.sh
+125
-0
未找到文件。
util/cygwin.sh
0 → 100755
浏览文件 @
8b2f9cdf
#!/bin/bash
#
# This script configures, builds and packs the binary package for
# the Cygwin net distribution version of OpenSSL
#
# Uncomment when debugging
#set -x
CONFIG_OPTIONS
=
"--prefix=/usr shared no-idea no-rc5 no-mdc2"
INSTALL_PREFIX
=
/tmp/install
VERSION
=
SUBVERSION
=
$1
function
cleanup
()
{
rm
-rf
${
INSTALL_PREFIX
}
/etc
rm
-rf
${
INSTALL_PREFIX
}
/usr
}
function
get_openssl_version
()
{
eval
`
grep
'^VERSION='
Makefile.ssl
`
if
[
-z
"
${
VERSION
}
"
]
then
echo
"Error: Couldn't retrieve OpenSSL version from Makefile.ssl."
echo
" Check value of variable VERSION in Makefile.ssl."
exit
1
fi
}
function
base_install
()
{
mkdir
-p
${
INSTALL_PREFIX
}
cleanup
make
install
INSTALL_PREFIX
=
"
${
INSTALL_PREFIX
}
"
}
function
doc_install
()
{
DOC_DIR
=
${
INSTALL_PREFIX
}
/usr/doc/openssl
mkdir
-p
${
DOC_DIR
}
cp
CHANGES CHANGES.SSLeay INSTALL LICENSE NEWS README
${
DOC_DIR
}
create_cygwin_readme
}
function
create_cygwin_readme
()
{
README_DIR
=
${
INSTALL_PREFIX
}
/usr/doc/Cygwin
README_FILE
=
${
README_DIR
}
/openssl-
${
VERSION
}
.README
mkdir
-p
${
README_DIR
}
cat
>
${
README_FILE
}
<<-
EOF
The Cygwin version has been built using the following configure:
./config
${
CONFIG_OPTIONS
}
The IDEA, RC5 and MDC2 algorithms are disabled due to patent and/or
licensing issues.
EOF
}
function
create_profile_files
()
{
PROFILE_DIR
=
${
INSTALL_PREFIX
}
/etc/profile.d
mkdir
-p
$PROFILE_DIR
cat
>
${
PROFILE_DIR
}
/openssl.sh
<<-
"
EOF
"
export MANPATH="
${
MANPATH
}
:/usr/ssl/man"
EOF
cat
>
${
PROFILE_DIR
}
/openssl.csh
<<-
"
EOF
"
if (
$?
MANPATH ) then
setenv MANPATH "
${
MANPATH
}
:/usr/ssl/man"
else
setenv MANPATH ":/usr/ssl/man"
endif
EOF
}
if
[
-z
"
${
SUBVERSION
}
"
]
then
echo
"Usage:
$0
subversion"
exit
1
fi
if
[
!
-f
config
]
then
echo
"You must start this script in the OpenSSL toplevel source dir."
exit
1
fi
./config
${
CONFIG_OPTIONS
}
get_openssl_version
make
||
exit
1
base_install
doc_install
create_cygwin_readme
create_profile_files
cd
${
INSTALL_PREFIX
}
strip usr/bin/
*
.exe usr/bin/
*
.dll
# Runtime package
find etc usr/bin usr/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
find usr/include usr/lib usr/ssl/man/man3
-empty
-o
\!
-type
d |
tar
cjfT openssl-devel-
${
VERSION
}
-
${
SUBVERSION
}
.tar.bz2 -
ls
-l
openssl-
${
VERSION
}
-
${
SUBVERSION
}
.tar.bz2
ls
-l
openssl-devel-
${
VERSION
}
-
${
SUBVERSION
}
.tar.bz2
cleanup
exit
0
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录