aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/boot/apex/Makefile3
-rw-r--r--package/boot/fconfig/Makefile3
-rw-r--r--package/boot/grub2/Makefile3
-rw-r--r--package/boot/imx-bootlets/Makefile3
-rw-r--r--package/boot/kexec-tools/Makefile3
-rw-r--r--package/boot/kobs-ng/Makefile2
-rw-r--r--package/boot/rbcfg/Makefile3
-rw-r--r--package/boot/uboot-ar71xx/Makefile3
-rw-r--r--package/boot/uboot-envtools/Makefile3
-rw-r--r--package/boot/uboot-imx6/Makefile3
-rw-r--r--package/boot/uboot-kirkwood/Makefile3
-rw-r--r--package/boot/uboot-lantiq/Makefile3
-rw-r--r--package/boot/uboot-mxs/Makefile3
-rw-r--r--package/boot/uboot-omap/Makefile3
-rw-r--r--package/boot/uboot-pxa/Makefile3
-rw-r--r--package/boot/uboot-sunxi/Makefile3
-rw-r--r--package/boot/uboot-xburst/Makefile3
-rw-r--r--package/boot/yamonenv/Makefile3
-rw-r--r--package/devel/gdb/Makefile3
-rw-r--r--package/devel/oprofile/Makefile3
-rw-r--r--package/devel/trace-cmd/Makefile3
-rw-r--r--package/devel/valgrind/Makefile3
-rw-r--r--package/libs/cyassl/Makefile3
-rw-r--r--package/libs/gettext-full/Makefile3
-rw-r--r--package/libs/libbsd/Makefile1
-rw-r--r--package/libs/libconfig/Makefile3
-rw-r--r--package/libs/libevent2/Makefile3
-rw-r--r--package/libs/libiconv-full/Makefile3
-rw-r--r--package/libs/libmnl/Makefile3
-rw-r--r--package/libs/libnetfilter-conntrack/Makefile3
-rw-r--r--package/libs/libnfnetlink/Makefile3
-rw-r--r--package/libs/libnl/Makefile3
-rw-r--r--package/libs/libpcap/Makefile3
-rw-r--r--package/libs/libreadline/Makefile2
-rw-r--r--package/libs/libroxml/Makefile3
-rw-r--r--package/libs/librpc/Makefile2
-rw-r--r--package/libs/libtool/Makefile4
-rw-r--r--package/libs/libubox/Makefile2
-rw-r--r--package/libs/libusb-compat/Makefile3
-rw-r--r--package/libs/libusb/Makefile3
-rw-r--r--package/libs/lzo/Makefile3
-rw-r--r--package/libs/ocf-crypto-headers/Makefile2
-rw-r--r--package/libs/openssl/Makefile1
-rw-r--r--package/libs/polarssl/Makefile3
-rw-r--r--package/libs/popt/Makefile4
-rw-r--r--package/libs/sysfsutils/Makefile2
-rw-r--r--package/libs/uclibc++/Makefile3
-rw-r--r--package/network/config/firewall/Makefile2
-rw-r--r--package/network/config/qos-scripts/Makefile3
-rw-r--r--package/network/config/soloscli/Makefile3
-rw-r--r--package/network/config/swconfig/Makefile3
-rw-r--r--package/network/ipv6/6in4/Makefile3
-rw-r--r--package/network/ipv6/6rd/Makefile3
-rw-r--r--package/network/ipv6/6to4/Makefile3
-rw-r--r--package/network/ipv6/ds-lite/Makefile3
-rw-r--r--package/network/ipv6/map/Makefile3
-rw-r--r--package/network/ipv6/odhcp6c/Makefile3
-rw-r--r--package/network/ipv6/thc-ipv6/Makefile3
-rw-r--r--package/network/services/authsae/Makefile3
-rw-r--r--package/network/services/dnsmasq/Makefile4
-rw-r--r--package/network/services/ead/Makefile3
-rw-r--r--package/network/services/hostapd/Makefile3
-rw-r--r--package/network/services/igmpproxy/Makefile3
-rw-r--r--package/network/services/lldpd/Makefile3
-rw-r--r--package/network/services/odhcpd/Makefile3
-rw-r--r--package/network/services/openvpn-easy-rsa/Makefile3
-rw-r--r--package/network/services/openvpn/Makefile3
-rw-r--r--package/network/services/ppp/Makefile3
-rw-r--r--package/network/services/relayd/Makefile3
-rw-r--r--package/network/services/samba36/Makefile2
-rw-r--r--package/network/services/uhttpd/Makefile3
-rw-r--r--package/network/utils/arptables/Makefile3
-rw-r--r--package/network/utils/comgt/Makefile3
-rw-r--r--package/network/utils/conntrack-tools/Makefile3
-rw-r--r--package/network/utils/dante/Makefile3
-rw-r--r--package/network/utils/ebtables/Makefile3
-rw-r--r--package/network/utils/ifenslave/Makefile3
-rw-r--r--package/network/utils/iftop/Makefile3
-rw-r--r--package/network/utils/iperf/Makefile3
-rw-r--r--package/network/utils/iproute2/Makefile3
-rw-r--r--package/network/utils/ipset/Makefile3
-rw-r--r--package/network/utils/iptables/Makefile3
-rw-r--r--package/network/utils/iputils/Makefile3
-rw-r--r--package/network/utils/iw/Makefile3
-rw-r--r--package/network/utils/iwcap/Makefile3
-rw-r--r--package/network/utils/iwinfo/Makefile3
-rw-r--r--package/network/utils/linux-atm/Makefile3
-rw-r--r--package/network/utils/maccalc/Makefile3
-rw-r--r--package/network/utils/owipcalc/Makefile3
-rw-r--r--package/network/utils/resolveip/Makefile3
-rw-r--r--package/network/utils/rssileds/Makefile3
-rw-r--r--package/network/utils/tcpdump/Makefile3
-rw-r--r--package/network/utils/wireless-tools/Makefile3
-rw-r--r--package/network/utils/xtables-addons/Makefile3
-rw-r--r--package/system/ca-certificates/Makefile3
-rw-r--r--package/system/fstools/Makefile2
-rw-r--r--package/system/mountd/Makefile3
-rw-r--r--package/system/mtd/Makefile2
-rw-r--r--package/system/opkg/Makefile2
-rw-r--r--package/system/procd/Makefile2
-rw-r--r--package/system/ubox/Makefile2
-rw-r--r--package/system/uci/Makefile2
-rw-r--r--package/system/udev/Makefile3
-rw-r--r--package/system/zram-swap/Makefile3
-rw-r--r--package/utils/admswconfig/Makefile3
-rw-r--r--package/utils/busybox/Makefile2
-rw-r--r--package/utils/e2fsprogs/Makefile3
-rw-r--r--package/utils/fbtest/Makefile3
-rw-r--r--package/utils/fuse/Makefile2
-rw-r--r--package/utils/hostap-utils/Makefile3
-rw-r--r--package/utils/jsonfilter/Makefile3
-rw-r--r--package/utils/mdadm/Makefile3
-rw-r--r--package/utils/mkelfimage/Makefile3
-rw-r--r--package/utils/nvram/Makefile3
-rw-r--r--package/utils/px5g-standalone/Makefile3
-rw-r--r--package/utils/px5g/Makefile3
-rw-r--r--package/utils/robocfg/Makefile3
-rw-r--r--package/utils/spidev_test/Makefile3
-rw-r--r--package/utils/ubi-utils/Makefile2
-rw-r--r--package/utils/usbreset/Makefile3
-rw-r--r--package/utils/usbutils/Makefile3
-rw-r--r--package/utils/util-linux/Makefile2
-rw-r--r--package/utils/xfsprogs/Makefile6
124 files changed, 331 insertions, 24 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 83b9929ead..03b2d2de45 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -13,6 +13,8 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
PKG_RELEASE:=156
+PKG_LICENSE:=GPL-2.0
+
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
PKG_LICENSE:=GPL-2.0
diff --git a/package/boot/apex/Makefile b/package/boot/apex/Makefile
index 1a1ab1b28b..64315a1ae8 100644
--- a/package/boot/apex/Makefile
+++ b/package/boot/apex/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
PKG_MD5SUM:=9606cf2e3fd2c9a86fe0b61388509a30
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
export GCC_HONOUR_COPTS=s
diff --git a/package/boot/fconfig/Makefile b/package/boot/fconfig/Makefile
index 14bbec57b8..c04afdaac2 100644
--- a/package/boot/fconfig/Makefile
+++ b/package/boot/fconfig/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://andrzejekiert.ovh.org/software/fconfig/
PKG_MD5SUM:=dac355e9f2a0f48c414c52e2034b6346
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index 64a30589d0..a800a36f80 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://alpha.gnu.org/gnu/grub
PKG_MD5SUM:=be62932eade308a364ea4bbc91295930
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
HOST_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=grub2/host
diff --git a/package/boot/imx-bootlets/Makefile b/package/boot/imx-bootlets/Makefile
index 2ff60ee2f8..56e2d7f023 100644
--- a/package/boot/imx-bootlets/Makefile
+++ b/package/boot/imx-bootlets/Makefile
@@ -13,6 +13,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
PKG_MD5SUM:=82e375193b66ca643023c1656d536282
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/imx-bootlets
diff --git a/package/boot/kexec-tools/Makefile b/package/boot/kexec-tools/Makefile
index 8c1c255cba..deeb4a5abe 100644
--- a/package/boot/kexec-tools/Makefile
+++ b/package/boot/kexec-tools/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kexec
PKG_MD5SUM:=05992bc8c0673fc55be7b6d27e48a8db
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_CONFIG_DEPENDS := CONFIG_KEXEC_ZLIB
diff --git a/package/boot/kobs-ng/Makefile b/package/boot/kobs-ng/Makefile
index c43fa19243..de14c9402a 100644
--- a/package/boot/kobs-ng/Makefile
+++ b/package/boot/kobs-ng/Makefile
@@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://repository.timesys.com/buildsources/k/kobs-ng/kobs-ng-$(PKG_VERSION)/
PKG_MD5SUM:=26104c577f59a6b81782a5bd16aadd82
-PKG_LICENSE:=GPLv2
+PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
diff --git a/package/boot/rbcfg/Makefile b/package/boot/rbcfg/Makefile
index 51fefd5942..76ae21e7a6 100644
--- a/package/boot/rbcfg/Makefile
+++ b/package/boot/rbcfg/Makefile
@@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=rbcfg
PKG_RELEASE:=1
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/boot/uboot-ar71xx/Makefile b/package/boot/uboot-ar71xx/Makefile
index 1955bd8eeb..7c4bb6ce8a 100644
--- a/package/boot/uboot-ar71xx/Makefile
+++ b/package/boot/uboot-ar71xx/Makefile
@@ -20,6 +20,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile
index fa49c13f96..53bfbb1653 100644
--- a/package/boot/uboot-envtools/Makefile
+++ b/package/boot/uboot-envtools/Makefile
@@ -23,6 +23,9 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/u-boot-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=+fstools
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
include $(INCLUDE_DIR)/package.mk
define Package/uboot-envtools
diff --git a/package/boot/uboot-imx6/Makefile b/package/boot/uboot-imx6/Makefile
index 7074da9f0d..78b1c33254 100644
--- a/package/boot/uboot-imx6/Makefile
+++ b/package/boot/uboot-imx6/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_URL:= \
ftp://ftp.denx.de/pub/u-boot
PKG_MD5SUM:=6d2116d1385a66e9a59742caa9d62a54
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/boot/uboot-kirkwood/Makefile b/package/boot/uboot-kirkwood/Makefile
index f12c13bda2..2f4a1bbbfe 100644
--- a/package/boot/uboot-kirkwood/Makefile
+++ b/package/boot/uboot-kirkwood/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=36d4bad687edcafa396fee607e505d4e
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/boot/uboot-lantiq/Makefile b/package/boot/uboot-lantiq/Makefile
index 9b20777895..d2b868f5de 100644
--- a/package/boot/uboot-lantiq/Makefile
+++ b/package/boot/uboot-lantiq/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=a076a044b64371edc52f7e562b13f6b2
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
PKG_BUILD_PARALLEL:=1
FIRMWARE_LANTIQ_SOURCE:=$(TOPDIR)/target/linux/lantiq/files/firmware/lantiq
diff --git a/package/boot/uboot-mxs/Makefile b/package/boot/uboot-mxs/Makefile
index a6773b8d17..6541375094 100644
--- a/package/boot/uboot-mxs/Makefile
+++ b/package/boot/uboot-mxs/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_URL:= \
ftp://ftp.denx.de/pub/u-boot
PKG_MD5SUM:=36d4bad687edcafa396fee607e505d4e
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/uboot-omap/Makefile b/package/boot/uboot-omap/Makefile
index 96168a30d0..6e836d047a 100644
--- a/package/boot/uboot-omap/Makefile
+++ b/package/boot/uboot-omap/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=a076a044b64371edc52f7e562b13f6b2
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/uboot-pxa/Makefile b/package/boot/uboot-pxa/Makefile
index 7fe747cf0c..6d477420f0 100644
--- a/package/boot/uboot-pxa/Makefile
+++ b/package/boot/uboot-pxa/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=ca6bf3ef6ac5f5132a359b43dfa31e07076b74b7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile
index 5ab52360f2..5b83105b81 100644
--- a/package/boot/uboot-sunxi/Makefile
+++ b/package/boot/uboot-sunxi/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:= \
PKG_SOURCE_VERSION:=6d2116d1385a66e9a59742caa9d62a54
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/uboot-xburst/Makefile b/package/boot/uboot-xburst/Makefile
index 89802d0f40..a4c183d2b6 100644
--- a/package/boot/uboot-xburst/Makefile
+++ b/package/boot/uboot-xburst/Makefile
@@ -20,6 +20,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=451c07271940016cec6f5ad8a155263b
PKG_TARGETS:=bin
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define uboot/Default
diff --git a/package/boot/yamonenv/Makefile b/package/boot/yamonenv/Makefile
index e1d2a4baf1..7b2c31458b 100644
--- a/package/boot/yamonenv/Makefile
+++ b/package/boot/yamonenv/Makefile
@@ -17,6 +17,9 @@ PKG_MD5SUM:=a3e4f24155aa3ba5aa502bc63fdaa6ad
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=gpl.txt
+
include $(INCLUDE_DIR)/package.mk
define Package/yamonenv
diff --git a/package/devel/gdb/Makefile b/package/devel/gdb/Makefile
index c47735a8c0..bac5f40521 100644
--- a/package/devel/gdb/Makefile
+++ b/package/devel/gdb/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/gdb
PKG_MD5SUM:=bd958fe9019d7c7896f29f6724a764ed
+PKG_LICENSE:=GPL-3.0+ LGPL-3.0+
+PKG_LICENSE_FILES:=COPYING3 COPYING3.LIB
+
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_LICENSE:=GPL-3.0+
diff --git a/package/devel/oprofile/Makefile b/package/devel/oprofile/Makefile
index cc23c939a5..c5ef6446c9 100644
--- a/package/devel/oprofile/Makefile
+++ b/package/devel/oprofile/Makefile
@@ -17,6 +17,9 @@ PKG_MD5SUM:=00aec1287da2dfffda17a9b1c0a01868
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_DEPENDS:=binutils
PKG_LICENSE:=GPL-2.0+
PKG_FIXUP:=autoreconf
diff --git a/package/devel/trace-cmd/Makefile b/package/devel/trace-cmd/Makefile
index 6d776fe929..bad109a7f0 100644
--- a/package/devel/trace-cmd/Makefile
+++ b/package/devel/trace-cmd/Makefile
@@ -14,6 +14,9 @@ PKG_INSTALL:=1
PKG_USE_MIPS16:=0
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0 LGPL-2.1
+PKG_LICENSE_FILES:=COPYING COPYING.LIB
+
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/devel/valgrind/Makefile b/package/devel/valgrind/Makefile
index e2c7f67280..914efcf709 100644
--- a/package/devel/valgrind/Makefile
+++ b/package/devel/valgrind/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=7c311a72a20388aceced1aa5573ce970
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP = autoreconf
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
diff --git a/package/libs/cyassl/Makefile b/package/libs/cyassl/Makefile
index fd901576b8..48efe3b9ec 100644
--- a/package/libs/cyassl/Makefile
+++ b/package/libs/cyassl/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
PKG_SOURCE_URL:=http://www.yassl.com/
PKG_MD5SUM:=a80493c224ff86e45dc333c06d5edb88
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=libtool
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
diff --git a/package/libs/gettext-full/Makefile b/package/libs/gettext-full/Makefile
index 2399f0fe35..405a384a94 100644
--- a/package/libs/gettext-full/Makefile
+++ b/package/libs/gettext-full/Makefile
@@ -20,6 +20,9 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-3.0+
+PKG_LICENSE:=GPL-3.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=0
diff --git a/package/libs/libbsd/Makefile b/package/libs/libbsd/Makefile
index 3c12d9f65b..8b64900127 100644
--- a/package/libs/libbsd/Makefile
+++ b/package/libs/libbsd/Makefile
@@ -54,4 +54,3 @@ define Package/libbsd/install
endef
$(eval $(call BuildPackage,libbsd))
-
diff --git a/package/libs/libconfig/Makefile b/package/libs/libconfig/Makefile
index bbc0b04fba..fa25692b6f 100644
--- a/package/libs/libconfig/Makefile
+++ b/package/libs/libconfig/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=b6ee0ce2b3ef844bad7cac2803a90634
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=COPYING.LIB
+
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=LGPL-2.1+
diff --git a/package/libs/libevent2/Makefile b/package/libs/libevent2/Makefile
index 3ce94dd759..4af84393be 100644
--- a/package/libs/libevent2/Makefile
+++ b/package/libs/libevent2/Makefile
@@ -19,6 +19,9 @@ PKG_MD5SUM:=b2405cc9ebf264aa47ff615d9de527a2
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
diff --git a/package/libs/libiconv-full/Makefile b/package/libs/libiconv-full/Makefile
index 75bca83348..8c68c12d1d 100644
--- a/package/libs/libiconv-full/Makefile
+++ b/package/libs/libiconv-full/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_URL:=@GNU/libiconv
PKG_MD5SUM:=d42b97f6ef5dd0ba4469d520ed732fed
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
+PKG_LICENSE:=LGPL-2.0+
+PKG_LICENSE_FILES:=COPYING.LIB
+
PKG_FIXUP:=patch-libtool
include $(INCLUDE_DIR)/package.mk
diff --git a/package/libs/libmnl/Makefile b/package/libs/libmnl/Makefile
index 06c77652ee..7dd82dc16a 100644
--- a/package/libs/libmnl/Makefile
+++ b/package/libs/libmnl/Makefile
@@ -19,6 +19,9 @@ PKG_MD5SUM:=7d95fc3bea3365bc03c48e484224f65f
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_LICENSE:=LGPL-2.1+
diff --git a/package/libs/libnetfilter-conntrack/Makefile b/package/libs/libnetfilter-conntrack/Makefile
index 4579a02c43..d70cda7877 100644
--- a/package/libs/libnetfilter-conntrack/Makefile
+++ b/package/libs/libnetfilter-conntrack/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_URL:= \
PKG_MD5SUM:=73394a3d8d0cfecc6abb6027b4792d52
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_LICENSE:=GPL-2.0+
diff --git a/package/libs/libnfnetlink/Makefile b/package/libs/libnfnetlink/Makefile
index 861c60400a..8a3e06cb34 100644
--- a/package/libs/libnfnetlink/Makefile
+++ b/package/libs/libnfnetlink/Makefile
@@ -20,6 +20,9 @@ PKG_MD5SUM:=98927583d2016a9fb1936fed992e2c5e
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
diff --git a/package/libs/libnl/Makefile b/package/libs/libnl/Makefile
index 995fda207f..15daf6051e 100644
--- a/package/libs/libnl/Makefile
+++ b/package/libs/libnl/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=http://www.infradead.org/~tgr/libnl/files/
PKG_MD5SUM:=6fe7136558a9071e70673dcda38545b3
PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define Package/libnl
diff --git a/package/libs/libpcap/Makefile b/package/libs/libpcap/Makefile
index 2a90c49f13..9fea67f70f 100644
--- a/package/libs/libpcap/Makefile
+++ b/package/libs/libpcap/Makefile
@@ -17,6 +17,9 @@ PKG_MD5SUM:=7e7321fb3aff2f2bb05c8229f3795d4a
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=BSD-3-Clause
diff --git a/package/libs/libreadline/Makefile b/package/libs/libreadline/Makefile
index a9e6a22163..6cd44e70c1 100644
--- a/package/libs/libreadline/Makefile
+++ b/package/libs/libreadline/Makefile
@@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/readline
PKG_MD5SUM:=33c8fb279e981274f485fd91da77e94a
-PKG_LICENSE:=GPL-3.0
+PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
diff --git a/package/libs/libroxml/Makefile b/package/libs/libroxml/Makefile
index 1c7b3d3470..8baa3aea2d 100644
--- a/package/libs/libroxml/Makefile
+++ b/package/libs/libroxml/Makefile
@@ -17,6 +17,9 @@ PKG_SOURCE_URL:=http://download.libroxml.net/pool/v2.x
PKG_MD5SUM:=a975f91be150f7a19168a45ce15769ca
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+KG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=License.txt
+
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=LGPL-2.1+
diff --git a/package/libs/librpc/Makefile b/package/libs/librpc/Makefile
index d68e3609da..a37d076a20 100644
--- a/package/libs/librpc/Makefile
+++ b/package/libs/librpc/Makefile
@@ -12,7 +12,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1
PKG_USE_MIPS16:=0
-PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE:=GPL-2.0 LGPL-2.1 BSD-3-Clause
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile
index 6afa8bd0e7..4e6a6a8f00 100644
--- a/package/libs/libtool/Makefile
+++ b/package/libs/libtool/Makefile
@@ -1,4 +1,4 @@
-#
+#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/libtool
PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
-PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0+ LGPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=0
diff --git a/package/libs/libubox/Makefile b/package/libs/libubox/Makefile
index 76a2fe936f..1fe70987b9 100644
--- a/package/libs/libubox/Makefile
+++ b/package/libs/libubox/Makefile
@@ -12,7 +12,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_MD5SUM:=
CMAKE_INSTALL:=1
-PKG_LICENSE:=ISC
+PKG_LICENSE:=ISC BSD-3-Clause
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
diff --git a/package/libs/libusb-compat/Makefile b/package/libs/libusb-compat/Makefile
index c50740d13e..d673b5888e 100644
--- a/package/libs/libusb-compat/Makefile
+++ b/package/libs/libusb-compat/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/libusb
PKG_MD5SUM:=2ca521fffadd0c28fdf174e6ec73865b
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=COPYING
+
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=LGPL-2.1
diff --git a/package/libs/libusb/Makefile b/package/libs/libusb/Makefile
index 2796b051d5..36156fb6a1 100644
--- a/package/libs/libusb/Makefile
+++ b/package/libs/libusb/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=7f5a02375ad960d4e33a6dae7d63cfcb
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=COPYING
+
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=LGPL-2.1
diff --git a/package/libs/lzo/Makefile b/package/libs/lzo/Makefile
index b2bab05f3e..e2a6efad02 100644
--- a/package/libs/lzo/Makefile
+++ b/package/libs/lzo/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.oberhumer.com/opensource/lzo/download/
PKG_MD5SUM:=fcec64c26a0f4f4901468f360029678f
+KG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_LICENSE:=GPL-2.0+
diff --git a/package/libs/ocf-crypto-headers/Makefile b/package/libs/ocf-crypto-headers/Makefile
index faf050884d..c20cb2abff 100644
--- a/package/libs/ocf-crypto-headers/Makefile
+++ b/package/libs/ocf-crypto-headers/Makefile
@@ -10,7 +10,7 @@ PKG_NAME:=ocf-crypto-headers
PKG_VERSION:=20110720
PKG_RELEASE:=1
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=cryptodev.h
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index a0087b5e55..34255b37f2 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -22,6 +22,7 @@ PKG_MD5SUM:=f7175c9cd3c39bb1907ac8bba9df8ed3
PKG_LICENSE:=OpenSSL
PKG_LICENSE_FILES:=LICENSE
+
PKG_BUILD_DEPENDS:=ocf-crypto-headers
PKG_CONFIG_DEPENDS:= \
CONFIG_OPENSSL_ENGINE_CRYPTO \
diff --git a/package/libs/polarssl/Makefile b/package/libs/polarssl/Makefile
index 739f7839df..af8fc704bb 100644
--- a/package/libs/polarssl/Makefile
+++ b/package/libs/polarssl/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz
PKG_SOURCE_URL:=https://polarssl.org/code/releases
PKG_MD5SUM:=d1a2b4f21727e888f143414d2e3144e6
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=LICENSE
+
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=GPL-2.0+
diff --git a/package/libs/popt/Makefile b/package/libs/popt/Makefile
index 5e03774dd2..1c9711577a 100644
--- a/package/libs/popt/Makefile
+++ b/package/libs/popt/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
PKG_MD5SUM:=5988e7aeb0ae4dac8d83561265984cc9
PKG_LICENSE:=MIT
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_REMOVE_FILES:=autogen.sh aclocal.m4
@@ -57,4 +60,3 @@ $(eval $(call RequireCommand,xgettext, \
))
$(eval $(call BuildPackage,libpopt))
-
diff --git a/package/libs/sysfsutils/Makefile b/package/libs/sysfsutils/Makefile
index 9ee76a0362..f95617f3e0 100644
--- a/package/libs/sysfsutils/Makefile
+++ b/package/libs/sysfsutils/Makefile
@@ -16,7 +16,7 @@ PKG_SOURCE_URL:=@SF/linux-diag
PKG_MD5SUM:=14e7dcd0436d2f49aa403f67e1ef7ddc
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
-PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE:=GPL-2.0 LGPL-2.1+
PKG_LICENSE_FILES:=COPYING cmd/GPL lib/LGPL
PKG_FIXUP:=autoreconf
diff --git a/package/libs/uclibc++/Makefile b/package/libs/uclibc++/Makefile
index ade3c62e0f..22192459d0 100644
--- a/package/libs/uclibc++/Makefile
+++ b/package/libs/uclibc++/Makefile
@@ -20,6 +20,9 @@ PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE:=LGPL-2.1+
+PKG_LICENSE_FILES:=
+
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/config/firewall/Makefile b/package/network/config/firewall/Makefile
index b1d50a19f1..e224c92803 100644
--- a/package/network/config/firewall/Makefile
+++ b/package/network/config/firewall/Makefile
@@ -19,6 +19,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=ISC
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
diff --git a/package/network/config/qos-scripts/Makefile b/package/network/config/qos-scripts/Makefile
index a6690a161a..257b2f7572 100644
--- a/package/network/config/qos-scripts/Makefile
+++ b/package/network/config/qos-scripts/Makefile
@@ -13,6 +13,9 @@ PKG_RELEASE:=6
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/config/soloscli/Makefile b/package/network/config/soloscli/Makefile
index 12bc15eaca..ba55a1e4a7 100644
--- a/package/network/config/soloscli/Makefile
+++ b/package/network/config/soloscli/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=@SF/openadsl
PKG_MD5SUM:=c398866de3c059b14eb953c89d698124
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=soloscli/COPYING.GPL
+
PKG_BUILD_DIR:=$(BUILD_DIR)/solos-pci-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
diff --git a/package/network/config/swconfig/Makefile b/package/network/config/swconfig/Makefile
index 7d0f30e7bb..fb951da3ac 100644
--- a/package/network/config/swconfig/Makefile
+++ b/package/network/config/swconfig/Makefile
@@ -13,6 +13,9 @@ PKG_RELEASE:=10
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0 LGPL-2.1
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
diff --git a/package/network/ipv6/6in4/Makefile b/package/network/ipv6/6in4/Makefile
index aeb187cb58..b5e157962d 100644
--- a/package/network/ipv6/6in4/Makefile
+++ b/package/network/ipv6/6in4/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=18
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/6in4
diff --git a/package/network/ipv6/6rd/Makefile b/package/network/ipv6/6rd/Makefile
index 82195c8c3b..b4e796a052 100644
--- a/package/network/ipv6/6rd/Makefile
+++ b/package/network/ipv6/6rd/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=7
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/6rd
diff --git a/package/network/ipv6/6to4/Makefile b/package/network/ipv6/6to4/Makefile
index 6be2cc5770..f9eee0e2fb 100644
--- a/package/network/ipv6/6to4/Makefile
+++ b/package/network/ipv6/6to4/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=12
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/6to4
diff --git a/package/network/ipv6/ds-lite/Makefile b/package/network/ipv6/ds-lite/Makefile
index 4a3d1b38cd..c39881bf8b 100644
--- a/package/network/ipv6/ds-lite/Makefile
+++ b/package/network/ipv6/ds-lite/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=4
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/ds-lite
diff --git a/package/network/ipv6/map/Makefile b/package/network/ipv6/map/Makefile
index 382fe0a8ba..a06a324c01 100644
--- a/package/network/ipv6/map/Makefile
+++ b/package/network/ipv6/map/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=2
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
diff --git a/package/network/ipv6/odhcp6c/Makefile b/package/network/ipv6/odhcp6c/Makefile
index 56ed206c3f..c06e68e07b 100644
--- a/package/network/ipv6/odhcp6c/Makefile
+++ b/package/network/ipv6/odhcp6c/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_VERSION:=940e2141ab13727af6323c4d30002f785e466318
PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
diff --git a/package/network/ipv6/thc-ipv6/Makefile b/package/network/ipv6/thc-ipv6/Makefile
index 4c75f1869b..255988d81b 100644
--- a/package/network/ipv6/thc-ipv6/Makefile
+++ b/package/network/ipv6/thc-ipv6/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=5c9be9ad38ac15c368bb5140d031c051
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
+PKG_LICENSE:=GPL-3.0+
+PKG_LICENSE_FILES:=LICENSE
+
include $(INCLUDE_DIR)/package.mk
THC_APPLETS := \
diff --git a/package/network/services/authsae/Makefile b/package/network/services/authsae/Makefile
index 29550214fa..d46ef2a908 100644
--- a/package/network/services/authsae/Makefile
+++ b/package/network/services/authsae/Makefile
@@ -17,6 +17,9 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=8531ab158910a525d4bcbb3ad02c08342f6987f2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=
+
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index a5302255b1..bf9fc8f588 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -15,8 +15,8 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
PKG_MD5SUM:=cf82f81cf09ad3d47612985012240483
-PKG_LICENSE:=GPL-2.0
-PKG_LICENSE_FILES:=COPYING
+PKG_LICENSE:=GPL-2.0 GPL-3.0
+PKG_LICENSE_FILES:=COPYING COPYING-v3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
diff --git a/package/network/services/ead/Makefile b/package/network/services/ead/Makefile
index c7432533cf..163c6b89bf 100644
--- a/package/network/services/ead/Makefile
+++ b/package/network/services/ead/Makefile
@@ -16,6 +16,9 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/ead
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile
index d698c050a3..d8178b89cd 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_PROTO:=git
# PKG_MIRROR_MD5SUM:=4e7c1f97edd7514535056fce54ae053a
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=README
+
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=BSD-3-Clause
diff --git a/package/network/services/igmpproxy/Makefile b/package/network/services/igmpproxy/Makefile
index 33ed014040..36b35e0e24 100644
--- a/package/network/services/igmpproxy/Makefile
+++ b/package/network/services/igmpproxy/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=@SF/igmpproxy
PKG_MD5SUM:=c56f41ec195bc1fe016369bf74efc5a1
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=GPL.txt
+
include $(INCLUDE_DIR)/package.mk
PKG_FIXUP:=autoreconf
diff --git a/package/network/services/lldpd/Makefile b/package/network/services/lldpd/Makefile
index 3a2e41122d..c597440ed2 100644
--- a/package/network/services/lldpd/Makefile
+++ b/package/network/services/lldpd/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=9031734c69940dd79a0a175123275f83
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=ISC
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=README.md
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
diff --git a/package/network/services/odhcpd/Makefile b/package/network/services/odhcpd/Makefile
index a2f9f9a20c..e0372f58cb 100644
--- a/package/network/services/odhcpd/Makefile
+++ b/package/network/services/odhcpd/Makefile
@@ -20,6 +20,9 @@ PKG_SOURCE_VERSION:=b461334ab277b6e8fd1622ab7c8a655363bd3f6c
PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
diff --git a/package/network/services/openvpn-easy-rsa/Makefile b/package/network/services/openvpn-easy-rsa/Makefile
index 487b61c81f..47cf84243d 100644
--- a/package/network/services/openvpn-easy-rsa/Makefile
+++ b/package/network/services/openvpn-easy-rsa/Makefile
@@ -20,6 +20,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYRIGHT.GPL
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile
index 27f831b6d5..e8187d33f4 100644
--- a/package/network/services/openvpn/Makefile
+++ b/package/network/services/openvpn/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=04d47237907faabe9d046970ffe44b2e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYRIGHT.GPL
+
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
index 33b71ffe82..d8cecc4c59 100644
--- a/package/network/services/ppp/Makefile
+++ b/package/network/services/ppp/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=78818f40e6d33a1d1de68a1551f6595a
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=BSD-4-Clause
+PKG_LICENSE:=BSD-3-Clause BSD-4-Clause
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=libpcap
diff --git a/package/network/services/relayd/Makefile b/package/network/services/relayd/Makefile
index 8c5d33866f..c1ff51b2a9 100644
--- a/package/network/services/relayd/Makefile
+++ b/package/network/services/relayd/Makefile
@@ -17,6 +17,9 @@ PKG_SOURCE_URL:=git://nbd.name/relayd.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=767c54d5957a2db0b847add771e8e890b82569c0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0
diff --git a/package/network/services/samba36/Makefile b/package/network/services/samba36/Makefile
index 4dff34b3c9..8bf9202c95 100644
--- a/package/network/services/samba36/Makefile
+++ b/package/network/services/samba36/Makefile
@@ -16,7 +16,7 @@ PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=d98425c0c2b73e08f048d31ffc727fb0
-PKG_LICENSE:=GPL-3.0
+PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile
index e6e6753a68..765f4ffb74 100644
--- a/package/network/services/uhttpd/Makefile
+++ b/package/network/services/uhttpd/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=ISC
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DEPENDS = ustream-ssl
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/arptables/Makefile b/package/network/utils/arptables/Makefile
index 62681dcd59..642030afb7 100644
--- a/package/network/utils/arptables/Makefile
+++ b/package/network/utils/arptables/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE_URL:=@SF/ebtables
PKG_MD5SUM:=c2e99c3aa9d78c9dfa30710ca3168182
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/comgt/Makefile b/package/network/utils/comgt/Makefile
index 9ab2f14e8c..58845a83d5 100644
--- a/package/network/utils/comgt/Makefile
+++ b/package/network/utils/comgt/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=db2452680c3d953631299e331daf49ef
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=gpl.txt
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
PKG_CHECK_FORMAT_SECURITY:=0
diff --git a/package/network/utils/conntrack-tools/Makefile b/package/network/utils/conntrack-tools/Makefile
index c697d6565c..bf002c2dca 100644
--- a/package/network/utils/conntrack-tools/Makefile
+++ b/package/network/utils/conntrack-tools/Makefile
@@ -21,6 +21,9 @@ PKG_MD5SUM:=5add24d4761baf17af630d5627a71752
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
diff --git a/package/network/utils/dante/Makefile b/package/network/utils/dante/Makefile
index f10dd86c1b..0e9ab069c8 100644
--- a/package/network/utils/dante/Makefile
+++ b/package/network/utils/dante/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=69b9d6234154d7d6a91fcbd98c68e62a
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=BSD-4-Clause
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
diff --git a/package/network/utils/ebtables/Makefile b/package/network/utils/ebtables/Makefile
index 8c2fe2c724..b1c8c9c11f 100644
--- a/package/network/utils/ebtables/Makefile
+++ b/package/network/utils/ebtables/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/ebtables
PKG_MD5SUM:=506742a3d44b9925955425a659c1a8d0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_DIR:=$(BUILD_DIR)/ebtables-v$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0
diff --git a/package/network/utils/ifenslave/Makefile b/package/network/utils/ifenslave/Makefile
index 658fe9ea2d..c25d33600c 100644
--- a/package/network/utils/ifenslave/Makefile
+++ b/package/network/utils/ifenslave/Makefile
@@ -12,6 +12,9 @@ PKG_NAME:=ifenslave
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/ifenslave
diff --git a/package/network/utils/iftop/Makefile b/package/network/utils/iftop/Makefile
index 037fb15cc1..e451e937a9 100644
--- a/package/network/utils/iftop/Makefile
+++ b/package/network/utils/iftop/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=fef521a49ec0122458d02c64212af3c5
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define Package/iftop
diff --git a/package/network/utils/iperf/Makefile b/package/network/utils/iperf/Makefile
index 414342d072..a5067ecc2d 100644
--- a/package/network/utils/iperf/Makefile
+++ b/package/network/utils/iperf/Makefile
@@ -19,6 +19,9 @@ PKG_MD5SUM:=44b5536b67719f4250faed632a3cd016
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE:=NCSA
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_PARALLEL:=1
PKG_CHECK_FORMAT_SECURITY:=0
diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index f6d2801e53..6b21fc68e4 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -17,6 +17,9 @@ PKG_MD5SUM:=6c823b40fdcfa7b8120743349a52ac18
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/ipset/Makefile b/package/network/utils/ipset/Makefile
index 16ac8c6e52..06d4b882cc 100644
--- a/package/network/utils/ipset/Makefile
+++ b/package/network/utils/ipset/Makefile
@@ -19,6 +19,9 @@ PKG_MD5SUM:=8af741492752fbf24d3a28a9d1473d40
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile
index f8ce00c4ec..b8d562d8a6 100644
--- a/package/network/utils/iptables/Makefile
+++ b/package/network/utils/iptables/Makefile
@@ -19,6 +19,9 @@ PKG_SOURCE_URL:=http://www.netfilter.org/projects/iptables/files \
ftp://ftp.no.netfilter.org/pub/netfilter/iptables/
PKG_MD5SUM:=536d048c8e8eeebcd9757d0863ebb0c0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
diff --git a/package/network/utils/iputils/Makefile b/package/network/utils/iputils/Makefile
index 1dc993cb81..97e3990a3a 100644
--- a/package/network/utils/iputils/Makefile
+++ b/package/network/utils/iputils/Makefile
@@ -18,6 +18,9 @@ PKG_MD5SUM:=a36c25e9ec17e48be514dc0485e7376c
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0+ BSD-4-Clause
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DEPENDS:=sysfsutils
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
diff --git a/package/network/utils/iw/Makefile b/package/network/utils/iw/Makefile
index 62a88e8e17..aea33ced68 100644
--- a/package/network/utils/iw/Makefile
+++ b/package/network/utils/iw/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.kernel.org/pub/software/network/iw
PKG_MD5SUM:=3b77ad7ec44a865a3bb2ab6c1c463bba
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=COPYING
+
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0
diff --git a/package/network/utils/iwcap/Makefile b/package/network/utils/iwcap/Makefile
index d3f884715c..fe09521940 100644
--- a/package/network/utils/iwcap/Makefile
+++ b/package/network/utils/iwcap/Makefile
@@ -10,6 +10,9 @@ PKG_NAME:=iwcap
PKG_RELEASE:=1
PKG_LICENSE:=Apache-2.0
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/iwinfo/Makefile b/package/network/utils/iwinfo/Makefile
index 6cd8414d5c..e7f90b404a 100644
--- a/package/network/utils/iwinfo/Makefile
+++ b/package/network/utils/iwinfo/Makefile
@@ -25,6 +25,9 @@ PKG_CONFIG_DEPENDS := \
CONFIG_PACKAGE_kmod-madwifi \
CONFIG_PACKAGE_kmod-cfg80211
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/linux-atm/Makefile b/package/network/utils/linux-atm/Makefile
index 8e5bf9f46b..5a410bd01f 100644
--- a/package/network/utils/linux-atm/Makefile
+++ b/package/network/utils/linux-atm/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=d49499368c3cf15f73a05d9bce8824a8
+PKG_LICENSE:=GPL-2.0 LGPL-2.0
+PKG_LICENSE_FILES:=COPYING COPYING.GPL COPYING.LGPL
+
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_CHECK_FORMAT_SECURITY:=0
diff --git a/package/network/utils/maccalc/Makefile b/package/network/utils/maccalc/Makefile
index b4800d0085..7850f438a4 100644
--- a/package/network/utils/maccalc/Makefile
+++ b/package/network/utils/maccalc/Makefile
@@ -13,6 +13,9 @@ PKG_LICENSE:=GPL-2.0
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/maccalc
diff --git a/package/network/utils/owipcalc/Makefile b/package/network/utils/owipcalc/Makefile
index 9d6b397991..cda40647b4 100644
--- a/package/network/utils/owipcalc/Makefile
+++ b/package/network/utils/owipcalc/Makefile
@@ -10,6 +10,9 @@ PKG_NAME:=owipcalc
PKG_RELEASE:=3
PKG_LICENSE:=Apache-2.0
+PKG_LICENSE:=Apache-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/resolveip/Makefile b/package/network/utils/resolveip/Makefile
index 3243a80016..02b0df9d13 100644
--- a/package/network/utils/resolveip/Makefile
+++ b/package/network/utils/resolveip/Makefile
@@ -11,6 +11,9 @@ PKG_NAME:=resolveip
PKG_RELEASE:=2
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/resolveip
diff --git a/package/network/utils/rssileds/Makefile b/package/network/utils/rssileds/Makefile
index 6ca4e32e03..b08d2e71fc 100644
--- a/package/network/utils/rssileds/Makefile
+++ b/package/network/utils/rssileds/Makefile
@@ -12,6 +12,9 @@ PKG_VERSION:=0.2
PKG_RELEASE:=1
PKG_LICNESE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/rssileds
diff --git a/package/network/utils/tcpdump/Makefile b/package/network/utils/tcpdump/Makefile
index 8e33a2bb7b..89c187624f 100644
--- a/package/network/utils/tcpdump/Makefile
+++ b/package/network/utils/tcpdump/Makefile
@@ -24,6 +24,9 @@ PKG_BUILD_PARALLEL:=1
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/wireless-tools/Makefile b/package/network/utils/wireless-tools/Makefile
index 64b6f9fc7a..722bfaf472 100644
--- a/package/network/utils/wireless-tools/Makefile
+++ b/package/network/utils/wireless-tools/Makefile
@@ -20,6 +20,9 @@ TAR_OPTIONS += || true
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_DIR:=$(BUILD_DIR)/wireless_tools.$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
diff --git a/package/network/utils/xtables-addons/Makefile b/package/network/utils/xtables-addons/Makefile
index 59300f94a7..b2728e4e8e 100644
--- a/package/network/utils/xtables-addons/Makefile
+++ b/package/network/utils/xtables-addons/Makefile
@@ -23,6 +23,9 @@ PKG_CHECK_FORMAT_SECURITY:=0
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=LICENSE
+
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
diff --git a/package/system/ca-certificates/Makefile b/package/system/ca-certificates/Makefile
index 0caf027131..da6f58095a 100644
--- a/package/system/ca-certificates/Makefile
+++ b/package/system/ca-certificates/Makefile
@@ -16,6 +16,9 @@ PKG_MD5SUM:=f619282081c8bfc65ea64c37fa5285ed
PKG_INSTALL:=1
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/ca-certificates
diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index 40d8541e62..13978f7a03 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -20,7 +20,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1
PKG_CHECK_FORMAT_SECURITY:=0
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=
PKG_USE_MIPS16:=0
diff --git a/package/system/mountd/Makefile b/package/system/mountd/Makefile
index 36832b2227..4f902363c2 100644
--- a/package/system/mountd/Makefile
+++ b/package/system/mountd/Makefile
@@ -14,6 +14,9 @@ PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_CHECK_FORMAT_SECURITY:=0
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/mountd
diff --git a/package/system/mtd/Makefile b/package/system/mtd/Makefile
index 8d7bb44aa0..3515ec51a6 100644
--- a/package/system/mtd/Makefile
+++ b/package/system/mtd/Makefile
@@ -14,7 +14,7 @@ PKG_RELEASE:=20
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)
-PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
PKG_LICENSE_FILES:=
include $(INCLUDE_DIR)/package.mk
diff --git a/package/system/opkg/Makefile b/package/system/opkg/Makefile
index 391adfa0d9..e1cd30bb3f 100644
--- a/package/system/opkg/Makefile
+++ b/package/system/opkg/Makefile
@@ -23,7 +23,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSI
PKG_FIXUP:=autoreconf
PKG_REMOVE_FILES = autogen.sh aclocal.m4
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 3557eb80be..741c2f38da 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -19,7 +19,7 @@ PKG_SOURCE_VERSION:=174777181850705df7c6dbe234bd7e93d352666a
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile
index de35d58392..33e98256cd 100644
--- a/package/system/ubox/Makefile
+++ b/package/system/ubox/Makefile
@@ -12,7 +12,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1
PKG_CHECK_FORMAT_SECURITY:=0
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
diff --git a/package/system/uci/Makefile b/package/system/uci/Makefile
index fd87b5d11a..eb7d97fdbf 100644
--- a/package/system/uci/Makefile
+++ b/package/system/uci/Makefile
@@ -21,7 +21,7 @@ PKG_SOURCE_SUBDIR:=uci-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_SOURCE_PROTO:=git
-PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE:=LGPL-2.1 GPL-2.0
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
diff --git a/package/system/udev/Makefile b/package/system/udev/Makefile
index a99533e454..22a4cf4311 100644
--- a/package/system/udev/Makefile
+++ b/package/system/udev/Makefile
@@ -16,6 +16,9 @@ PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/hotplug/
PKG_MD5SUM:=91a88a359b60bbd074b024883cc0dbde
PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
PKG_INSTALL=1
diff --git a/package/system/zram-swap/Makefile b/package/system/zram-swap/Makefile
index 1fe3804e82..2bb0d7c263 100644
--- a/package/system/zram-swap/Makefile
+++ b/package/system/zram-swap/Makefile
@@ -13,6 +13,9 @@ PKG_RELEASE:=2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/zram-swap
diff --git a/package/utils/admswconfig/Makefile b/package/utils/admswconfig/Makefile
index e16258f4b1..de3683d42c 100644
--- a/package/utils/admswconfig/Makefile
+++ b/package/utils/admswconfig/Makefile
@@ -15,6 +15,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
PKG_MD5SUM:=faafd4618f970119a665b11b21ac6a26
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/admswconfig
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile
index c546405aa9..b46af22f16 100644
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -21,7 +21,7 @@ PKG_BUILD_DEPENDS:=BUSYBOX_USE_LIBRPC:librpc BUSYBOX_CONFIG_PAM:libpam
PKG_BUILD_PARALLEL:=1
PKG_CHECK_FORMAT_SECURITY:=0
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0 BSD-4-Clause
PKG_LICENSE_FILES:=LICENSE archival/libarchive/bz/LICENSE
include $(INCLUDE_DIR)/package.mk
diff --git a/package/utils/e2fsprogs/Makefile b/package/utils/e2fsprogs/Makefile
index 5dc878658c..5d5ad901dd 100644
--- a/package/utils/e2fsprogs/Makefile
+++ b/package/utils/e2fsprogs/Makefile
@@ -18,6 +18,9 @@ PKG_SOURCE_URL:=@SF/e2fsprogs
PKG_BUILD_DEPENDS:=util-linux
PKG_INSTALL:=1
+PKG_LICENSE:=GPL-2.0 LGPL-2.0 BSD-3-Clause MIT
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define Package/e2fsprogs/Default
diff --git a/package/utils/fbtest/Makefile b/package/utils/fbtest/Makefile
index 05e67cb63a..05ed99958f 100644
--- a/package/utils/fbtest/Makefile
+++ b/package/utils/fbtest/Makefile
@@ -12,6 +12,9 @@ PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/fbtest
diff --git a/package/utils/fuse/Makefile b/package/utils/fuse/Makefile
index 0620b6cf9b..5edfb7f8e4 100644
--- a/package/utils/fuse/Makefile
+++ b/package/utils/fuse/Makefile
@@ -16,7 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=894ee11674f89a915ae87524aed55bc4
-PKG_LICENSE:=LGPLv2.1 GPLv2
+PKG_LICENSE:=LGPL-2.1 GPL-2.0
PKG_LICENSE_FILES:=COPYING.LIB COPYING
PKG_INSTALL:=1
diff --git a/package/utils/hostap-utils/Makefile b/package/utils/hostap-utils/Makefile
index 1d7b22122e..a3e27fabeb 100644
--- a/package/utils/hostap-utils/Makefile
+++ b/package/utils/hostap-utils/Makefile
@@ -14,6 +14,9 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
PKG_MD5SUM:=afe041581b8f01666e353bec20917c85
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define Package/hostap-utils
diff --git a/package/utils/jsonfilter/Makefile b/package/utils/jsonfilter/Makefile
index 34020df482..d5e677c816 100644
--- a/package/utils/jsonfilter/Makefile
+++ b/package/utils/jsonfilter/Makefile
@@ -14,6 +14,9 @@ CMAKE_INSTALL:=1
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=ISC
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
diff --git a/package/utils/mdadm/Makefile b/package/utils/mdadm/Makefile
index 69eec5b389..92ac85c936 100644
--- a/package/utils/mdadm/Makefile
+++ b/package/utils/mdadm/Makefile
@@ -17,6 +17,9 @@ PKG_MD5SUM:=2fd33dedcdb06f0d1461f50ddabb7e4a
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
diff --git a/package/utils/mkelfimage/Makefile b/package/utils/mkelfimage/Makefile
index 2433c72038..a5c04b239d 100644
--- a/package/utils/mkelfimage/Makefile
+++ b/package/utils/mkelfimage/Makefile
@@ -13,6 +13,9 @@ PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/m/mkelfimage/
PKG_MD5SUM:=e505cb87e9c0cdc44cf03d2c4ea8c74b
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
include $(INCLUDE_DIR)/package.mk
define Package/mkelfimage
diff --git a/package/utils/nvram/Makefile b/package/utils/nvram/Makefile
index fe70e34669..27a49c5f01 100644
--- a/package/utils/nvram/Makefile
+++ b/package/utils/nvram/Makefile
@@ -12,6 +12,9 @@ PKG_RELEASE:=9
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/nvram
diff --git a/package/utils/px5g-standalone/Makefile b/package/utils/px5g-standalone/Makefile
index d6843b0137..e575bd474c 100644
--- a/package/utils/px5g-standalone/Makefile
+++ b/package/utils/px5g-standalone/Makefile
@@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=px5g
PKG_RELEASE:=2
+PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_CHECK_FORMAT_SECURITY:=0
diff --git a/package/utils/px5g/Makefile b/package/utils/px5g/Makefile
index 9c0caa7b8d..9bf290abe7 100644
--- a/package/utils/px5g/Makefile
+++ b/package/utils/px5g/Makefile
@@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=px5g
PKG_RELEASE:=1
+PKG_LICENSE:=LGPL-2.1
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)
PKG_USE_MIPS16:=0
diff --git a/package/utils/robocfg/Makefile b/package/utils/robocfg/Makefile
index 4bc72f51db..48f91ba857 100644
--- a/package/utils/robocfg/Makefile
+++ b/package/utils/robocfg/Makefile
@@ -11,6 +11,9 @@ PKG_NAME:=robocfg
PKG_VERSION:=0.01
PKG_RELEASE:=1
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
PKG_BUILD_DIR:=$(BUILD_DIR)/robocfg
include $(INCLUDE_DIR)/package.mk
diff --git a/package/utils/spidev_test/Makefile b/package/utils/spidev_test/Makefile
index 807039a1f5..e0ed0207fa 100644
--- a/package/utils/spidev_test/Makefile
+++ b/package/utils/spidev_test/Makefile
@@ -11,6 +11,9 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=spidev-test
PKG_RELEASE:=$(LINUX_VERSION)
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/spidev-test
diff --git a/package/utils/ubi-utils/Makefile b/package/utils/ubi-utils/Makefile
index 80085c4f3b..3d2a7dc123 100644
--- a/package/utils/ubi-utils/Makefile
+++ b/package/utils/ubi-utils/Makefile
@@ -22,7 +22,7 @@ PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=util-linux liblzo zlib
-PKG_LICENSE:=GPLv2
+PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
diff --git a/package/utils/usbreset/Makefile b/package/utils/usbreset/Makefile
index d8efa54c15..bc00200256 100644
--- a/package/utils/usbreset/Makefile
+++ b/package/utils/usbreset/Makefile
@@ -10,6 +10,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=usbreset
PKG_RELEASE:=4
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
include $(INCLUDE_DIR)/package.mk
define Package/usbreset
diff --git a/package/utils/usbutils/Makefile b/package/utils/usbutils/Makefile
index b1c058b0c1..bab383f494 100644
--- a/package/utils/usbutils/Makefile
+++ b/package/utils/usbutils/Makefile
@@ -22,6 +22,9 @@ USB_IDS_FILE:=usb.ids.$(USB_IDS_VERSION).gz
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
include $(INCLUDE_DIR)/package.mk
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile
index 877ccc500a..95c3e498e6 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.24
PKG_MD5SUM:=88d46ae23ca599ac5af9cf96b531590f
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0 LGPL-2.1 BSD-3-Clause
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
diff --git a/package/utils/xfsprogs/Makefile b/package/utils/xfsprogs/Makefile
index 7fc9a64138..0ba972e7f1 100644
--- a/package/utils/xfsprogs/Makefile
+++ b/package/utils/xfsprogs/Makefile
@@ -10,10 +10,14 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xfsprogs
PKG_RELEASE:=1
PKG_VERSION:=3.1.7
+
PKG_SOURCE_URL:=ftp://oss.sgi.com/projects/xfs/previous/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=049cf9873794ea49d0bb3f12d45748a4
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_LICENSE:=GPL-2.0 LGPL-2.1
+PKG_LICENSE_FILES:=debian/copyright
+
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_CHECK_FORMAT_SECURITY:=0