Fixed host_key issue on 64bit platforms

This commit is contained in:
Georg Pfuetzenreuter 2021-06-04 12:38:17 +02:00
parent 1d299d5b12
commit f394b665c2
Signed by: Georg
GPG Key ID: 0EC71AFA80C807E3
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: ssh-chat
Version: 1.10
Release: 0.4
Release: 0.5
Group: Productivity/Networking/SSH
Summary: SSH server providing a chatroom
License: MIT
@ -91,7 +91,11 @@ ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcssh-chat
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%endif
%ifarch x86_64
install -D -m 700 %{_builddir}/%{name}-%{version}/rpm/ssh-chat64.sh %{buildroot}%{_sysconfdir}/%{name}/ssh-chat.sh
%else
install -D -m 700 %{_builddir}/%{name}-%{version}/rpm/ssh-chat.sh %{buildroot}%{_sysconfdir}/%{name}/ssh-chat.sh
%endif
install -d -m 700 %{buildroot}%{_libdir}/%{name}
ssh-keygen -f %{buildroot}%{_libdir}/%{name}/host_key -P ''
chmod 400 %{buildroot}%{_libdir}/%{name}/host_key
@ -147,7 +151,9 @@ echo "No Go testing possible!"
%service_del_postun ssh-chat.service
%changelog
* Tue Mar 10 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 1.10-0.4
* Fri Jun 04 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 1.10-0.5
- Added symlink to 32bit libdir on 64bit platforms to prevent issue with the hostkey
* Wed Mar 10 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 1.10-0.4
- Fixed a typo. Added Group. Experimenting with CentOS support.
* Tue Mar 09 2021 Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net> - 1.10-0.3
- Added support for additional architectures: openSUSE Tumbleweed i586 and openSUSE ARM armv7l