Put software package on library.
This commit is contained in:
parent
0d5022509b
commit
859e8b70a4
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# kunpengsecl
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
This project develops security software components running on Kunpeng processors, specifically focusing on trusted computing related software components such as remote attestation client and service, etc.
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
|||||||
# kunpengsecl
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
This project develops security software components running on Kunpeng processors, specifically focusing on trusted computing related software components such as remote attestation client and service, etc.
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
||||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
BIN
kunpengsecl-v1.0.0.tar.gz
Normal file
BIN
kunpengsecl-v1.0.0.tar.gz
Normal file
Binary file not shown.
141
kunpengsecl.spec
Normal file
141
kunpengsecl.spec
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
%global name kunpengsecl
|
||||||
|
%global version 1.0.0
|
||||||
|
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: A remote attestation security software components running on Kunpeng processors.
|
||||||
|
Summary(zh_CN): 一款运行于鲲鹏处理器上的远程证明安全软件组件
|
||||||
|
License: Mulan PSL v2
|
||||||
|
URL: https://gitee.com/openeuler/kunpengsecl
|
||||||
|
Source0: %{name}-v%{version}.tar.gz
|
||||||
|
BuildRequires: gettext make golang
|
||||||
|
BuildRequires: protobuf-compiler openssl-devel
|
||||||
|
|
||||||
|
Requires: openssl
|
||||||
|
Packager: WangLi, Wucaijun
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is %{name} project, including rac, ras and rahub packages.
|
||||||
|
|
||||||
|
%package rac
|
||||||
|
Summary: the rac package.
|
||||||
|
|
||||||
|
%description rac
|
||||||
|
This is the rac rpm package.
|
||||||
|
|
||||||
|
%package ras
|
||||||
|
Summary: the ras package.
|
||||||
|
|
||||||
|
%description ras
|
||||||
|
This is the ras rpm package.
|
||||||
|
|
||||||
|
%package rahub
|
||||||
|
Summary: the rahub package.
|
||||||
|
|
||||||
|
%description rahub
|
||||||
|
This is the rahub rpm package.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c
|
||||||
|
|
||||||
|
%build
|
||||||
|
make build
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}/usr/bin/
|
||||||
|
mkdir -p %{buildroot}/usr/bin/
|
||||||
|
rm -rf %{buildroot}/etc/
|
||||||
|
mkdir -p %{buildroot}/etc/attestation/rac/
|
||||||
|
mkdir -p %{buildroot}/etc/attestation/rahub/
|
||||||
|
mkdir -p %{buildroot}/etc/attestation/ras/
|
||||||
|
rm -rf %{buildroot}/usr/share/
|
||||||
|
mkdir -p %{buildroot}/usr/share/attestation/rac/
|
||||||
|
mkdir -p %{buildroot}/usr/share/attestation/ras/
|
||||||
|
mkdir -p %{buildroot}/usr/share/doc/attestation/ras/
|
||||||
|
mkdir -p %{buildroot}/usr/share/doc/attestation/rac/
|
||||||
|
mkdir -p %{buildroot}/usr/share/doc/attestation/rahub/
|
||||||
|
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/rac/pkg/raagent %{buildroot}/usr/bin/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/rac/pkg/rahub %{buildroot}/usr/bin/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/rac/pkg/tbprovisioner %{buildroot}/usr/bin/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/ras/pkg/ras %{buildroot}/usr/bin/
|
||||||
|
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/attestation/rac/cmd/raagent/config.yaml %{buildroot}/etc/attestation/rac/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/attestation/rac/cmd/rahub/config.yaml %{buildroot}/etc/attestation/rahub/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/attestation/ras/cmd/ras/config.yaml %{buildroot}/etc/attestation/ras/
|
||||||
|
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/prepare-database-env.sh %{buildroot}/usr/share/attestation/ras/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/clear-database.sh %{buildroot}/usr/share/attestation/ras/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/createTable.sql %{buildroot}/usr/share/attestation/ras/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/clearTable.sql %{buildroot}/usr/share/attestation/ras/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/dropTable.sql %{buildroot}/usr/share/attestation/ras/
|
||||||
|
install -m 555 %{_builddir}/%{name}-%{version}/attestation/quick-scripts/integritytools/*.sh %{buildroot}/usr/share/attestation/rac/
|
||||||
|
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.md %{buildroot}/usr/share/doc/attestation/ras/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.en.md %{buildroot}/usr/share/doc/attestation/ras/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/doc/attestation/ras/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.md %{buildroot}/usr/share/doc/attestation/rac/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.en.md %{buildroot}/usr/share/doc/attestation/rac/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/doc/attestation/rac/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.md %{buildroot}/usr/share/doc/attestation/rahub/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/README.en.md %{buildroot}/usr/share/doc/attestation/rahub/
|
||||||
|
install -m 644 %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/doc/attestation/rahub/
|
||||||
|
|
||||||
|
# %check
|
||||||
|
# make check
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
%preun
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md README.en.md
|
||||||
|
|
||||||
|
%files rac
|
||||||
|
%{_bindir}/raagent
|
||||||
|
%{_bindir}/tbprovisioner
|
||||||
|
%{_sysconfdir}/attestation/rac/config.yaml
|
||||||
|
%{_datadir}/attestation/rac/containerintegritytool.sh
|
||||||
|
%{_datadir}/attestation/rac/pcieintegritytool.sh
|
||||||
|
%{_datadir}/attestation/rac/hostintegritytool.sh
|
||||||
|
%{_docdir}/attestation/rac/README.md
|
||||||
|
%{_docdir}/attestation/rac/README.en.md
|
||||||
|
%{_docdir}/attestation/rac/LICENSE
|
||||||
|
|
||||||
|
%files ras
|
||||||
|
%{_bindir}/ras
|
||||||
|
%{_sysconfdir}/attestation/ras/config.yaml
|
||||||
|
%{_datadir}/attestation/ras/prepare-database-env.sh
|
||||||
|
%{_datadir}/attestation/ras/clear-database.sh
|
||||||
|
%{_datadir}/attestation/ras/createTable.sql
|
||||||
|
%{_datadir}/attestation/ras/clearTable.sql
|
||||||
|
%{_datadir}/attestation/ras/dropTable.sql
|
||||||
|
%{_docdir}/attestation/ras/README.md
|
||||||
|
%{_docdir}/attestation/ras/README.en.md
|
||||||
|
%{_docdir}/attestation/ras/LICENSE
|
||||||
|
|
||||||
|
%files rahub
|
||||||
|
%{_bindir}/rahub
|
||||||
|
%{_sysconfdir}/attestation/rahub/config.yaml
|
||||||
|
%{_docdir}/attestation/rahub/README.md
|
||||||
|
%{_docdir}/attestation/rahub/README.en.md
|
||||||
|
%{_docdir}/attestation/rahub/LICENSE
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{_builddir}
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Dec 08 2021 aaron-liwang <3214053332@qq.com> - 1.0.0-3
|
||||||
|
- add the rahub package.
|
||||||
|
- reorganize the directory structure of all packages.
|
||||||
|
- add BuildRequires protobuf-compiler and Requires openssl.
|
||||||
|
* Fri Nov 12 2021 wucaijun <wucaijun2001@163.com> - 1.0.0-2
|
||||||
|
- create the rpmbuild directory.
|
||||||
|
- modify the kunpengsecl.spec and buildrpm.sh files.
|
||||||
|
- add root Makefile to build/clean rpm package.
|
||||||
|
* Thu Nov 11 2021 aaron-liwang <3214053332@qq.com> - 1.0.0-1
|
||||||
|
- Update to 1.0.0
|
||||||
4
kunpengsecl.yaml
Normal file
4
kunpengsecl.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: gitee
|
||||||
|
src_repo: openEuler/kunpengsecl
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user