]> git.pld-linux.org Git - packages/openssh.git/blame - openssh-libwrap.patch
2.5.1p1. stb
[packages/openssh.git] / openssh-libwrap.patch
CommitLineData
7ee3061b
JR
1diff -ur openssh-2.3.0p1.orig/Makefile.in openssh-2.3.0p1/Makefile.in
2--- openssh-2.3.0p1.orig/Makefile.in Sun Nov 5 22:13:45 2000
3+++ openssh-2.3.0p1/Makefile.in Tue Nov 7 16:13:15 2000
4@@ -22,6 +22,7 @@
74f9eee5 5 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
dfa53551 6 CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
dfa53551
JR
7 LIBS=@LIBS@
8+LIBWRAP=@LIBWRAP@
9 AR=@AR@
10 RANLIB=@RANLIB@
11 INSTALL=@INSTALL@
7ee3061b 12@@ -73,7 +74,7 @@
cd27668b 13 $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
dfa53551 14
7ee3061b 15 sshd$(EXEEXT): libssh.a libopenbsd-compat.a $(SSHDOBJS)
cd27668b 16- $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
17+ $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBWRAP)
dfa53551 18
7ee3061b 19 scp$(EXEEXT): libopenbsd-compat.a libssh.a scp.o
cd27668b 20 $(LD) -o $@ scp.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
7ee3061b
JR
21diff -ur openssh-2.3.0p1.orig/configure.in openssh-2.3.0p1/configure.in
22--- openssh-2.3.0p1.orig/configure.in Tue Nov 7 16:11:05 2000
23+++ openssh-2.3.0p1/configure.in Tue Nov 7 16:12:28 2000
24@@ -1121,8 +1121,11 @@
a15b61d8 25 [ --with-tcp-wrappers Enable tcpwrappers support],
cd27668b 26 [
27 if test "x$withval" != "xno" ; then
a15b61d8 28+ # we need to add -lwrap to LIBS only for configure
29+ # testing, and then remove
cd27668b 30 saved_LIBS="$LIBS"
31- LIBS="$LIBS -lwrap"
32+ LIBWRAP="-lwrap"
a15b61d8 33+ LIBS="$LIBS $LIBWRAP"
cd27668b 34 AC_MSG_CHECKING(for libwrap)
35 AC_TRY_LINK(
6b669923 36 [
7ee3061b 37@@ -1133,12 +1136,14 @@
a15b61d8 38 [
39 AC_MSG_RESULT(yes)
40 AC_DEFINE(LIBWRAP)
41+ AC_SUBST(LIBWRAP)
d2e26769 42 TCPW_MSG="yes"
a15b61d8 43 ],
44 [
d2e26769 45 AC_MSG_ERROR([*** libwrap missing])
a15b61d8 46 ]
47 )
48+ LIBS="$saved_LIBS"
49 fi
50 ]
51 )
This page took 0.035931 seconds and 4 git commands to generate.