add license/copyright info for ips generation
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Wed, 12 May 2010 01:53:05 -0500
changeset 7 d42300cb8715
parent 6 20f80c019d73
child 8 f1e8114317ad
add license/copyright info for ips generation
components/file/Makefile
components/lcms/Makefile
components/pycups/Makefile
make-rules/ips.mk
make-rules/shared-macros.mk
--- a/components/file/Makefile	Wed May 12 00:32:41 2010 -0500
+++ b/components/file/Makefile	Wed May 12 01:53:05 2010 -0500
@@ -28,6 +28,7 @@
 COMPONENT_VERSION=	5.0.4
 COMPONENT_DESCRIPTION=	"command and library to determine file type"
 COMPONENT_SRC=		$(COMPONENT_NAME)-5.04
+COMPONENT_COPYRIGHT=	$(COMPONENT_SRC)/COPYING
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	56ddf7135471aa656334ed8fefe1112bcccc2cc3
 COMPONENT_ARCHIVE_URL=	ftp://ftp.fu-berlin.de/unix/tools/file/$(COMPONENT_ARCHIVE)
--- a/components/lcms/Makefile	Wed May 12 00:32:41 2010 -0500
+++ b/components/lcms/Makefile	Wed May 12 01:53:05 2010 -0500
@@ -28,6 +28,7 @@
 COMPONENT_VERSION=	1.19
 COMPONENT_DESCRIPTION=	"Little Color Management System"
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_COPYRIGHT=	$(COMPONENT_SRC)/COPYING
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	4f192cfd36d8b819e6885571401f949220609005
 COMPONENT_ARCHIVE_URL=	http://www.littlecms.com/$(COMPONENT_ARCHIVE)
--- a/components/pycups/Makefile	Wed May 12 00:32:41 2010 -0500
+++ b/components/pycups/Makefile	Wed May 12 01:53:05 2010 -0500
@@ -28,6 +28,7 @@
 COMPONENT_VERSION=	1.9.46
 COMPONENT_DESCRIPTION=	"Python language bindings for CUPS"
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_COPYRIGHT=	$(COMPONENT_SRC)/COPYING
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
 COMPONENT_ARCHIVE_HASH=	3d58a0f7b4a1b6a2880baf9ef5e14eae461d0982
 COMPONENT_ARCHIVE_URL=	http://cyberelk.net/tim/data/pycups/$(COMPONENT_ARCHIVE)
--- 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) $< $@
+
 $(COMPONENT_SRC)/manifest:	install
 	pkgsend generate $(PROTO_DIR) >$@
 
-$(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)" >$@
 	echo "set name=pkg.description value=\"$(COMPONENT_DESCRIPTION)\"" >>$@
 	echo "set name=pkg.name value=\"$(COMPONENT_DESCRIPTION)\"" >>$@
 	echo "set name=org.opensolaris.consolidation value=$(CONSOLIDATION)" >>$@
+	echo "license $(COPYRIGHT_FILE) license=$(COPYRIGHT_FILE)" >>$@
 	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) $(PKGMOGRIFY_TRANSFORMS) $< >>$@
 
 $(COMPONENT_SRC)/manifest.fdeps:	$(COMPONENT_SRC)/manifest.mog
--- a/make-rules/shared-macros.mk	Wed May 12 00:32:41 2010 -0500
+++ b/make-rules/shared-macros.mk	Wed May 12 01:53:05 2010 -0500
@@ -76,3 +76,4 @@
 TOUCH =		/usr/bin/touch
 MKDIR =		/bin/mkdir -p
 RM =		/bin/rm -f
+CP =		/bin/cp -f