- new bcond style
Changed files:
openssh.spec -> 1.183
-# _without_gnome - without gnome-askpass utility
-# _without_gtk - without gtk (2.x)
-# _with_ldap - with ldap support
-# _without_kerberos5 - without kerberos5 support
-#
-# default to gtk2-based gnome-askpass
+%bcond_with gnome # without gnome-askpass utility
+%bcond_without gtk # without gtk (2.x)
+%bcond_with ldap # with ldap support
+%bcond_without kerberos5 # without kerberos5 support
+%bcond_with chroot # with user chrooted env support
-%{!?_without_gtk:%define _without_gnome 1}
+# default to gtk2-based gnome-askpass
+%{?with_gtk:%define _without_gnome 1}
Summary: OpenSSH free Secure Shell (SSH) implementation
Summary(de): OpenSSH - freie Implementation der Secure Shell (SSH)
Summary(es): Implementación libre de SSH
Summary: OpenSSH free Secure Shell (SSH) implementation
Summary(de): OpenSSH - freie Implementation der Secure Shell (SSH)
Summary(es): Implementación libre de SSH
Summary(uk): OpenSSH - צÌØÎÁ ÒÅÁ̦ÚÁÃ¦Ñ ÐÒÏÔÏËÏÌÕ Secure Shell (SSH)
Name: openssh
Version: 3.7.1p2
Summary(uk): OpenSSH - צÌØÎÁ ÒÅÁ̦ÚÁÃ¦Ñ ÐÒÏÔÏËÏÌÕ Secure Shell (SSH)
Name: openssh
Version: 3.7.1p2
Epoch: 2
License: BSD
Group: Applications/Networking
Epoch: 2
License: BSD
Group: Applications/Networking
Patch5: ldappubkey-ossh3.6-v2.patch
Patch6: %{name}-heimdal.patch
Patch7: %{name}-pam-conv.patch
Patch5: ldappubkey-ossh3.6-v2.patch
Patch6: %{name}-heimdal.patch
Patch7: %{name}-pam-conv.patch
+# http://chrootssh.sourceforge.net/download/osshChroot-3.7.1p2.diff
+Patch8: %{name}-chroot.patch
URL: http://www.openssh.com/
BuildRequires: autoconf
BuildRequires: automake
URL: http://www.openssh.com/
BuildRequires: autoconf
BuildRequires: automake
-%{!?_without_gnome:BuildRequires: gnome-libs-devel}
-%{!?_without_gtk:BuildRequires: gtk+2-devel}
+%{?with_gnome:BuildRequires: gnome-libs-devel}
+%{?with_gtk:BuildRequires: gtk+2-devel}
BuildRequires: libwrap-devel
BuildRequires: openssl-devel >= 0.9.7c
BuildRequires: libwrap-devel
BuildRequires: openssl-devel >= 0.9.7c
-%{?_with_ldap:BuildRequires: openldap-devel}
-%{!?_without_kerberos5:BuildRequires: heimdal-devel}
+%{?with_ldap:BuildRequires: openldap-devel}
+%{?with_kerberos5:BuildRequires: heimdal-devel}
BuildRequires: pam-devel
BuildRequires: %{__perl}
BuildRequires: pam-devel
BuildRequires: %{__perl}
-%{!?_without_gtk:BuildRequires: pkgconfig}
+%{?with_gtk:BuildRequires: pkgconfig}
BuildRequires: zlib-devel
PreReq: FHS >= 2.1-24
PreReq: openssl >= 0.9.7c
BuildRequires: zlib-devel
PreReq: FHS >= 2.1-24
PreReq: openssl >= 0.9.7c
%patch2 -p1
%patch3 -p1
#%patch4 -p1
%patch2 -p1
%patch3 -p1
#%patch4 -p1
-%{?_with_ldap:%patch5 -p1}
-%{!?_without_kerberos5:%patch6 -p1}
+%{?with_ldap:%patch5 -p1}
+%{?with_kerberos5:%patch6 -p1}
+%{?with_chroot:%patch8 -p1}
--with-4in6 \
--disable-suid-ssh \
--with-tcp-wrappers \
--with-4in6 \
--disable-suid-ssh \
--with-tcp-wrappers \
- %{?_with_ldap:--with-libs="-lldap -llber"} \
- %{?_with_ldap:--with-cppflags="-DWITH_LDAP_PUBKEY"} \
- %{!?_without_kerberos5:--with-kerberos5} \
+ %{?with_ldap:--with-libs="-lldap -llber"} \
+ %{?with_ldap:--with-cppflags="-DWITH_LDAP_PUBKEY"} \
+ %{?with_kerberos5:--with-kerberos5} \
--with-privsep-path=%{_privsepdir} \
--with-pid-dir=%{_localstatedir}/run \
--with-xauth=/usr/X11R6/bin/xauth
--with-privsep-path=%{_privsepdir} \
--with-pid-dir=%{_localstatedir}/run \
--with-xauth=/usr/X11R6/bin/xauth
%{__cc} %{rpmcflags} %{rpmldflags} connect.c -o connect
cd contrib
%{__cc} %{rpmcflags} %{rpmldflags} connect.c -o connect
cd contrib
-%if 0%{!?_without_gnome:1}
%{__make} gnome-ssh-askpass1 \
CC="%{__cc} %{rpmldflags} %{rpmcflags}"
%endif
%{__make} gnome-ssh-askpass1 \
CC="%{__cc} %{rpmldflags} %{rpmcflags}"
%endif
-%if 0%{!?_without_gtk:1}
%{__make} gnome-ssh-askpass2 \
CC="%{__cc} %{rpmldflags} %{rpmcflags}"
%endif
%{__make} gnome-ssh-askpass2 \
CC="%{__cc} %{rpmldflags} %{rpmcflags}"
%endif
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
-%if 0%{!?_without_gnome:1}
install contrib/gnome-ssh-askpass1 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
%endif
install contrib/gnome-ssh-askpass1 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
%endif
-%if 0%{!?_without_gtk:1}
install contrib/gnome-ssh-askpass2 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
%endif
install contrib/gnome-ssh-askpass2 $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
%endif
-%if 0%{!?_without_gnome:1}%{!?_without_gtk:1}
+%if %{with gnome}%{with gtk}
install %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT/etc/profile.d
%endif
install %{SOURCE7} %{SOURCE8} $RPM_BUILD_ROOT/etc/profile.d
%endif
%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/sshd
%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/security/blacklist.sshd
-%if 0%{!?_without_gnome:1}%{!?_without_gtk:1}
+%if %{with gnome}%{with gtk}
%files gnome-askpass
%defattr(644,root,root,755)
%dir %{_libexecdir}/ssh
%files gnome-askpass
%defattr(644,root,root,755)
%dir %{_libexecdir}/ssh