Print this page
1666 libwrap is 32bit only
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Garrett D'Amore <garrett.damore@dey-sys.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libwrap/Makefile.com
+++ new/usr/src/lib/libwrap/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 25 #
26 26
27 27 LIBRARY = libwrap.a
28 28 MAJOR = .1
29 29 MINOR = .0
30 30 VERS = $(MAJOR)$(MINOR)
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
31 31 OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
32 32 hosts_ctl.o refuse.o percent_x.o clean_exit.o \
33 33 fromhost.o fix_options.o socket.o tli.o workarounds.o \
34 34 update.o misc.o diag.o percent_m.o libvars.o
35 35
36 36 include ../../Makefile.lib
37 37
38 38 LIBS = $(DYNLIB) $(LINTLIB)
39 39 SONAME = $(LIBRARY:.a=.so)$(MAJOR)
40 40 ROOTLINKS += $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR)
41 +ROOTLINKS64 += $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR)
41 42 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
42 43
43 -MAPFILES = ../mapfile
44 +MAPFILES = ../mapfile-vers
44 45
45 46 LDLIBS += -lsocket -lnsl -lc
46 47
47 48 CPPFLAGS += $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \
48 49 $(STYLE) $(TABLES) $(DOT) $(BUGS) \
49 50 -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
50 51 -I$(SRCDIR)
51 52 CFLAGS += $(CCVERBOSE)
52 53
53 54 CERRWARN += -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE
54 55 CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
55 56 CERRWARN += -erroff=E_OLD_STYLE_DECL_HIDES_PROTO
56 57
57 58 CERRWARN += -_gcc=-Wno-return-type
58 59 CERRWARN += -_gcc=-Wno-parentheses
59 60 CERRWARN += -_gcc=-Wno-unused-variable
60 61 CERRWARN += -_gcc=-Wno-uninitialized
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
61 62
62 63 .KEEP_STATE:
63 64
64 65 all: $(LIBS)
65 66
66 67 lint: lintcheck
67 68
68 69 $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
69 70 $(INS.liblink)
70 71
72 +$(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
73 + $(INS.liblink64)
74 +
71 75 include ../../Makefile.targ
72 76
73 77
74 78 # The rest of this file contains definitions more-or-less directly from the
75 79 # original Makefile of the tcp_wrappers distribution.
76 80
77 81 ##############################
78 82 # System parameters appropriate for Solaris 9 and later
79 83
80 84 TLI = -DTLI
81 85 BUGS = -DGETPEERNAME_BUG -DBROKEN_FGETS -DLIBC_CALLS_STRTOK
82 86 NETGROUP = -DNETGROUP
83 87
84 88 ##############################
85 89 # Start of the optional stuff.
86 90
87 91 ###########################################
88 92 # Optional: Turning on language extensions
89 93 #
90 94 # Instead of the default access control language that is documented in
91 95 # the hosts_access.5 document, the wrappers can be configured to
92 96 # implement an extensible language documented in the hosts_options.5
93 97 # document. This language is implemented by the "options.c" source
94 98 # module, which also gives hints on how to add your own extensions.
95 99 # Uncomment the next definition to turn on the language extensions
96 100 # (examples: allow, deny, banners, twist and spawn).
97 101 #
98 102 STYLE = -DPROCESS_OPTIONS # Enable language extensions.
99 103
100 104 ###########################
101 105 # Optional: Reduce DNS load
102 106 #
103 107 # When looking up the address for a host.domain name, the typical DNS
104 108 # code will first append substrings of your own domain, so it tries
105 109 # host.domain.your.own.domain, then host.domain.own.domain, and then
106 110 # host.domain. The APPEND_DOT feature stops this waste of cycles. It is
107 111 # off by default because it causes problems on sites that don't use DNS
108 112 # and with Solaris < 2.4. APPEND_DOT will not work with hostnames taken
109 113 # from /etc/hosts or from NIS maps. It does work with DNS through NIS.
110 114 #
111 115 # DOT= -DAPPEND_DOT
112 116
113 117 ##################################################
114 118 # Optional: Always attempt remote username lookups
115 119 #
116 120 # By default, the wrappers look up the remote username only when the
117 121 # access control rules require them to do so.
118 122 #
119 123 # Username lookups require that the remote host runs a daemon that
120 124 # supports an RFC 931 like protocol. Remote user name lookups are not
121 125 # possible for UDP-based connections, and can cause noticeable delays
122 126 # with connections from non-UNIX PCs. On some systems, remote username
123 127 # lookups can trigger a kernel bug, causing loss of service. The README
124 128 # file describes how to find out if your UNIX kernel has that problem.
125 129 #
126 130 # Uncomment the following definition if the wrappers should always
127 131 # attempt to get the remote user name. If this is not enabled you can
128 132 # still do selective username lookups as documented in the hosts_access.5
129 133 # and hosts_options.5 manual pages (`nroff -man' format).
130 134 #
131 135 #AUTH = -DALWAYS_RFC931
132 136 #
133 137 # The default username lookup timeout is 10 seconds. This may not be long
134 138 # enough for slow hosts or networks, but is enough to irritate PC users.
135 139
136 140 RFC931_TIMEOUT = 10
137 141
138 142 ########################################################
139 143 # Optional: Changing the access control table pathnames
140 144 #
141 145 # The HOSTS_ALLOW and HOSTS_DENY macros define where the programs will
142 146 # look for access control information. Watch out for the quotes and
143 147 # backslashes when you make changes.
144 148
145 149 TABLES = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
146 150
147 151 ########################################
148 152 # Optional: turning off hostname lookups
149 153 #
150 154 # By default, the software always attempts to look up the client
151 155 # hostname. With selective hostname lookups, the client hostname
152 156 # lookup is postponed until the name is required by an access control
153 157 # rule or by a %letter expansion.
154 158 #
155 159 # In order to perform selective hostname lookups, disable paranoid
156 160 # mode (see previous section) and comment out the following definition.
157 161
158 162 ALWAYS_HOSTNAME= -DALWAYS_HOSTNAME
159 163
160 164 ## End configuration options
161 165 ############################
↓ open down ↓ |
81 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX