Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
7bef5cead1
!17 [sync] PR-13: 【轻量级 PR】:Add safe compilation options PIE/pie/PIC/FS
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2023-03-07 06:59:15 +00:00
swf504
799d05e048 Add safe compilation options PIE/pie/PIC/FS
Add safe compilation options PIE/pie/PIC/FS

Signed-off-by: swf504 <suweifeng1@huawei.com>
(cherry picked from commit baef578b501efe4382b2f5df93267dac26270107)
2023-03-07 14:07:29 +08:00
openeuler-ci-bot
08a8642d3b
!12 [sync] PR-5: fix-changelog-date
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-06-17 08:00:35 +00:00
haomi123
6486e05882 fix-changelog-date
(cherry picked from commit 05835758b5be9c5f1fdf36ea50b792e011522452)
2022-06-17 15:47:36 +08:00
openeuler-ci-bot
3a64a22be5 !3 add safe compilation options fstack-protector-strong
From: @caodongxia
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-09-10 07:13:22 +00:00
caodongxia
f104101dd6 add safe compilation options fstack-protector-strong 2021-09-08 18:09:15 +08:00
openeuler-ci-bot
8616c147fb !2 bcache-tools: add yaml file for CI
From: @liuzhiqiang26
Reviewed-by: @markeryang,@volcanodragon,@wubo009
Signed-off-by: @wubo009
2021-02-07 14:53:25 +08:00
Zhiqiang Liu
218af6f0e0 bcache-tools: add yaml file for CI
add yaml file for CI.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2021-02-04 17:00:28 +08:00
openeuler-ci-bot
55cdfea10b !1 bcache-tools: init bcache-tools package with v1.1 version
From: @liuzhiqiang26
Reviewed-by: @wubo009
Signed-off-by: @volcanodragon
2021-01-06 14:49:40 +08:00
Zhiqiang Liu
20e9022103 bcache-tools: init bcache-tools package with v1.1 version
bcache is a Linux kernel block layer cache. It allows
one or more fast disk drives such as flash-based solid
state drives(SSDs) to act as a cache for one or more
slower hard disk drives.
bcache-tools containes the userspace tools required for
bcache. Here we init bcache-tools package with v1.1 version.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2021-01-06 12:19:46 +08:00
5 changed files with 61 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# bcache-tools
#### Description
Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives. bcache-tools contains the userspace tools required for bcache.
#### 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/)

View File

@ -1,37 +0,0 @@
# bcache-tools
#### 介绍
Bcache is a Linux kernel block layer cache. It allows one or more fast disk drives such as flash-based solid state drives (SSDs) to act as a cache for one or more slower hard disk drives. bcache-tools contains the userspace tools required for bcache.
#### 软件架构
软件架构说明
#### 安装教程
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
bcache-tools-1.1.tar.gz Normal file

Binary file not shown.

57
bcache-tools.spec Normal file
View File

@ -0,0 +1,57 @@
#needsrootforbuild
Name: bcache-tools
Version: 1.1
Release: 3
Summary: userspace tools for bcache
License: GPL-2.0
URL: http://bcache.evilpiepirate.org/
Source0: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires: gcc, tar, pkgconfig
BuildRequires: pkgconfig(blkid), pkgconfig(uuid)
%description
bcache is a linux kernel block layer cache. It allows one or more fast disk drivers,
such as flash-based solid state drives (SSDs) to act as a cache for one or more slower
hard disk drives.
bcache-tools contains the userspace tools required for bcache.
%prep
%autosetup -p1
%build
CFLAGS="$CFLAGS -fstack-protector-strong -fPIE -pie -fPIC -D_FORTIFY_SOURCE=2"
export CFLAGS
%make_build all
%install
mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}/usr/sbin
mkdir -p %{buildroot}/lib/udev
mkdir -p %{buildroot}/lib/udev/rules.d
mkdir -p %{buildroot}/%{_mandir}/man8
%make_install
%files
%{_sbindir}/make-bcache
%{_sbindir}/bcache
%{_sbindir}/bcache-super-show
/lib/udev/rules.d/69-bcache.rules
/lib/udev/probe-bcache
/lib/udev/bcache-register
/lib/dracut/modules.d/90bcache/module-setup.sh
/usr/lib/initcpio/install/bcache
/usr/share/initramfs-tools/hooks/bcache
%{_mandir}/man8/*.8*
%license COPYING
%changelog
* Tue Mar 7 2023 Weifeng Su <suweifeng1@huawei.com> - 1.1-3
- add safe compilation options PIE/pie/PIC/FS
* Mon Sep 6 2021 caodongxia <caodongxia@huawei.com> - 1.1-2
- add safe compilation options fstack-protector-strong
* Mon Jan 6 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 1.1-1
- init bcache-tools v1.1

4
bcache-tools.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git
tag_prefix: "bcache-tools-"
seperator: "."