RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/rust-ssh-key-dir#7df1c324cb09a50430eb7eda9848b2ad9f6071c2
This commit is contained in:
Troy Dawson 2020-10-15 08:43:47 -07:00
parent 592ab7cfa5
commit 469c801b1f
4 changed files with 98 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/ssh-key-dir-0.1.1.crate
/ssh-key-dir-0.1.2.crate

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# rust-ssh-key-dir
sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d

92
rust-ssh-key-dir.spec Normal file
View File

@ -0,0 +1,92 @@
# Generated by rust2rpm 13
%bcond_without check
%global __cargo_skip_build 0
%global crate ssh-key-dir
Name: rust-%{crate}
Version: 0.1.2
Release: 5%{?dist}
Summary: sshd AuthorizedKeysCommand to read ~/.ssh/authorized_keys.d
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/ssh-key-dir
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
sshd AuthorizedKeysCommand to read key files from ~/.ssh/authorized_keys.d.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# ASL 2.0
# MIT
# MIT or ASL 2.0
License: ASL 2.0 and MIT
Requires: openssh-server
Requires(post): openssh-server
Requires(post): systemd
Requires(postun): openssh-server
Requires(postun): systemd
%description -n %{crate} %{_description}
%files -n %{crate}
%{_libexecdir}/ssh-key-dir
%config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/40-ssh-key-dir.conf
%doc README.md
%license LICENSE
%post -n %{crate}
/usr/bin/systemctl try-reload-or-restart sshd.service
%postun -n %{crate}
if [ $1 == 0 ] ; then
/usr/bin/systemctl try-reload-or-restart sshd.service
fi
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
mv %{buildroot}%{_bindir} %{buildroot}%{_libexecdir}
install -Dpm0644 -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d conf/40-ssh-key-dir.conf
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Sun Aug 16 15:01:47 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-5
- Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.2-2
- Fixup license
* Fri Jun 26 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.2-1
- New release
* Wed Jun 17 2020 Benjamin Gilbert <bgilbert@redhat.com> - 0.1.1-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ssh-key-dir-0.1.2.crate) = 5413c8d95724574f4816a37b20af84b2378b35b36fa9e5dd8fe1a094c730176b75d19b7687f7666cee6c9d7f498cbf4d76ef7d65e123b8c62fa8f8548a5f13b3