make-rules/ips.mk
changeset 7 d42300cb8715
parent 4 3d5acfe9dab4
child 12 41aeb1fd8c2d
--- a/make-rules/ips.mk	Wed May 12 00:32:41 2010 -0500
+++ b/make-rules/ips.mk	Wed May 12 01:53:05 2010 -0500
@@ -49,14 +49,20 @@
 
 publish:	$(COMPONENT_SRC)/.published
 
+COPYRIGHT_FILE =	$(COMPONENT_NAME)-$(COMPONENT_VERSION).copyright
+
+$(PROTO_DIR)/$(COPYRIGHT_FILE):	$(COMPONENT_COPYRIGHT)
+	$(CP) $< [email protected]
+
 $(COMPONENT_SRC)/manifest:	install
 	pkgsend generate $(PROTO_DIR) >[email protected]
 
-$(COMPONENT_SRC)/manifest.mog:	$(COMPONENT_SRC)/manifest
+$(COMPONENT_SRC)/manifest.mog:	$(COMPONENT_SRC)/manifest $(PROTO_DIR)/$(COPYRIGHT_FILE)
 	echo "set name=pkg.fmri value=pkg:/$(PUBLISHER)/$(COMPONENT_NAME)@$(COMPONENT_VERSION),$(BUILD_VERSION)" >[email protected]
 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>[email protected]
 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>[email protected]
+	echo "license $(COPYRIGHT_FILE) license=$(COPYRIGHT_FILE)" >>[email protected]
 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>[email protected]
 
 $(COMPONENT_SRC)/manifest.fdeps:	$(COMPONENT_SRC)/manifest.mog