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.

97 lines
3.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tcp_wrappers/0009-tcp_wrappers-7.6-makefile-config.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- a/Makefile
  17. +++ b/Makefile
  18. @@ -45,7 +45,7 @@ what:
  19. #
  20. # SysV.4 Solaris 2.x OSF AIX
  21. #REAL_DAEMON_DIR=/usr/sbin
  22. -#
  23. +REAL_DAEMON_DIR=/usr/sbin
  24. # BSD 4.4
  25. #REAL_DAEMON_DIR=/usr/libexec
  26. #
  27. @@ -513,6 +513,7 @@ VSYSLOG = -Dvsyslog=myvsyslog
  28. # (examples: allow, deny, banners, twist and spawn).
  29. #
  30. #STYLE = -DPROCESS_OPTIONS # Enable language extensions.
  31. +STYLE = "-DPROCESS_OPTIONS -DACLEXEC"
  32. ################################################################
  33. # Optional: Changing the default disposition of logfile records
  34. @@ -536,6 +537,7 @@ VSYSLOG = -Dvsyslog=myvsyslog
  35. # The LOG_XXX names below are taken from the /usr/include/syslog.h file.
  36. FACILITY= LOG_MAIL # LOG_MAIL is what most sendmail daemons use
  37. +FACILITY= LOG_DAEMON
  38. # The syslog priority at which successful connections are logged.
  39. @@ -632,6 +634,7 @@ TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\
  40. # lookups altogether, see the next section.
  41. PARANOID= -DPARANOID
  42. +PARANOID=
  43. ########################################
  44. # Optional: turning off hostname lookups
  45. @@ -645,6 +648,7 @@ PARANOID= -DPARANOID
  46. # mode (see previous section) and comment out the following definition.
  47. HOSTNAME= -DALWAYS_HOSTNAME
  48. +HOSTNAME=
  49. #############################################
  50. # Optional: Turning on host ADDRESS checking
  51. @@ -671,6 +675,7 @@ HOSTNAME= -DALWAYS_HOSTNAME
  52. # Solaris 2.x, and Linux. See your system documentation for details.
  53. #
  54. # KILL_OPT= -DKILL_IP_OPTIONS
  55. +KILL_OPT= -DKILL_IP_OPTIONS
  56. ## End configuration options
  57. ############################
  58. @@ -678,9 +683,10 @@ HOSTNAME= -DALWAYS_HOSTNAME
  59. # Protection against weird shells or weird make programs.
  60. SHELL = /bin/sh
  61. -.c.o:; $(CC) $(CFLAGS) -c $*.c
  62. +.c.o:; $(CC) $(CFLAGS) -o $*.o -c $*.c
  63. -CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  64. +COPTS = -O2 -g
  65. +CFLAGS = $(COPTS) -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) \
  66. $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
  67. -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
  68. -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  69. @@ -713,11 +719,12 @@ all other: config-check tcpd tcpdmatch t
  70. config-check:
  71. @set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
  72. - @set +e; echo $(CFLAGS) >/tmp/cflags.$$$$ ; \
  73. - if cmp cflags /tmp/cflags.$$$$ ; \
  74. - then rm /tmp/cflags.$$$$ ; \
  75. - else mv /tmp/cflags.$$$$ cflags ; \
  76. + @set +e; echo $(CFLAGS) >cflags.new ; \
  77. + if cmp cflags cflags.new ; \
  78. + then rm cflags.new ; \
  79. + else mv cflags.new cflags ; \
  80. fi >/dev/null 2>/dev/null
  81. + @if [ ! -d shared ]; then mkdir shared; fi
  82. $(LIB): $(LIB_OBJ)
  83. rm -f $(LIB)