Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars
   1 #
   2 # CDDL HEADER START
   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #

  21 #
  22 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # cmd/oamuser/user/Makefile
  25 #
  26 


  27 include ../../Makefile.cmd
  28 
  29 GREP=           grep
  30 
  31 USERADD=        useradd
  32 USERDEL=        userdel
  33 USERMOD=        usermod
  34 ROLEADD=        roleadd
  35 ROLEDEL=        roledel
  36 ROLEMOD=        rolemod
  37 
  38 SBINPROG=       $(USERADD)   $(USERDEL)   $(USERMOD)
  39 #
  40 #       Removing sysadm: deleted $(SYSADMPROG) from this target.
  41 #
  42 PROG=           $(SBINPROG)
  43 PRODUCT=        $(PROG)
  44 
  45 ADD_OBJ=        useradd.o     uid.o        homedir.o \
  46                 groups.o      call_pass.o      userdefs.o   messages.o \


  85 $(USERDEL) :=   OBJS = $(DEL_OBJ)
  86 $(USERDEL) :=   LIBS = $(LIBUSRGRP)
  87 
  88 $(USERMOD) :=   OBJS = $(MOD_OBJ)
  89 $(USERMOD) :=   LIBS = $(LIBUSRGRP)
  90 
  91 LDLIBS +=       -lbsm -lnsl -lsecdb -lproject -ltsol
  92 
  93 .PARALLEL: $(OBJECTS)
  94 
  95 all:            $(PRODUCT)
  96 
  97 $(PROG):        $$(OBJS) $$(LIBS)
  98         $(LINK.c) $(OBJS) -o $@ $(LIBS) $(LDLIBS)
  99         $(POST_PROCESS)
 100 
 101 $(USERADD):     $(ADD_OBJ)
 102 $(USERMOD):     $(MOD_OBJ)
 103 $(USERDEL):     $(DEL_OBJ)
 104 
 105 install:        all .WAIT $(ROOTSKEL) $(INSSBINPROG) $(INSSKELFILE)

 106                 $(RM) $(ROOTUSRSBIN)/$(ROLEADD)
 107                 $(LN) $(ROOTUSRSBIN)/$(USERADD) $(ROOTUSRSBIN)/$(ROLEADD)
 108                 $(RM) $(ROOTUSRSBIN)/$(ROLEDEL)
 109                 $(LN) $(ROOTUSRSBIN)/$(USERDEL) $(ROOTUSRSBIN)/$(ROLEDEL)
 110                 $(RM) $(ROOTUSRSBIN)/$(ROLEMOD)
 111                 $(LN) $(ROOTUSRSBIN)/$(USERMOD) $(ROOTUSRSBIN)/$(ROLEMOD)
 112 
 113 clean:
 114         $(RM) $(OBJECTS)
 115 
 116 lint:   lint_SRCS
 117 
 118 include ../../Makefile.targ
   1 #
   2 # CDDL HEADER START
   3 #
   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.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright (c) 2013 Gary Mills
  22 #
  23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # cmd/oamuser/user/Makefile
  26 #
  27 
  28 DEFAULTFILES= useradd.dfl
  29 
  30 include ../../Makefile.cmd
  31 
  32 GREP=           grep
  33 
  34 USERADD=        useradd
  35 USERDEL=        userdel
  36 USERMOD=        usermod
  37 ROLEADD=        roleadd
  38 ROLEDEL=        roledel
  39 ROLEMOD=        rolemod
  40 
  41 SBINPROG=       $(USERADD)   $(USERDEL)   $(USERMOD)
  42 #
  43 #       Removing sysadm: deleted $(SYSADMPROG) from this target.
  44 #
  45 PROG=           $(SBINPROG)
  46 PRODUCT=        $(PROG)
  47 
  48 ADD_OBJ=        useradd.o     uid.o        homedir.o \
  49                 groups.o      call_pass.o      userdefs.o   messages.o \


  88 $(USERDEL) :=   OBJS = $(DEL_OBJ)
  89 $(USERDEL) :=   LIBS = $(LIBUSRGRP)
  90 
  91 $(USERMOD) :=   OBJS = $(MOD_OBJ)
  92 $(USERMOD) :=   LIBS = $(LIBUSRGRP)
  93 
  94 LDLIBS +=       -lbsm -lnsl -lsecdb -lproject -ltsol
  95 
  96 .PARALLEL: $(OBJECTS)
  97 
  98 all:            $(PRODUCT)
  99 
 100 $(PROG):        $$(OBJS) $$(LIBS)
 101         $(LINK.c) $(OBJS) -o $@ $(LIBS) $(LDLIBS)
 102         $(POST_PROCESS)
 103 
 104 $(USERADD):     $(ADD_OBJ)
 105 $(USERMOD):     $(MOD_OBJ)
 106 $(USERDEL):     $(DEL_OBJ)
 107 
 108 install:        all $(ROOTETCDEFAULTFILES) .WAIT \
 109                         $(ROOTSKEL) $(INSSBINPROG) $(INSSKELFILE)
 110                 $(RM) $(ROOTUSRSBIN)/$(ROLEADD)
 111                 $(LN) $(ROOTUSRSBIN)/$(USERADD) $(ROOTUSRSBIN)/$(ROLEADD)
 112                 $(RM) $(ROOTUSRSBIN)/$(ROLEDEL)
 113                 $(LN) $(ROOTUSRSBIN)/$(USERDEL) $(ROOTUSRSBIN)/$(ROLEDEL)
 114                 $(RM) $(ROOTUSRSBIN)/$(ROLEMOD)
 115                 $(LN) $(ROOTUSRSBIN)/$(USERMOD) $(ROOTUSRSBIN)/$(ROLEMOD)
 116 
 117 clean:
 118         $(RM) $(OBJECTS)
 119 
 120 lint:   lint_SRCS
 121 
 122 include ../../Makefile.targ