summaryrefslogtreecommitdiff
path: root/usr/src/cmd/tcpd
diff options
context:
space:
mode:
authorceastha <none@none>2008-03-28 00:41:12 -0700
committerceastha <none@none>2008-03-28 00:41:12 -0700
commitf998c95e3b7029fe5f7542e115f7474ddb8024d7 (patch)
treeae2d253b8834d62c8ff9e14e1fdd822f27340611 /usr/src/cmd/tcpd
parente60704089e0abdc2b2f1a0c2468bb6d16a0eb21e (diff)
downloadillumos-joyent-f998c95e3b7029fe5f7542e115f7474ddb8024d7.tar.gz
PSARC/2008/164 Move TCP Wrappers from /usr/sfw to /usr
6666929 move TCP Wrapper from /usr/sfw to /usr
Diffstat (limited to 'usr/src/cmd/tcpd')
-rw-r--r--usr/src/cmd/tcpd/Makefile82
-rw-r--r--usr/src/cmd/tcpd/man.sed7
2 files changed, 29 insertions, 60 deletions
diff --git a/usr/src/cmd/tcpd/Makefile b/usr/src/cmd/tcpd/Makefile
index 576cf1fab2..7469e1a1f6 100644
--- a/usr/src/cmd/tcpd/Makefile
+++ b/usr/src/cmd/tcpd/Makefile
@@ -1,26 +1,5 @@
#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -39,11 +18,11 @@ CPPFLAGS += $(ACCESS) $(PARANOID) $(NETGROUP) $(TLI) \
-DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
-DFACILITY=$(FACILITY) -DSEVERITY=$(SEVERITY) \
-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \
- -I$(ROOTSFWINCLUDE) -I../../lib/libwrap
+ -I../../lib/libwrap
tcpd tcpdmatch try-from := \
- LDLIBS += -R$(SFW_ROOT)/lib -L$(ROOTSFWLIB) -lwrap
+ LDLIBS += -lwrap
tcpdchk := \
- LDLIBS += -R$(SFW_ROOT)/lib -L$(ROOTSFWLIB) -lwrap -lnsl
+ LDLIBS += -lwrap -lnsl
# Various components must export interfaces, but also contain name-space
# clashes with system libraries.
@@ -75,17 +54,19 @@ DISTFILES = environ.c fakelog.c hosts_access.3 hosts_access.4 \
scaffold.h tcpd.1m tcpd.c tcpdchk.1m tcpdchk.c tcpdmatch.1m \
tcpdmatch.c try-from.c README.sfw $(SRCONLY)
-ROOTSFWSRC = $(ROOTSFWSHSRC)/tcp_wrappers
-ROOTSFWSBINPROG = $(PROG:%=$(ROOTSFWSBIN)/%)
-ROOTSFWMANPAGES = $(MANPAGES:%=$(ROOTSFWMAN)/%)
-ROOTSFWMANDIRS = $(MANDIRS:%=$(ROOTSFWMAN)/%)
-ROOTSFWSRCFILES = $(DISTFILES:%=$(ROOTSFWSRC)/%)
+ROOTSRC = $(ROOT)/usr/share/src/tcp_wrappers
+$(ROOTSRC) := OWNER = root
+$(ROOTSRC) := GROUP = bin
+ROOTMAN = $(ROOT)/usr/share/man
+ROOTMANPAGES = $(MANPAGES:%=$(ROOTMAN)/%)
+ROOTMANDIRS = $(MANDIRS:%=$(ROOTMAN)/%)
+ROOTSRCFILES = $(DISTFILES:%=$(ROOTSRC)/%)
.KEEP_STATE:
all: $(PROG) THIRDPARTYLICENSE
-install: all $(ROOTSFWSBINPROG) $(ROOTSFWMANPAGES) $(ROOTSFWSRCFILES)
+install: all $(ROOTUSRSBINPROG) $(ROOTMANPAGES) $(ROOTSRCFILES)
clean:
$(RM) *.o
@@ -93,12 +74,6 @@ clean:
lint: lint_PROG
-$(ROOTSFWSBINPROG): $(ROOTSFWSBIN)
-$(ROOTSFWSBIN): $(ROOTSFW)
- $(INS.dir)
-$(ROOTSFWSBIN)/% : %
- $(INS.file)
-
# These Solaris-specific man page aliases are installed verbatim.
sunman/libwrap.3: libwrap.3
mkdir -p sunman; cat libwrap.3 > $@
@@ -109,7 +84,7 @@ sunman/hosts.deny.4: hosts.deny.4
# The rest of the man pages are in the form provided in the original
# distribution, but get edited and renamed to follow Solaris man page
-# conventions. E.g. tcpd.8 gets installed as /usr/sfw/man/man1m/tcpd.1m.
+# conventions. E.g. tcpd.8 gets installed as /usr/share/man/man1m/tcpd.1m.
# Create temporary copies in the sunman directory with modified names
# and contents. The sed program man.sed contains the content edits.
@@ -120,34 +95,29 @@ sunman/%.4: %.5
sunman/%.3: %.3
mkdir -p sunman; sed -f man.sed < $< > $@
-$(ROOTSFWMANPAGES) := FILEMODE = 0444
-$(ROOTSFWMANPAGES): $(ROOTSFWMANDIRS) $(ROOTSFW)/man
-$(ROOTSFWMANDIRS): $(ROOTSFWMAN)
+$(ROOTMANPAGES) := FILEMODE = 0444
+$(ROOTMANPAGES): $(ROOTMANDIRS) $(ROOT)/usr/share/man
+$(ROOTMANDIRS): $(ROOTMAN)
$(INS.dir)
-$(ROOTSFWMAN): $(ROOTSFW)/share
+$(ROOTMAN):
$(INS.dir)
-$(ROOTSFW)/man: $(ROOTSFW)
- $(RM) $@
- $(SYMLINK) share/man $@ $(CHOWNLINK) $(CHGRPLINK)
-$(ROOTSFWMAN)/man1m/% $(ROOTSFWMAN)/man3/% $(ROOTSFWMAN)/man4/%: sunman/%
+$(ROOTMAN1M)/% $(ROOTMAN3)/% $(ROOTMAN)/man4/%: sunman/%
$(INS.file)
-$(ROOTSFWSRCFILES) := FILEMODE = 0444
-$(ROOTSFWSRCFILES): $(ROOTSFWSRC)
-$(ROOTSFWSRC): $(ROOTSFWSHSRC)
- $(INS.dir)
-$(ROOTSFWSHSRC): $(ROOTSFW)/share
+$(ROOTSRCFILES) := FILEMODE = 0444
+$(ROOTSRCFILES): $(ROOTSRC)
+$(ROOTSRC):
$(INS.dir)
-$(ROOTSFWSRC)/%: %.sfwsrc
+$(ROOTSRC)/%: %.sfwsrc
$(INS.rename)
-$(ROOTSFWSRC)/%: sunman/%
+$(ROOTSRC)/%: sunman/%
$(INS.file)
-$(ROOTSFWSRC)/%: %
+$(ROOTSRC)/%: %
$(INS.file)
-$(ROOTSFW)/share: $(ROOTSFW)
+$(ROOT)/usr/share: $(ROOT)/usr
$(INS.dir)
-$(ROOTSFW):
+$(ROOT)/usr: $(ROOT)
$(INS.dir)
TCPDMATCH_OBJ = tcpdmatch.o fakelog.o inetcf.o scaffold.o
diff --git a/usr/src/cmd/tcpd/man.sed b/usr/src/cmd/tcpd/man.sed
index 6cdd32c7a2..59f4e832db 100644
--- a/usr/src/cmd/tcpd/man.sed
+++ b/usr/src/cmd/tcpd/man.sed
@@ -1,7 +1,7 @@
#
# ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# This sed command script edits the man pages distrubuted with tcp_wrappers
@@ -21,8 +21,7 @@ s/#include "tcpd.h"/#include <tcpd.h>/
/#include <tcpd.h>/a\
\.\\" Begin Sun update\
\
-cc [ flag ... ] \-I/usr/sfw/include file ... [ library ... ]\
-\-L/usr/sfw/lib \-R/usr/sfw/lib \-lwrap\
+cc [ flag ... ] file ... [ library ... ] \-lwrap\
\.\\" End Sun update
s/or \\fItlid\\fR//
@@ -59,7 +58,7 @@ ATTRIBUTE TYPE ATTRIBUTE VALUE\
=\
Availability SUNWtcpd\
=\
-Interface Stability External\
+Interface Stability Committed\
.TE \
.PP\
.SH NOTES\