$(LD) -o $@ scp.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
diff -bruN openssh-2.1.0/configure.in openssh-2.1.0.new/configure.in
--- openssh-2.1.0/configure.in Mon May 8 12:49:37 2000
-+++ openssh-2.1.0.new/configure.in Wed May 10 20:29:00 2000
-@@ -757,7 +757,10 @@
++++ openssh-2.1.0.new/configure.in Wed May 10 20:44:06 2000
+@@ -756,8 +756,11 @@
+ [ --with-tcp-wrappers Enable tcpwrappers support],
[
if test "x$withval" != "xno" ; then
++ # we need to add -lwrap to LIBS only for configure
++ # testing, and then remove
saved_LIBS="$LIBS"
- LIBS="$LIBS -lwrap"
+ LIBWRAP="-lwrap"
-+ AC_SUBST(LIBWRAP)
-+ AC_DEFINE(LIBWRAP)
-+ LIBS="$saved_LIBS"
++ LIBS="$LIBS $LIBWRAP"
AC_MSG_CHECKING(for libwrap)
AC_TRY_LINK(
[
+@@ -768,6 +771,7 @@
+ [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(LIBWRAP)
++ AC_SUBST(LIBWRAP)
+ ],
+ [
+ AC_MSG_RESULT(no)
+@@ -775,6 +779,7 @@
+ LIBS="$saved_LIBS"
+ ]
+ )
++ LIBS="$saved_LIBS"
+ fi
+ ]
+ )
BuildRequires: pam-devel
BuildRequires: XFree86-devel
BuildRequires: gnome-libs-devel
+BuildRequires: gtk+-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Prereq: openssl >= 0.9.4-2
Obsoletes: ssh < %{version}, ssh > %{version}
echo '#define LOGIN_PROGRAM "/bin/login"' >>config.h
make
+cd contrib && gcc `gnome-config --cflags gnome gnomeui` \
+ gnome-ssh-askpass.c -o gnome-ssh-askpass \
+ `gnome-config --libs gnome gnomeui`
%install
rm -rf $RPM_BUILD_ROOT
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/ssh_config
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sshd_config
install -d $RPM_BUILD_ROOT%{_libexecdir}/ssh
-install ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
+install contrib/ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/ssh/ssh-askpass
gzip -9fn ChangeLog OVERVIEW COPYING.Ylonen README README.Ylonen UPGRADING \
$RPM_BUILD_ROOT/%{_mandir}/man*/*