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
↓ 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