OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/tcp_wrappers-10-uclibc.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -u tcp_wrappers_7.6/Makefile tcp_wrappers_7.6/Makefile
  18. --- tcp_wrappers_7.6/Makefile Fri Mar 21 19:27:21 1997
  19. +++ tcp_wrappers_7.6/Makefile Tue Nov 27 20:48:03 2001
  20. @@ -657,7 +657,7 @@
  21. # Protection against weird shells or weird make programs.
  22. SHELL = /bin/sh
  23. -.c.o:; $(CC) $(CFLAGS) -c $*.c
  24. +.c.o:; $(LIBTOOL) $(CC) $(CFLAGS) -c $*.c
  25. CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  26. $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
  27. @@ -704,26 +704,26 @@
  28. -$(RANLIB) $(LIB)
  29. tcpd: tcpd.o $(LIB)
  30. - $(CC) $(CFLAGS) -o $@ tcpd.o $(LIB) $(LIBS)
  31. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ tcpd.o $(LIB) $(LIBS)
  32. miscd: miscd.o $(LIB)
  33. - $(CC) $(CFLAGS) -o $@ miscd.o $(LIB) $(LIBS)
  34. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ miscd.o $(LIB) $(LIBS)
  35. safe_finger: safe_finger.o $(LIB)
  36. - $(CC) $(CFLAGS) -o $@ safe_finger.o $(LIB) $(LIBS)
  37. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ safe_finger.o $(LIB) $(LIBS)
  38. TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
  39. tcpdmatch: $(TCPDMATCH_OBJ) $(LIB)
  40. - $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) $(LIB) $(LIBS)
  41. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ $(TCPDMATCH_OBJ) $(LIB) $(LIBS)
  42. try-from: try-from.o fakelog.o $(LIB)
  43. - $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o $(LIB) $(LIBS)
  44. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ try-from.o fakelog.o $(LIB) $(LIBS)
  45. TCPDCHK_OBJ = tcpdchk.o fakelog.o inetcf.o scaffold.o
  46. tcpdchk: $(TCPDCHK_OBJ) $(LIB)
  47. - $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) $(LIB) $(LIBS)
  48. + $(LIBTOOL) $(CC) $(CFLAGS) -o $@ $(TCPDCHK_OBJ) $(LIB) $(LIBS)
  49. shar: $(KIT)
  50. @shar $(KIT)
  51. --- tcp_wrappers_7.6/percent_m.c.orig 2004-11-23 10:11:29.789173760 +0100
  52. +++ tcp_wrappers_7.6/percent_m.c 2004-11-23 10:31:16.635745656 +0100
  53. @@ -29,11 +25,15 @@
  54. while (*bp = *cp)
  55. if (*cp == '%' && cp[1] == 'm') {
  56. +#if 0
  57. if (errno < sys_nerr && errno > 0) {
  58. strcpy(bp, sys_errlist[errno]);
  59. } else {
  60. sprintf(bp, "Unknown error %d", errno);
  61. }
  62. +#else
  63. + strcpy(bp, (strerror(errno)? strerror(errno) : "Unknown error"));
  64. +#endif
  65. bp += strlen(bp);
  66. cp += 2;
  67. } else {