Commit 93a463a8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

7.5-alt7

- cleanup spec, pack only nxssh
parent ae0b6fa0
%def_enable kerberos5 %def_with kerberos5
Name: nxssh Name: nxssh
Version: 7.5 Version: 7.5
Release: alt6 Release: alt7
Summary: Openssh portable (etersoft edition)
Packager: Pavel Vainerman <pv@altlinux.ru> Summary: Openssh portable (Etersoft edition) for using with NX
Group: Networking/Remote access
License: GPL, MIT/X11 for X11 bits License: GPL, MIT/X11 for X11 bits
Group: Networking/Remote access
Url: https://github.com/openssh/openssh-portable Url: https://github.com/openssh/openssh-portable
Packager: Pavel Vainerman <pv@altlinux.ru>
# Source-git: https://github.com/openssh/openssh-portable.git
Source: %name-%version.tar Source: %name-%version.tar
Patch1: 0001-fix-openssl-1.1.patch-eterbug-12901.patch Patch1: 0001-fix-openssl-1.1.patch-eterbug-12901.patch
...@@ -21,12 +23,12 @@ Requires: nx-libs >= 3.5.0.31 ...@@ -21,12 +23,12 @@ Requires: nx-libs >= 3.5.0.31
# optimized out: gnu-config libcom_err-devel libkrb5-devel nx perl python-base python-modules python3 python3-base zlib-devel # optimized out: gnu-config libcom_err-devel libkrb5-devel nx perl python-base python-modules python3 python3-base zlib-devel
BuildRequires: libjpeg-devel libpam-devel libpng-devel libssl-devel libstdc++-devel nx-libs-devel openssh-clients BuildRequires: libjpeg-devel libpam-devel libpng-devel libssl-devel libstdc++-devel nx-libs-devel openssh-clients
%if_enabled kerberos5 %if_with kerberos5
BuildRequires: libkrb5-devel BuildRequires: libkrb5-devel
%endif %endif
%description %description
Openssh portable (etersoft edition) Openssh portable (Etersoft edition) for using with NX.
%prep %prep
%setup %setup
...@@ -37,33 +39,31 @@ if [ -s %_libdir/libssl.so.1.1 ] ; then ...@@ -37,33 +39,31 @@ if [ -s %_libdir/libssl.so.1.1 ] ; then
fi fi
%build %build
# detect config placement
confdir=""
[ -r "/etc/openssh/ssh_config" ] && confdir="/openssh" [ -r "/etc/openssh/ssh_config" ] && confdir="/openssh"
[ -r "/etc/ssh/ssh_config" ] && confdir="/ssh" [ -r "/etc/ssh/ssh_config" ] && confdir="/ssh"
[ -r "/etc/ssh_config" ] && confdir="/" [ -r "/etc/ssh_config" ] && confdir="/"
%__subst "s|-DSSHDIR=\\\\\"\$(sysconfdir)\\\\\"|-DSSHDIR=\\\\\"\$(sysconfdir)${confdir}\\\\\"|g" Makefile.in
%__subst "s|-DSSHDIR=\\\\\"\$(sysconfdir)\\\\\"|-DSSHDIR=\\\\\"\$(sysconfdir)${confdir}\\\\\"|g" Makefile.in
with_kerberos=
%if_enabled kerberos5
with_kerberos="--with-kerberos5"
%endif
%autoreconf %autoreconf
%configure --without-zlib-version-check ${with_kerberos} %configure --without-zlib-version-check %{subst_with kerberos}
%make_build || %make %make_build || %make
# check ssh config path echo "checking ssh config path"
grep "/etc${confdir}/ssh_config" nxssh grep "/etc${confdir}/ssh_config" nxssh
%install %install
mkdir -p %buildroot%_bindir mkdir -p %buildroot%_bindir/
install -m755 nxssh nxsshd nxssh-keygen %buildroot%_bindir/ install -m755 nxssh %buildroot%_bindir/
%files %files
%_bindir/* %_bindir/nxssh
%changelog %changelog
* Sat Jun 23 2018 Vitaly Lipatov <lav@altlinux.ru> 7.5-alt7
- cleanup spec, pack only nxssh
* Wed Jun 06 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt6 * Wed Jun 06 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt6
- added path validation for ssh config (eterbug #12807) - added path validation for ssh config (eterbug #12807)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment