licensing: Add licensing metadata to many packages Two new variables are introduces...
authorHamish Guthrie <hcg@openwrt.org>
Fri, 19 Oct 2012 15:34:28 +0000 (15:34 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Fri, 19 Oct 2012 15:34:28 +0000 (15:34 +0000)
The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!

SVN-Revision: 33861

30 files changed:
include/package-ipkg.mk
package/busybox/Makefile
package/fuse/Makefile
package/kernel/Makefile
package/libs/gettext/Makefile
package/libs/gettext/src/LICENSE [new file with mode: 0644]
package/libs/libbsd/Makefile
package/libs/libiconv/Makefile
package/libs/libiconv/src/LICENSE [new file with mode: 0644]
package/libs/libjson-c/Makefile
package/libs/libnl-tiny/Makefile
package/libs/libreadline/Makefile
package/libs/librpc/Makefile
package/libs/libtool/Makefile
package/libs/libubox/Makefile
package/libs/ncurses/Makefile
package/libs/ocf-crypto-headers/Makefile
package/libs/openssl/Makefile
package/libs/sysfsutils/Makefile
package/libs/zlib/Makefile
package/lua/Makefile
package/mtd/Makefile
package/network/config/netifd/Makefile
package/network/services/dnsmasq/Makefile
package/network/services/dropbear/Makefile
package/network/services/samba36/Makefile
package/opkg/Makefile
package/ubus/Makefile
package/uci/Makefile
package/util-linux/Makefile

index 665aac5d65bfa0191fca16f9d674268ae47ee2ed..4ee0a96ad108561a4a6fb91fcff56d56536f51be 100644 (file)
@@ -149,6 +149,10 @@ ifeq ($(DUMP),)
                echo "Depends: $$$$DEPENDS"; \
                echo "Provides: $(PROVIDES)"; \
                echo "Source: $(SOURCE)"; \
+               echo "SourceFile: $(PKG_SOURCE)"; \
+               echo "SourceURL: $(PKG_SOURCE_URL)"; \
+               echo "License: $(PKG_LICENSE)"; \
+               echo "LicenseFiles: $(PKG_LICENSE_FILES)"; \
                echo "Section: $(SECTION)"; \
                echo "Status: unknown $(if $(filter hold,$(PKG_FLAGS)),hold,ok) not-installed"; \
                echo "Essential: $(if $(filter essential,$(PKG_FLAGS)),yes,no)"; \
index 9bfea59e626b3f663a563d66f37c44789c318975..0450d897e32a0d7d55bc185b0efde09b7b2e74d6 100644 (file)
@@ -20,6 +20,9 @@ PKG_MD5SUM:=9c0cae5a0379228e7b55e5b29528df8e
 PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_FEATURE_HAVE_RPC:librpc
 PKG_BUILD_PARALLEL:=1
 
+PKG_LICENSE:=GPLv2 BSD-4c
+PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE
+
 include $(INCLUDE_DIR)/package.mk
 
 ifeq ($(DUMP),)
index 9c5acc7cd3ecc1240bc5b01a8409e882904c5662..0620b6cf9b6b078af90e3da7559c2da2d04392d9 100644 (file)
@@ -16,6 +16,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
 PKG_MD5SUM:=894ee11674f89a915ae87524aed55bc4
 
+PKG_LICENSE:=LGPLv2.1 GPLv2
+PKG_LICENSE_FILES:=COPYING.LIB COPYING
+
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
index 8050817392b271f405de8410d6fac33fd491ef6c..d44b5a7767d8237994b60fb9f530ad03509b4814 100644 (file)
@@ -14,6 +14,9 @@ PKG_FLAGS:=hold
 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
 SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=
+
 include $(INCLUDE_DIR)/package.mk
 ifeq ($(DUMP),)
   -include $(LINUX_DIR)/.config
index c2f4e756f9b99e9d379314b2b87e506b6bd02a86..1ee785eecc16e150abb76b26ebfc4a3e6d4f27d5 100644 (file)
@@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=gettext
 PKG_RELEASE:=2
 
+PKG_LICENSE:=FREE
+PKG_LICENSE_FILES:=LICENSE
+
 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
diff --git a/package/libs/gettext/src/LICENSE b/package/libs/gettext/src/LICENSE
new file mode 100644 (file)
index 0000000..d1a59b0
--- /dev/null
@@ -0,0 +1,7 @@
+Each source file contains the following message:
+
+Copyright (C) 1995-2010 Free Software Foundation, Inc.
+This file is free software; the Free Software Foundation
+gives unlimited permission to copy and/or distribute it,
+with or without modifications, as long as this notice is preserved.
+
index 4fef04a23341a378a8f1ba5cb3be2e796654d5d5..fe95bc9924ec3edca0e3b374e9c059435e1e563b 100644 (file)
@@ -8,6 +8,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://libbsd.freedesktop.org/releases
 #PKG_MD5SUM:=d0870f2de55d59c1c8419f36e8fac150
 
+PKG_LICENSE:=BSD-4c
+PKG_LICENSE_FILES:=COPYING
+
 include $(INCLUDE_DIR)/package.mk
 
 PKG_INSTALL:=1
index 232b273f4d5e9d6ed1622f3a6592391a9337a051..66d1cfb3b90952e12bc44575ceb5791f8394fe91 100644 (file)
@@ -13,6 +13,9 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=libiconv
 PKG_RELEASE:=7
 
+PKG_LICENSE:=FREE
+PKG_LICENSE_FILES:=LICENSE
+
 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
diff --git a/package/libs/libiconv/src/LICENSE b/package/libs/libiconv/src/LICENSE
new file mode 100644 (file)
index 0000000..b59e7be
--- /dev/null
@@ -0,0 +1,6 @@
+The source file iconv.m4 contains the following message
+
+Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
+This file is free software; the Free Software Foundation
+gives unlimited permission to copy and/or distribute it,
+with or without modifications, as long as this notice is preserved.
index 0e536007e35017f5df7834d38a12fc127be31047..5dd83f2c0e56dfd8fc9abfebec3ec47b285cccd3 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
 PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
 
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=COPYING
+
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
 
index 49a3cc3dc716e6382a4af5e6194a47b986a3cace..9639ac315416c8b0621efc8c6e00e2b7aa0c8eb9 100644 (file)
@@ -11,6 +11,9 @@ PKG_NAME:=libnl-tiny
 PKG_VERSION:=0.1
 PKG_RELEASE:=3
 
+PKG_LICENSE:=GPLv2 LGPLv2.1
+PKG_LICENSE_FILES:=
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
index 90219e55b66b485914172562b3c2fd28564b4f0b..320d2e2df60da18997a6a480e29e864f3081b0bf 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/readline
 PKG_MD5SUM:=e39331f32ad14009b9ff49cc10c5e751
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=COPYING
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libreadline
index b4092438ff30a412617be15b65f5e2b21ca5f5b2..21d81f0dbc56ca09b19c6db74296d9d4978a9c3e 100644 (file)
@@ -11,6 +11,9 @@ PKG_SOURCE_VERSION:=0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 CMAKE_INSTALL:=1
 
+PKG_LICENSE:=GPLv2 LGPLv2.1
+PKG_LICENSE_FILES:=
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
index b33eda14a2996d418f66949e879d154f44cd0afb..df18c1d768420de919fccceb5b388ef2c80b3fc9 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/libtool
 PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=COPYING
+
 PKG_BUILD_PARALLEL:=0
 
 include $(INCLUDE_DIR)/package.mk
index 39cfb3019ba35177b570cf4ef309eea359aeb64a..c98cefbf82782a260d2363b93877f8fa686869b9 100644 (file)
@@ -12,6 +12,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 PKG_MIRROR_MD5SUM:=dfd44c10b4aeccbdab9ae22774fb02e3
 CMAKE_INSTALL:=1
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
index 9c682aca83852de1ec00737e81bcf47da89e5081..0b88ab6feb54c92d3aea5f8778d56076560c7a6c 100644 (file)
@@ -16,6 +16,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/ncurses
 PKG_MD5SUM:=cce05daf61a64501ef6cd8da1f727ec6
 
+PKG_LICENSE:=FREE
+PKG_LICENSE_FILES:=README
+
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
index fee2a3734f97cfbc2a7cced358138a02f5eb7cc7..ba46ee7963e5db6731377ca1b9a326c5460b8e50 100644 (file)
@@ -10,6 +10,9 @@ PKG_NAME:=ocf-crypto-headers
 PKG_VERSION:=20110720
 PKG_RELEASE:=1
 
+PKG_LICENSE:=cryptodev.h
+PKG_LICENSE_FILES:=
+
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 
 include $(INCLUDE_DIR)/package.mk
index cfc3b3d92d26fc2b78c5db125eae0c4d383922d6..7ee44408d249f6a976a95b6cb7fe428c6312c4e4 100644 (file)
@@ -18,6 +18,8 @@ PKG_SOURCE_URL:=http://www.openssl.org/source/ \
        ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/
 PKG_MD5SUM:=ae412727c8c15b67880aef7bd2999b2e
 
+PKG_LICENSE:=SSLEAY OPENSSL
+PKG_LICENSE_FILES:=LICENSE
 PKG_BUILD_DEPENDS:=ocf-crypto-headers
 PKG_CONFIG_DEPENDS:=CONFIG_OPENSSL_ENGINE_CRYPTO CONFIG_OPENSSL_ENGINE_DIGEST
 
index 3c43bbc16a261a023209d998c7fc4b05aa822980..09bf528f0544fa79c8214ca4839305bd60b0b7df 100644 (file)
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=@SF/linux-diag
 PKG_MD5SUM:=14e7dcd0436d2f49aa403f67e1ef7ddc
 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
 
+PKG_LICENSE:=GPLv2 LGPLv2.1
+PKG_LICENSE_FILES:=COPYING cmd/GPL lib/LGPL
+
 PKG_FIXUP:=autoreconf
 
 PKG_INSTALL:=1
index 18b8884cd56c4c0e8edb20075a229dd018346b0a..2abb3c4e751a29b6d73265f1ee6af5b400574190 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.zlib.net @SF/libpng
 PKG_MD5SUM:=2ab442d169156f34c379c968f3f482dd
 
+PKG_LICENSE:=ZLIB
+PKG_LICENSE_FILES:=README
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/zlib
index fca7747cd52ad556e0ab9f210158f8984bca7685..e7e011a4052e23c3f9eca30ba37f8c5cbc911e40 100644 (file)
@@ -19,6 +19,9 @@ PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
 PKG_MD5SUM:=2e115fe26e435e33b0d5c022e4490567
 PKG_BUILD_PARALLEL:=1
 
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=COPYRIGHT
+
 HOST_PATCH_DIR := ./patches-host
 
 include $(INCLUDE_DIR)/package.mk
index ec487e520fb543814c0145c351c2d244675f6a60..c6b94ffdf6548e1a93eb395efbbe8a996689ad52 100644 (file)
@@ -14,6 +14,9 @@ PKG_RELEASE:=20
 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
 STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)
 
