Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/user/Makefile
          +++ new/usr/src/cmd/oamuser/user/Makefile
↓ open down ↓ 12 lines elided ↑ open up ↑
  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  #
  22   22  # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
       23 +# Copyright (c) 2013 RackTop Systems.
  23   24  #
  24   25  # cmd/oamuser/user/Makefile
  25   26  #
  26   27  
  27   28  include ../../Makefile.cmd
  28   29  
  29   30  GREP=           grep
  30   31  
  31   32  USERADD=        useradd
  32   33  USERDEL=        userdel
↓ open down ↓ 2 lines elided ↑ open up ↑
  35   36  ROLEDEL=        roledel
  36   37  ROLEMOD=        rolemod
  37   38  
  38   39  SBINPROG=       $(USERADD)   $(USERDEL)   $(USERMOD)
  39   40  #
  40   41  #       Removing sysadm: deleted $(SYSADMPROG) from this target.
  41   42  #
  42   43  PROG=           $(SBINPROG)
  43   44  PRODUCT=        $(PROG)
  44   45  
  45      -ADD_OBJ=        useradd.o     uid.o        homedir.o \
  46      -                groups.o      call_pass.o      userdefs.o   messages.o \
  47      -                val_lgrp.o    funcs.o          val_lprj.o   proj.o
       46 +ADD_OBJ=        useradd.o     homedir.o        groups.o     call_pass.o \
       47 +                userdefs.o    messages.o       val_lgrp.o   funcs.o \
       48 +                val_lprj.o    proj.o
  48   49  
  49   50  DEL_OBJ=        userdel.o     call_pass.o      rmfiles.o    isbusy.o \
  50   51                  groups.o      messages.o       funcs.o      proj.o
  51   52  
  52      -MOD_OBJ=        usermod.o     uid.o            movedir.o    groups.o \
  53      -                rmfiles.o     call_pass.o      isbusy.o     homedir.o \
  54      -                userdefs.o    messages.o       val_lgrp.o   funcs.o \
  55      -                val_lprj.o    proj.o
       53 +MOD_OBJ=        usermod.o     movedir.o        groups.o     rmfiles.o \
       54 +                call_pass.o   isbusy.o         homedir.o    userdefs.o \
       55 +                messages.o    val_lgrp.o       funcs.o      val_lprj.o \
       56 +                proj.o
  56   57  
  57   58  OBJECTS=        $(ADD_OBJ)     $(DEL_OBJ)    $(MOD_OBJ)
  58   59  
  59   60  SRCS=           $(OBJECTS:.o=.c)
  60   61  
  61   62  LIBDIR=         ../lib
  62   63  LIBUSRGRP=      $(LIBDIR)/lib.a
  63   64  LIBADM=         -ladm
  64   65  LOCAL=          ../inc
  65   66  HERE=           .
  66   67  LINTFLAGS=      -u
  67   68  
  68   69  ROOTSKEL=       $(ROOTETC)/skel
  69   70  INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
  70   71  INSSKELFILE=    $(SKELFILE:%=$(ROOTSKEL)/%)
  71   72  
  72   73  CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
  73   74  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  74      -CERRWARN +=     -_gcc=-Wno-type-limits
  75      -CERRWARN +=     -_gcc=-Wno-uninitialized
  76      -CERRWARN +=     -_gcc=-Wno-parentheses
  77   75  
  78   76  $(INSSBINPROG)  := FILEMODE = 0555
  79   77  $(INSSYSADMPROG):= FILEMODE = 0500
  80   78  $(INSSKELFILE)  := FILEMODE = 0644
  81   79  
  82   80  $(USERADD) :=   OBJS = $(ADD_OBJ)
  83   81  $(USERADD) :=   LIBS = $(LIBUSRGRP)
       82 +$(USERADD) :=   LDLIBS += -lcmdutils
  84   83  
  85   84  $(USERDEL) :=   OBJS = $(DEL_OBJ)
  86   85  $(USERDEL) :=   LIBS = $(LIBUSRGRP)
  87   86  
  88   87  $(USERMOD) :=   OBJS = $(MOD_OBJ)
  89   88  $(USERMOD) :=   LIBS = $(LIBUSRGRP)
  90   89  
  91   90  LDLIBS +=       -lbsm -lnsl -lsecdb -lproject -ltsol
  92   91  
  93   92  .PARALLEL: $(OBJECTS)
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX