Commits

Anonymous committed d42300c

add license/copyright info for ips generation

Comments (0)

Files changed (5)

components/file/Makefile

 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)

components/lcms/Makefile

 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)

components/pycups/Makefile

 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)

make-rules/ips.mk

 
 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

make-rules/shared-macros.mk

 TOUCH =		/usr/bin/touch
 MKDIR =		/bin/mkdir -p
 RM =		/bin/rm -f
+CP =		/bin/cp -f