Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
29a2e34c
T
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1191
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
29a2e34c
编写于
4月 28, 2022
作者:
Z
zyyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change
上级
014948c8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
51 addition
and
48 deletion
+51
-48
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+51
-48
未找到文件。
packaging/tools/makepkg.sh
浏览文件 @
29a2e34c
...
@@ -64,15 +64,15 @@ if [ "$pagMode" == "lite" ]; then
...
@@ -64,15 +64,15 @@ if [ "$pagMode" == "lite" ]; then
taostools_bin_files
=
""
taostools_bin_files
=
""
else
else
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
build_dir
}
/bin/TDinsight.sh
\
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
build_dir
}
/bin/TDinsight.sh
&&
&&
echo
"TDinsight.sh downloaded!"
\
echo
"TDinsight.sh downloaded!"
||
||
echo
"failed to download TDinsight.sh"
echo
"failed to download TDinsight.sh"
taostools_bin_files
=
"
${
build_dir
}
/bin/
${
dumpName
}
\
taostools_bin_files
=
"
${
build_dir
}
/bin/
${
dumpName
}
\
${
build_dir
}
/bin/
${
benchmarkName
}
\
${
build_dir
}
/bin/
${
benchmarkName
}
\
${
build_dir
}
/bin/TDinsight.sh "
${
build_dir
}
/bin/TDinsight.sh "
#!!! do not change taosadapter here
#!!! do not change taosadapter here
bin_files
=
"
${
build_dir
}
/bin/
${
serverName
}
\
bin_files
=
"
${
build_dir
}
/bin/
${
serverName
}
\
${
build_dir
}
/bin/
${
clientName
}
\
${
build_dir
}
/bin/
${
clientName
}
\
${
taostools_bin_files
}
\
${
taostools_bin_files
}
\
...
@@ -107,12 +107,13 @@ mkdir -p ${install_dir}
...
@@ -107,12 +107,13 @@ mkdir -p ${install_dir}
mkdir
-p
${
install_dir
}
/inc
&&
cp
${
header_files
}
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/inc
&&
cp
${
header_files
}
${
install_dir
}
/inc
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/
${
configFile
}
${
install_dir
}
/cfg/
${
configFile
}
mkdir
-p
${
install_dir
}
/cfg
&&
cp
${
cfg_dir
}
/
${
configFile
}
${
install_dir
}
/cfg/
${
configFile
}
if
[
-f
"
${
compile_dir
}
/test/cfg/
${
adapterName
}
.toml"
]
;
then
# !!! do not change the taosadapter here!!!
cp
${
compile_dir
}
/test/cfg/
${
adapterName
}
.toml
${
install_dir
}
/cfg
||
:
if
[
-f
"
${
compile_dir
}
/test/cfg/taosadapter.toml"
]
;
then
cp
${
compile_dir
}
/test/cfg/taosadapter.toml
${
install_dir
}
/cfg
||
:
fi
fi
# !!! do not change the taosadapter here!!!
if
[
-f
"
${
compile_dir
}
/test/cfg/
${
adapterName
}
.service"
]
;
then
if
[
-f
"
${
compile_dir
}
/test/cfg/
taosadapter
.service"
]
;
then
cp
${
compile_dir
}
/test/cfg/
${
adapterName
}
.service
${
install_dir
}
/cfg
||
:
cp
${
compile_dir
}
/test/cfg/
taosadapter
.service
${
install_dir
}
/cfg
||
:
fi
fi
if
[
-f
"
${
cfg_dir
}
/
${
serverName
}
.service"
]
;
then
if
[
-f
"
${
cfg_dir
}
/
${
serverName
}
.service"
]
;
then
...
@@ -133,50 +134,52 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_rpm} ${install_dir}/init.d/${se
...
@@ -133,50 +134,52 @@ mkdir -p ${install_dir}/init.d && cp ${init_file_rpm} ${install_dir}/init.d/${se
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_deb
}
${
install_dir
}
/init.d/tarbitratord.deb
||
:
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_deb
}
${
install_dir
}
/init.d/tarbitratord.deb
||
:
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_rpm
}
${
install_dir
}
/init.d/tarbitratord.rpm
||
:
mkdir
-p
${
install_dir
}
/init.d
&&
cp
${
init_file_tarbitrator_rpm
}
${
install_dir
}
/init.d/tarbitratord.rpm
||
:
if
[
$adapterName
!=
"
${
adapterName
}
"
]
;
then
# !!! do not change taosadaptor here
mv
${
install_dir
}
/cfg/
${
adapterName
}
.toml
${
install_dir
}
/cfg/
$adapterName
.toml
if
[
$adapterName
!=
"taosadapter"
]
;
then
# !!! do not change taosadaptor here
mv
${
install_dir
}
/cfg/taosadapter.toml
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/path =
\"\/
var
\/
log
\/
taos
\"
/path =
\"\/
var
\/
log
\/
${
productName
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/path =
\"\/
var
\/
log
\/
taos
\"
/path =
\"\/
var
\/
log
\/
${
productName
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/password =
\"
taosdata
\"
/password =
\"
${
defaultPasswd
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
sed
-i
"s/password =
\"
taosdata
\"
/password =
\"
${
defaultPasswd
}
\"
/g"
${
install_dir
}
/cfg/
$adapterName
.toml
# !!! do not change taosadaptor here
mv
${
install_dir
}
/cfg/
${
adapterName
}
.service
${
install_dir
}
/cfg/
$adapterName
.service
mv
${
install_dir
}
/cfg/
taosadapter
.service
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/TDengine/
${
productName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/TDengine/
${
productName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosAdapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosAdapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosadapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
sed
-i
"s/taosadapter/
${
adapterName
}
/g"
${
install_dir
}
/cfg/
$adapterName
.service
# !!! do not change taosadaptor here
mv
${
install_dir
}
/bin/taosadapter
${
install_dir
}
/bin/
${
adapterName
}
mv
${
install_dir
}
/bin/taosadapter
${
install_dir
}
/bin/
${
adapterName
}
mv
${
install_dir
}
/bin/run_taosd_and_taosadapter.sh
${
install_dir
}
/bin/run_
${
serverName
}
_and_
${
adapterName
}
.sh
mv
${
install_dir
}
/bin/run_taosd_and_taosadapter.sh
${
install_dir
}
/bin/run_
${
serverName
}
_and_
${
adapterName
}
.sh
mv
${
install_dir
}
/bin/taosd-dump-cfg.gdb
${
install_dir
}
/bin/
${
serverName
}
-dump-cfg
.gdb
mv
${
install_dir
}
/bin/taosd-dump-cfg.gdb
${
install_dir
}
/bin/
${
serverName
}
-dump-cfg
.gdb
fi
fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
mkdir
-p
${
taostools_install_dir
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
"
mkdir
-p
${
taostools_install_dir
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
"
mkdir
-p
${
taostools_install_dir
}
/bin
\
mkdir
-p
${
taostools_install_dir
}
/bin
&&
&&
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
\
cp
${
taostools_bin_files
}
${
taostools_install_dir
}
/bin
&&
&&
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
chmod
a+x
${
taostools_install_dir
}
/bin/
*
||
:
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
]
;
then
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
\
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/install-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
${
taostools_install_dir
}
/
>
/dev/null
&&
&&
chmod
a+x
${
taostools_install_dir
}
/install-
${
toolsName
}
.sh
\
chmod
a+x
${
taostools_install_dir
}
/install-
${
toolsName
}
.sh
||
||
echo
-e
"failed to copy install-
${
toolsName
}
.sh"
echo
-e
"failed to copy install-
${
toolsName
}
.sh"
else
else
echo
-e
"install-
${
toolsName
}
.sh not found"
echo
-e
"install-
${
toolsName
}
.sh not found"
fi
fi
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
]
;
then
if
[
-f
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
]
;
then
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
\
cp
${
top_dir
}
/src/kit/taos-tools/packaging/tools/uninstall-
${
toolsName
}
.sh
\
${
taostools_install_dir
}
/
>
/dev/null
\
${
taostools_install_dir
}
/
>
/dev/null
&&
&&
chmod
a+x
${
taostools_install_dir
}
/uninstall-
${
toolsName
}
.sh
\
chmod
a+x
${
taostools_install_dir
}
/uninstall-
${
toolsName
}
.sh
||
||
echo
-e
"failed to copy uninstall-
${
toolsName
}
.sh"
echo
-e
"failed to copy uninstall-
${
toolsName
}
.sh"
else
else
echo
-e
"uninstall-
${
toolsName
}
.sh not found"
echo
-e
"uninstall-
${
toolsName
}
.sh not found"
fi
fi
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
if
[
-f
${
build_dir
}
/lib/libavro.so.23.0.0
]
;
then
mkdir
-p
${
taostools_install_dir
}
/avro/
{
lib,lib/pkgconfig
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
/avro"
mkdir
-p
${
taostools_install_dir
}
/avro/
{
lib,lib/pkgconfig
}
||
echo
-e
"failed to create
${
taostools_install_dir
}
/avro"
cp
${
build_dir
}
/lib/libavro.
*
${
taostools_install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/libavro.
*
${
taostools_install_dir
}
/avro/lib
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
taostools_install_dir
}
/avro/lib/pkgconfig
cp
${
build_dir
}
/lib/pkgconfig/avro-c.pc
${
taostools_install_dir
}
/avro/lib/pkgconfig
fi
fi
fi
fi
if
[
-f
${
build_dir
}
/bin/jemalloc-config
]
;
then
if
[
-f
${
build_dir
}
/bin/jemalloc-config
]
;
then
...
@@ -344,13 +347,13 @@ if [ "$exitcode" != "0" ]; then
...
@@ -344,13 +347,13 @@ if [ "$exitcode" != "0" ]; then
fi
fi
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
if
[
-n
"
${
taostools_bin_files
}
"
]
;
then
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
wget https://github.com/taosdata/grafanaplugin/releases/latest/download/TDinsight.sh
-O
${
taostools_install_dir
}
/bin/TDinsight.sh
&&
echo
"TDinsight.sh downloaded!"
||
echo
"failed to download TDinsight.sh"
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
tar
-zcv
-f
"
$(
basename
${
taostools_pkg_name
}
)
.tar.gz"
"
$(
basename
${
taostools_install_dir
}
)
"
--remove-files
||
:
exitcode
=
$?
exitcode
=
$?
if
[
"
$exitcode
"
!=
"0"
]
;
then
if
[
"
$exitcode
"
!=
"0"
]
;
then
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
echo
"tar
${
taostools_pkg_name
}
.tar.gz error !!!"
exit
$exitcode
exit
$exitcode
fi
fi
fi
fi
cd
${
curr_dir
}
cd
${
curr_dir
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录