make-rules/ips.mk
changeset 21 e651c453e960
parent 12 41aeb1fd8c2d
child 22 b89eb90ac9c5
equal deleted inserted replaced
20:9efb45e4787f 21:e651c453e960
    50 .DEFAULT:	publish
    50 .DEFAULT:	publish
    51 
    51 
    52 publish:	$(COMPONENT_SRC)/.published
    52 publish:	$(COMPONENT_SRC)/.published
    53 
    53 
    54 COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
    54 COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
       
    55 IPS_COMPONENT_VERSION =	$(COMPONENT_VERSION)
    55 
    56 
    56 $(PROTO_DIR)/$(COPYRIGHT_FILE):	$(COMPONENT_COPYRIGHT)
    57 $(PROTO_DIR)/$(COPYRIGHT_FILE):	$(COMPONENT_COPYRIGHT)
    57 	$(CP) $< [email protected]
    58 	$(CP) $< [email protected]
    58 
    59 
    59 $(COMPONENT_SRC)/$(MANIFEST):	install
    60 $(COMPONENT_SRC)/$(MANIFEST):	install
    60 	pkgsend generate $(PROTO_DIR) >[email protected]
    61 	pkgsend generate $(PROTO_DIR) >[email protected]
    61 
    62 
    62 $(COMPONENT_SRC)/$(MANIFEST).mog:	$(COMPONENT_SRC)/$(MANIFEST) $(PROTO_DIR)/$(COPYRIGHT_FILE)
    63 $(COMPONENT_SRC)/$(MANIFEST).mog:	$(COMPONENT_SRC)/$(MANIFEST) $(PROTO_DIR)/$(COPYRIGHT_FILE)
    63 	echo "set name=pkg.fmri value=pkg:/$(PUBLISHER)/$(COMPONENT_NAME)@$(COMPONENT_VERSION),$(BUILD_VERSION)" >[email protected]
    64 	echo "set name=pkg.fmri value=pkg:/$(PUBLISHER)/$(COMPONENT_NAME)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)" >[email protected]
    64 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    65 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    65 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    66 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
    66 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>[email protected]
    67 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>[email protected]
    67 	echo "license $(COPYRIGHT_FILE) license=$(COPYRIGHT_FILE)" >>[email protected]
    68 	echo "license $(COPYRIGHT_FILE) license=$(COPYRIGHT_FILE)" >>[email protected]
    68 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>[email protected]
    69 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>[email protected]