Print this page
5172 tftpd service is not registered by default and its manual is giving misleading directions
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/cmd-inet/usr.bin/tftp/Makefile
+++ new/usr/src/cmd/cmd-inet/usr.bin/tftp/Makefile
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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # Copyright (c) 1989,2001 by Sun Microsystems, Inc.
24 24 # All rights reserved.
25 -#
25 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26 26
27 27 PROG= tftp
28 28 OBJS= main.o tftp.o tftpsubs.o
29 29 SRCS= $(OBJS:%.o=%.c)
30 30
31 31 include ../../../Makefile.cmd
32 32 include ../../Makefile.cmd-inet
33 33
34 +MANIFEST= tftp-udp6.xml
35 +
36 +ROOTMANIFESTDIR = $(ROOTSVCNETWORK)
37 +
38 +$(ROOTMANIFEST):= FILEMODE = 0444
39 +
34 40 CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP -I$(CMDINETCOMMONDIR)
35 41 CERRWARN += -_gcc=-Wno-clobbered
36 42 CERRWARN += -_gcc=-Wno-parentheses
37 43 LDLIBS += -lsocket -lnsl
38 44
39 45 .KEEP_STATE:
40 46
41 47 all: $(PROG)
42 48
43 49 $(PROG): $(OBJS)
44 50 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
45 51 $(POST_PROCESS)
46 52
47 -install: all $(ROOTPROG)
53 +install: all $(ROOTPROG) $(ROOTMANIFEST)
48 54
49 55 clean:
50 56 $(RM) $(OBJS)
51 57
52 58 lint: lint_SRCS
53 59
60 +check: $(CHKMANIFEST)
61 +
54 62 include ../../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX