components/sendmail/Makefile
changeset 3916 1224230f8337
parent 3850 71cd6a33be87
child 4339 6501cf9c29f9
equal deleted inserted replaced
3915:bf1315c4d52e 3916:1224230f8337
    21 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../make-rules/shared-macros.mk
    23 include ../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=		sendmail
    25 COMPONENT_NAME=		sendmail
    26 COMPONENT_VERSION=	8.14.9
    26 COMPONENT_VERSION=	8.15.1
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    28 COMPONENT_PROJECT_URL=	ftp://ftp.sendmail.org/pub/sendmail/
    28 COMPONENT_PROJECT_URL=	ftp://ftp.sendmail.org/pub/sendmail/
    29 COMPONENT_ARCHIVE=	$(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
    29 COMPONENT_ARCHIVE=	$(COMPONENT_NAME).$(COMPONENT_VERSION).tar.gz
    30 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:f5a497151abd8f341cca0736c3f9bd703d574d93146b2989689dff6d7a445d75
    31     sha256:ed1f9e0f2a1a58c9ff94950264a2fc186d6fd237bac66b175d79a2b89a950746
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    33 COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sig
    33 COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).sig
    34 COMPONENT_BUGDB=	utility/sendmail
    34 COMPONENT_BUGDB=	utility/sendmail
    35 
    35 
    36 TPNO=			7435
    36 TPNO=			21799
    37 
    37 
    38 include $(WS_MAKE_RULES)/prep.mk
    38 include $(WS_MAKE_RULES)/prep.mk
    39 include $(WS_MAKE_RULES)/justmake.mk
    39 include $(WS_MAKE_RULES)/justmake.mk
    40 include $(WS_MAKE_RULES)/ips.mk
    40 include $(WS_MAKE_RULES)/ips.mk
    41 include $(WS_MAKE_RULES)/lint-libraries.mk
    41 include $(WS_MAKE_RULES)/lint-libraries.mk
    98 COMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
    98 COMPONENT_POST_INSTALL_ACTION += cd $(FILE_DIR)/aux ; $(GMAKE) install ;
    99 COMPONENT_POST_INSTALL_ACTION += \
    99 COMPONENT_POST_INSTALL_ACTION += \
   100     $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
   100     $(CP) $(FILE_DIR)/cf/domain/solaris-generic.m4 $(@D)/cf/domain/ ;
   101 COMPONENT_POST_INSTALL_ACTION += \
   101 COMPONENT_POST_INSTALL_ACTION += \
   102     $(CP) $(FILE_DIR)/cf/cf/sendmail.mc $(@D)/cf/cf/ ;
   102     $(CP) $(FILE_DIR)/cf/cf/sendmail.mc $(@D)/cf/cf/ ;
       
   103 # Without the two $(CP)s below we would pick up the version of submit.cf
       
   104 # from under $(COMPONENT_SRC), which is not what we want because it contains
       
   105 # information (user, hostname, date, build path) from the upstream machine
       
   106 # where the distro was created.  So we build our own version here, using
       
   107 # $(M4_ARG), which suppresses the inclusion of all that information.
       
   108 # Then we copy it to $(PROTO_DIR)/cf/cf instead of the more intuitive
       
   109 # $(PROTOETCDIR)/mail/cf/cf to match the transform in the manifest that
       
   110 # picks up everything under etc/mail/cf/ from cf/ instead.
   103 COMPONENT_POST_INSTALL_ACTION += \
   111 COMPONENT_POST_INSTALL_ACTION += \
   104     cd $(@D)/cf/cf ; \
   112     cd $(@D)/cf/cf ; \
   105     $(RM) submit.cf ; \
   113     $(RM) submit.cf ; \
   106     m4 $(M4_ARG) ../m4/cf.m4 submit.mc > submit.cf ; \
   114     m4 $(M4_ARG) ../m4/cf.m4 submit.mc > submit.cf ; \
       
   115     $(CP) submit.cf $(PROTOETCDIR)/mail ; \
       
   116     $(MKDIR) $(PROTO_DIR)/cf/cf ; \
       
   117     $(CP) submit.cf $(PROTO_DIR)/cf/cf ; \
   107     m4 $(M4_ARG) ../m4/cf.m4 sendmail.mc > sendmail.cf
   118     m4 $(M4_ARG) ../m4/cf.m4 sendmail.mc > sendmail.cf
   108 
   119 
   109 COMPONENT_TEST_ARGS += CC="$(CC)"
   120 COMPONENT_TEST_ARGS += CC="$(CC)"
   110 COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)"
   121 COMPONENT_TEST_ARGS += CCOPTS="$(CCOPTS)"
   111 COMPONENT_TEST_ARGS += CCLINK="$(CC)"
   122 COMPONENT_TEST_ARGS += CCLINK="$(CC)"