4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
30 VERS = $(MAJOR)$(MINOR)
31 OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
32 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
33 fromhost.o fix_options.o socket.o tli.o workarounds.o \
34 update.o misc.o diag.o percent_m.o libvars.o
36 include ../../Makefile.lib
39 SONAME = $(LIBRARY:.a=.so)$(MAJOR)
40 ROOTLINKS += $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
41 ROOTLINKS64 += $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR)
43 MAPFILES = ../mapfile-vers
47 CPPFLAGS += $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \
48 $(STYLE) $(TABLES) $(DOT) $(BUGS) \
49 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
52 CERRWARN += -Wno-return-type
53 CERRWARN += -Wno-parentheses
54 CERRWARN += -Wno-unused-variable
55 CERRWARN += -Wno-uninitialized
61 $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
64 $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
67 include ../../Makefile.targ
70 # The rest of this file contains definitions more-or-less directly from the
71 # original Makefile of the tcp_wrappers distribution.
73 ##############################
74 # System parameters appropriate for Solaris 9 and later
77 BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
80 ##############################
81 # Start of the optional stuff.
83 ###########################################
84 # Optional: Turning on language extensions
86 # Instead of the default access control language that is documented in
87 # the hosts_access.5 document, the wrappers can be configured to
88 # implement an extensible language documented in the hosts_options.5
89 # document. This language is implemented by the "options.c" source
90 # module, which also gives hints on how to add your own extensions.
91 # Uncomment the next definition to turn on the language extensions
92 # (examples: allow, deny, banners, twist and spawn).
94 STYLE = -DPROCESS_OPTIONS # Enable language extensions.
96 ###########################
97 # Optional: Reduce DNS load
99 # When looking up the address for a host.domain name, the typical DNS
100 # code will first append substrings of your own domain, so it tries
101 # host.domain.your.own.domain, then host.domain.own.domain, and then
102 # host.domain. The APPEND_DOT feature stops this waste of cycles. It is
103 # off by default because it causes problems on sites that don't use DNS
104 # and with Solaris < 2.4. APPEND_DOT will not work with hostnames taken
105 # from /etc/hosts or from NIS maps. It does work with DNS through NIS.
109 ##################################################
110 # Optional: Always attempt remote username lookups
112 # By default, the wrappers look up the remote username only when the
113 # access control rules require them to do so.
115 # Username lookups require that the remote host runs a daemon that
116 # supports an RFC 931 like protocol. Remote user name lookups are not
117 # possible for UDP-based connections, and can cause noticeable delays
118 # with connections from non-UNIX PCs. On some systems, remote username
119 # lookups can trigger a kernel bug, causing loss of service. The README
120 # file describes how to find out if your UNIX kernel has that problem.
122 # Uncomment the following definition if the wrappers should always
123 # attempt to get the remote user name. If this is not enabled you can
124 # still do selective username lookups as documented in the hosts_access.5
125 # and hosts_options.5 manual pages (`nroff -man' format).
127 #AUTH = -DALWAYS_RFC931
129 # The default username lookup timeout is 10 seconds. This may not be long
130 # enough for slow hosts or networks, but is enough to irritate PC users.
134 ########################################################
135 # Optional: Changing the access control table pathnames
137 # The HOSTS_ALLOW and HOSTS_DENY macros define where the programs will
138 # look for access control information. Watch out for the quotes and
139 # backslashes when you make changes.
141 TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
143 ########################################
144 # Optional: turning off hostname lookups
146 # By default, the software always attempts to look up the client
147 # hostname. With selective hostname lookups, the client hostname
148 # lookup is postponed until the name is required by an access control
149 # rule or by a %letter expansion.
151 # In order to perform selective hostname lookups, disable paranoid
152 # mode (see previous section) and comment out the following definition.
154 ALWAYS_HOSTNAME= -DALWAYS_HOSTNAME
156 ## End configuration options
157 ############################