+PKG_LICENSE:=GPLv2 GPLv2+
+PKG_LICENSE_FILES:=
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/mtd
index 2f8453c42097aa0fadb3bd23b208d9cac7301729..047993a96b201a902ca8b91b747313303b5a87bd 100644 (file)
@@ -13,6 +13,9 @@ PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 # PKG_MIRROR_MD5SUM:=
 # CMAKE_INSTALL:=1
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=
+
 PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
index 4ad0f37742cc9077b2cdf765d8acf8d329504a8c..d92b00f9981cbb090db034f3137e9ca561c55757 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
 PKG_MD5SUM:=f47e5cb8f5bac6343f24b2dbe317ab40
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=COPYING
+
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 
 PKG_INSTALL:=1
index 63cf86e14770ea5c3f17269bacddcd79f2a42ee2..cd5b36825612835e15e36c585171551e5db1e7bb 100644 (file)
@@ -17,6 +17,9 @@ PKG_SOURCE_URL:= \
        http://www.mirrors.wiretapped.net/security/cryptography/apps/ssh/dropbear/
 PKG_MD5SUM:=c627ffe09570fad7aa94d8eac2b9320c
 
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE libtomcrypt/LICENSE libtommath/LICENSE
+
 PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
index d6b2b506e676e7241a101f9846dd245c89e54229..981ac59d906d2452250e352d52f47b9fa42d49eb 100644 (file)
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_MD5SUM:=2f0c14547333c1b48fd4728b031e7040
 
