Compare commits
No commits in common. "aecf2f9e741ffbbb42b6b68a57bb8b6978c9cfa3" and "63caa16b7f7d5aec43dff6f5ab6f70ac756a9f83" have entirely different histories.
aecf2f9e74
...
63caa16b7f
31
README.md
31
README.md
@ -1,33 +1,30 @@
|
|||||||
# ssh-key-dir
|
# ssh-key-dir
|
||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
ssh-key-dir is an sshd AuthorizedKeysCommand that reads SSH authorized key files from a directory, ~/.ssh/authorized_keys.d. It allows SSH keys to be managed by multiple tools and processes, without competing over ~/.ssh/authorized_keys.
|
ssh-key-dir is an sshd AuthorizedKeysCommand that reads SSH authorized key files from a directory
|
||||||
|
|
||||||
ssh-key-dir reads key files in lexigraphical order, ignoring any filenames starting with a dot.
|
#### 软件架构
|
||||||
|
软件架构说明
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
#### 安装教程
|
||||||
|
|
||||||
Install ssh-key-dir rpm package:
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
yum install ssh-key-dir
|
3. xxxx
|
||||||
|
|
||||||
|
|
||||||
You can also install just the ssh-key-dir binary with Rust's Cargo package manager:
|
|
||||||
|
|
||||||
cargo install ssh-key-dir
|
|
||||||
|
|
||||||
#### 使用说明
|
#### 使用说明
|
||||||
|
|
||||||
ssh-key-dir 是云底座操作系统NestOS的必需组件
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
master分支使用最新的上游版本,如果检测到上游有最新版本发布,先形成issue后再提交对应PR更新,流程如下。
|
1. Fork 本仓库
|
||||||
1. 提交issue
|
2. 新建 Feat_xxx 分支
|
||||||
2. Fork 本仓库
|
3. 提交代码
|
||||||
3. 新建 Feat_xxx 分支
|
4. 新建 Pull Request
|
||||||
4. 提交代码
|
|
||||||
5. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 特技
|
#### 特技
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
%global __cargo_skip_build 0
|
%global __cargo_skip_build 0
|
||||||
|
|
||||||
%global crate ssh-key-dir
|
%global crate ssh-key-dir
|
||||||
|
|
||||||
Name: rust-%{crate}
|
Name: rust-%{crate}
|
||||||
Version: 0.1.4
|
Version: 0.1.2
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -14,7 +15,7 @@ Source: %{crate}-%{version}.crate
|
|||||||
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: rust-packaging >= 21
|
BuildRequires: rust-packaging
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.}
|
sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.}
|
||||||
@ -60,13 +61,14 @@ replace-with = "vendored-sources"
|
|||||||
directory = "vendor"
|
directory = "vendor"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cargo_build
|
%cargo_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cargo_install
|
%cargo_install
|
||||||
mkdir -p %{buildroot}%{_libexecdir}
|
mkdir -p %{buildroot}%{_libexecdir}
|
||||||
mv %{_builddir}/ssh-key-dir-0.1.4/.cargo/bin/ssh-key-dir %{buildroot}%{_libexecdir}
|
mv %{_builddir}/ssh-key-dir-0.1.2/.cargo/bin/ssh-key-dir %{buildroot}%{_libexecdir}
|
||||||
install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf
|
install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
@ -75,14 +77,5 @@ install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 09 2022 chendexi <chendexi@kylinos.cn> -0.1.4-2
|
|
||||||
- Fix unsafe compile option STRIP
|
|
||||||
|
|
||||||
* Tue Nov 08 2022 duyiwei <duyiwei@kylinos.cn> - 0.1.4-1
|
|
||||||
- upgrade version to 0.1.4
|
|
||||||
|
|
||||||
* Tue Jun 07 2022 duyiwei <duyiwei@kylinos.cn> - 0.1.3-1
|
|
||||||
- upgrade to 0.1.3
|
|
||||||
|
|
||||||
* Wed Jan 26 2022 duyiwei <duyiwei@kylinos.cn> - 0.1.2-1
|
* Wed Jan 26 2022 duyiwei <duyiwei@kylinos.cn> - 0.1.2-1
|
||||||
- Package init
|
- Package init
|
||||||
BIN
ssh-key-dir-0.1.2-vendor.tar.gz
Normal file
BIN
ssh-key-dir-0.1.2-vendor.tar.gz
Normal file
Binary file not shown.
BIN
ssh-key-dir-0.1.2.crate
Normal file
BIN
ssh-key-dir-0.1.2.crate
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: coreos/ssh-key-dir
|
|
||||||
tag_prefix: "v"
|
|
||||||
separator: "."
|
|
||||||
Loading…
x
Reference in New Issue
Block a user