Print this page
11226 Remove NetraCT support


  27 
  28 include ../../Makefile.cmd
  29 
  30 FILEMODE = 0444
  31 
  32 ROOTPROFILE = $(ROOT)/etc/svc/profile
  33 
  34 PROFILESRCS = \
  35         generic_open.xml \
  36         generic_limited_net.xml \
  37         inetd_generic.xml \
  38         inetd_upgrade.xml \
  39         ns_dns.xml \
  40         ns_files.xml \
  41         ns_ldap.xml \
  42         ns_nis.xml \
  43         ns_none.xml \
  44         platform_SUNW,SPARC-Enterprise.xml \
  45         platform_SUNW,Sun-Fire-880.xml \
  46         platform_SUNW,Sun-Fire.xml \
  47         platform_SUNW,UltraSPARC-IIi-Netract.xml \
  48         platform_none.xml \
  49         platform_sun4v.xml
  50 
  51 PROFILES = $(PROFILESRCS:%=$(ROOTPROFILE)/%)
  52 
  53 PROFILES_open = generic_open.xml inetd_generic.xml
  54 PROFILES_limited = generic_limited_net.xml
  55 CHECK_OPEN = check_open
  56 CHECK_LMTD = check_limited
  57 
  58 COMM =  /usr/bin/comm
  59 TEE =   /usr/bin/tee
  60 TEST =  /usr/bin/test
  61 LISTSVCS = listsvcs.pl
  62 
  63 install: all $(PROFILES)
  64         $(RM) $(ROOTPROFILE)/platform.xml
  65         # SUNW,Sun-Fire-V890
  66         $(RM) $(ROOTPROFILE)/platform_SUNW,Sun-Fire-V890.xml
  67         $(LN) $(ROOTPROFILE)/platform_SUNW,Sun-Fire-880.xml \
  68             $(ROOTPROFILE)/platform_SUNW,Sun-Fire-V890.xml
  69         # SUNW,UltraSPARC-IIe-NetraCT-[46]0
  70         $(RM) $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIe-NetraCT-40.xml
  71         $(RM) $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIe-NetraCT-60.xml
  72         $(LN) $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIi-Netract.xml \
  73         $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIe-NetraCT-40.xml
  74         $(LN) $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIi-Netract.xml \
  75             $(ROOTPROFILE)/platform_SUNW,UltraSPARC-IIe-NetraCT-60.xml
  76 
  77 $(ROOTPROFILE)/%: %
  78         $(INS.file)
  79 
  80 all:    $(CHECK_OPEN) $(CHECK_LMTD)
  81 
  82 #
  83 #       Enforce consistency between open and limited profiles per README
  84 #
  85 $(CHECK_OPEN) :=        PROFILES_CHECKED = open
  86 $(CHECK_OPEN) :=        PROFILES_COVERING = limited
  87 $(CHECK_LMTD) :=        PROFILES_CHECKED = limited
  88 $(CHECK_LMTD) :=        PROFILES_COVERING = open
  89 $(CHECK_OPEN) $(CHECK_LMTD): \
  90         $(LISTSVCS) $(PROFILES_open) $(PROFILES_limited)
  91         @$(ECHO) Check for enabled $(PROFILES_CHECKED) services \
  92                 not covered by $(PROFILES_COVERING) profile
  93         @$(PERL) -w $(LISTSVCS) -e $(PROFILES_$(PROFILES_CHECKED)) > $@.enabled
  94         @$(PERL) -w $(LISTSVCS) $(PROFILES_$(PROFILES_COVERING)) > $@.all
  95         @$(COMM) -23 $@.enabled $@.all | $(TEE) $@.notcovered


  27 
  28 include ../../Makefile.cmd
  29 
  30 FILEMODE = 0444
  31 
  32 ROOTPROFILE = $(ROOT)/etc/svc/profile
  33 
  34 PROFILESRCS = \
  35         generic_open.xml \
  36         generic_limited_net.xml \
  37         inetd_generic.xml \
  38         inetd_upgrade.xml \
  39         ns_dns.xml \
  40         ns_files.xml \
  41         ns_ldap.xml \
  42         ns_nis.xml \
  43         ns_none.xml \
  44         platform_SUNW,SPARC-Enterprise.xml \
  45         platform_SUNW,Sun-Fire-880.xml \
  46         platform_SUNW,Sun-Fire.xml \

  47         platform_none.xml \
  48         platform_sun4v.xml
  49 
  50 PROFILES = $(PROFILESRCS:%=$(ROOTPROFILE)/%)
  51 
  52 PROFILES_open = generic_open.xml inetd_generic.xml
  53 PROFILES_limited = generic_limited_net.xml
  54 CHECK_OPEN = check_open
  55 CHECK_LMTD = check_limited
  56 
  57 COMM =  /usr/bin/comm
  58 TEE =   /usr/bin/tee
  59 TEST =  /usr/bin/test
  60 LISTSVCS = listsvcs.pl
  61 
  62 install: all $(PROFILES)
  63         $(RM) $(ROOTPROFILE)/platform.xml
  64         # SUNW,Sun-Fire-V890
  65         $(RM) $(ROOTPROFILE)/platform_SUNW,Sun-Fire-V890.xml
  66         $(LN) $(ROOTPROFILE)/platform_SUNW,Sun-Fire-880.xml \
  67             $(ROOTPROFILE)/platform_SUNW,Sun-Fire-V890.xml







  68 
  69 $(ROOTPROFILE)/%: %
  70         $(INS.file)
  71 
  72 all:    $(CHECK_OPEN) $(CHECK_LMTD)
  73 
  74 #
  75 #       Enforce consistency between open and limited profiles per README
  76 #
  77 $(CHECK_OPEN) :=        PROFILES_CHECKED = open
  78 $(CHECK_OPEN) :=        PROFILES_COVERING = limited
  79 $(CHECK_LMTD) :=        PROFILES_CHECKED = limited
  80 $(CHECK_LMTD) :=        PROFILES_COVERING = open
  81 $(CHECK_OPEN) $(CHECK_LMTD): \
  82         $(LISTSVCS) $(PROFILES_open) $(PROFILES_limited)
  83         @$(ECHO) Check for enabled $(PROFILES_CHECKED) services \
  84                 not covered by $(PROFILES_COVERING) profile
  85         @$(PERL) -w $(LISTSVCS) -e $(PROFILES_$(PROFILES_CHECKED)) > $@.enabled
  86         @$(PERL) -w $(LISTSVCS) $(PROFILES_$(PROFILES_COVERING)) > $@.all
  87         @$(COMM) -23 $@.enabled $@.all | $(TEE) $@.notcovered