+PKG_LICENSE:=GPLv3
+PKG_LICENSE_FILES:=COPYING
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 PKG_BUILD_PARALLEL:=1
index 4efd44a209019c56fcbbcddcfeb6d3e1be60cbcb..a41127ab2b709c3a99a81af2ca4e30a791d57aea 100644 (file)
@@ -21,6 +21,9 @@ PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
 PKG_FIXUP:=autoreconf
 PKG_REMOVE_FILES = autogen.sh aclocal.m4
 
+PKG_LICENSE:=GPLv2
+PKG_LICENSE_FILES:=COPYING
+
 PKG_BUILD_PARALLEL:=1
 HOST_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
index d8a57128d6d6d824b271f6d838f67a196b144e33..12280e92f2430be9cb12227973e47730d461fecf 100644 (file)
@@ -12,6 +12,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 PKG_MIRROR_MD5SUM:=cbca78919d44bcf0f8d1e09743131e6d
 CMAKE_INSTALL:=1
 
+PKG_LICENSE:=LGPLv2.1
+PKG_LICENSE_FILES:=
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 include $(INCLUDE_DIR)/package.mk
index 024dba9e341b5c56fec84042d3c35be10c4e53c3..39741a301b2751b3f169af3292c4e0d84b6016ef 100644 (file)
@@ -22,6 +22,9 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE_PROTO:=git
 PKG_MIRROR_MD5SUM:=0ee76d8f79cf99f5539fd090a4e65646
 
+PKG_LICENSE:=LGPLv2.1 GPLv2
+PKG_LICENSE_FILES:=
+
 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
 
 PKG_BUILD_PARALLEL:=0
index 3a64463714527cd48e575fdd6466b8317fdf0b0f..a8aed8d65e27a03d0b1190f2c6dd2f04553c362c 100644 (file)
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.21
 PKG_MD5SUM:=54ba880f1d66782c2287ee2c898520e9
 
+PKG_LICENSE:=GPLv2 LGPLv2.1 BSD-3c
+PKG_LICENSE_FILES:=COPYING getopt/COPYING libblkid/COPYING libmount/COPYING Documentation/licenses/COPYING.GPLv2 Documentation/licenses/COPYING.LGPLv2.1 libuuid/COPYING Documentation/licenses/COPYING.BSD-3
+
 PKG_BUILD_PARALLEL:=1
 PKG_BUILD_DEPENDS:=libncurses
 PKG_FIXUP:=autoreconf