Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpe-info reporting and maintenance script #32

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
565465f
cpe-info: new make target
rc-matthew-l-weber Feb 17, 2018
54b8996
cpe-info: id prefix/suffix
rc-matthew-l-weber Feb 17, 2018
8923f83
cpe-info: only report target pkgs
rc-matthew-l-weber Feb 23, 2018
7f82e9b
cpe-info: update manual for new pkg vars
rc-matthew-l-weber Feb 17, 2018
7a71b2b
cpe-info: cpeCheck script
rc-matthew-l-weber Mar 2, 2018
5740730
bash: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
58915a5
bzip2: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 27, 2018
0e92226
dhcp: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
f9ec7bf
gdb: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
42f5ad0
glibc: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
8204ecb
gzip: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
20c8a18
libgcrypt: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
025085d
linux: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 23, 2018
9b110b4
linux-headers: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 23, 2018
1912112
openssh: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
b9dce49
xerces: add custom CPE_ID_VENDOR
rc-matthew-l-weber Feb 22, 2018
57ee51f
expat: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
bc48013
ipset: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
20f82f6
audit: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
030bd26
grep: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
e67fcfb
readline: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
269c60a
tar: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
cec5091
hostapd: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
f12d639
iptables: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
01e122a
libfcgi: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
3885796
libxml2: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
ab9a916
linux-pam: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
f79dda9
lz4: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
0d4eb27
ncurses: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
94df558
policycoreutils: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
4e2c941
wpa_supplicant: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
0ce2ab4
libcurl: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
8b43b31
libmnl: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
bb03ca5
libtasn1: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
fbda96c
pppd: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 2, 2018
e088eb2
dbus-glib: add custom CPE ID vendor
rc-matthew-l-weber Mar 2, 2018
58f7980
gnutls: add custom CPE ID vendor
rc-matthew-l-weber Mar 2, 2018
7400de8
netsnmp: add custom CPE ID vendor and name
rc-matthew-l-weber Mar 3, 2018
6f88902
pure-ftpd: add custom CPE ID vendor
rc-matthew-l-weber Mar 3, 2018
236d830
uboot-tools: add custom CPE ID vendor and name
rc-matthew-l-weber Mar 3, 2018
8c36ba9
xz: add custom CPE ID vendor
rc-matthew-l-weber Mar 3, 2018
2d5f066
libzlib: add custom CPE ID vendor
rc-matthew-l-weber Mar 3, 2018
ca36d96
grub2: add custom CPE ID vendor
rc-matthew-l-weber Mar 3, 2018
86428cb
u-boot: add custom CPE ID vendor and name
rc-matthew-l-weber Mar 3, 2018
7014093
bridge-utils: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
d54656e
crda: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
05566b6
dbus: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
26b0c3f
ethtool: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
cc01d81
iw: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
4502d54
kmod: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
b5e799a
libestr: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
0648bf6
libfastjson: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
a334474
liblogging: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
cc40a33
libnetfilter_conntrack: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
eb4d330
libnetfilter_cthelper: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
26cdef5
libnetfilter_cttimeout: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
c7d5879
libnetfilter_queue: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
03ced72
libpcap: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
f6ac294
libqmi: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
cb1b4d2
libselinux: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
eba304e
libsemanage: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
6515136
libsepol: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
6009bb7
linux-firmware: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
48fcd0c
refpolicy: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
1bddaae
setools: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
9ffb911
wireless-regdb: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
e975828
mpfr: add custom CPE_ID_VENDOR
clshotwe Mar 9, 2018
767d670
vim: add custom CPE_ID_VENDOR
clshotwe Mar 9, 2018
4ff40d2
gnupg: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
160bf89
lighttpd: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
86bef6f
rsyslog: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
0eb6574
strongswan: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
34eaf31
libopenssl: add custom CPE_ID_VENDOR
rc-matthew-l-weber Mar 25, 2018
de28d67
cvescript fixups
rc-matthew-l-weber Mar 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 16 additions & 1 deletion Makefile
Expand Up @@ -146,7 +146,7 @@ nobuild_targets := source %-source \
clean distclean help show-targets graph-depends \
%-graph-depends %-show-depends %-show-version \
graph-build graph-size list-defconfigs \
savedefconfig printvars
savedefconfig printvars cpe-info %-cpe-info
ifeq ($(MAKECMDGOALS),)
BR_BUILDING = y
else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)
Expand Down Expand Up @@ -230,6 +230,7 @@ LEGAL_MANIFEST_CSV_TARGET = $(LEGAL_INFO_DIR)/manifest.csv
LEGAL_MANIFEST_CSV_HOST = $(LEGAL_INFO_DIR)/host-manifest.csv
LEGAL_WARNINGS = $(LEGAL_INFO_DIR)/.warnings
LEGAL_REPORT = $(LEGAL_INFO_DIR)/README
CPE_MANIFEST_CSV = $(BASE_DIR)/cpe-manifest.csv

################################################################################
#
Expand Down Expand Up @@ -804,6 +805,19 @@ legal-info: dirs legal-info-clean legal-info-prepare $(foreach p,$(PACKAGES),$(p
mv .legal-info.sha256 legal-info.sha256)
@echo "Legal info produced in $(LEGAL_INFO_DIR)"

.PHONY: cpe-info-clean
cpe-info-clean:
@rm -f $(CPE_MANIFEST_CSV)

.PHONY: cpe-info-prepare
cpe-info-prepare:
@$(call MESSAGE,"Gathering CPE info")
@$(call cpe-manifest,CPE ID,CVE PATCHED,PACKAGE,VERSION,SOURCE SITE)

.PHONY: cpe-info
cpe-info: cpe-info-clean cpe-info-prepare $(foreach p,$(PACKAGES),$(p)-cpe-info)
@echo "CPE info produced in $(CPE_MANIFEST_CSV)"

.PHONY: show-targets
show-targets:
@echo $(sort $(PACKAGES)) $(sort $(TARGETS_ROOTFS))
Expand Down Expand Up @@ -1063,6 +1077,7 @@ help:
@echo ' source - download all sources needed for offline-build'
@echo ' external-deps - list external packages used'
@echo ' legal-info - generate info about license compliance'
@echo ' cpe-info - generate info about security CPE identification'
@echo ' printvars - dump all the internal variables'
@echo
@echo ' make V=0|1 - 0 => quiet build (default), 1 => verbose build'
Expand Down
1 change: 1 addition & 0 deletions boot/grub2/grub2.mk
Expand Up @@ -9,6 +9,7 @@ GRUB2_SITE = http://ftp.gnu.org/gnu/grub
GRUB2_SOURCE = grub-$(GRUB2_VERSION).tar.xz
GRUB2_LICENSE = GPL-3.0+
GRUB2_LICENSE_FILES = COPYING
GRUB2_CPE_ID_VENDOR = gnu
GRUB2_DEPENDENCIES = host-bison host-flex

GRUB2_BUILTIN_MODULES = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_MODULES))
Expand Down
2 changes: 2 additions & 0 deletions boot/uboot/uboot.mk
Expand Up @@ -9,6 +9,8 @@ UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))

UBOOT_LICENSE = GPL-2.0+
UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
UBOOT_CPE_ID_VENDOR = denx
UBOOT_CPE_ID_NAME = u-boot

UBOOT_INSTALL_IMAGES = YES

Expand Down
87 changes: 87 additions & 0 deletions cpeCheck.py
@@ -0,0 +1,87 @@
#!/usr/bin/env python

# cover cve patches
# pep 8
# move and rename script

import csv
import urllib
import argparse
import gzip
import os
from urllib2 import urlopen, URLError, HTTPError

# Thanks to https://stackoverflow.com/questions/4028697/how-do-i-download-a-zip-file-in-python-using-urllib2
# for this function.
def dlfile(url):
# Open the url
try:
f = urlopen(url)
print "downloading " + url

# Open our local file for writing
with open(os.path.basename(url), "wb") as local_file:
local_file.write(f.read())

#handle errors
except HTTPError, e:
print "HTTP Error:", e.code, url
except URLError, e:
print "URL Error:", e.reason, url

def get_cpe_dictionary():
dlfile("https://static.nvd.nist.gov/feeds/xml/cpe/dictionary/official-cpe-dictionary_v2.3.xml.gz")

def find_cpe(cpe_id):
for line in gzip.open("official-cpe-dictionary_v2.3.xml.gz"):
if cpe_id in line:
return
return "Not found"

def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-i', dest='csv_file', action='store', required=True,
help='cpe-info report')
return parser.parse_args()


def __main__():
args = parse_args()
print "Retrieving CPE dictionary ..."
get_cpe_dictionary()

missing_cpe = []
update_cpe = []
num_matches = 0
print "Checking for EXACT CPE matches..."
with open(args.csv_file) as cpe_file:
cpe_list = csv.reader(cpe_file)
for cpe in cpe_list:
if "CPE ID" not in cpe[0]:
result = find_cpe(cpe[0])
if result:
cpe_no_version = cpe[0].split(":")[0]+":"+cpe[0].split(":")[1]+":"+cpe[0].split(":")[2]+":"+cpe[0].split(":")[3]+":"+cpe[0].split(":")[4]
result = find_cpe(cpe_no_version)
if result:
missing_cpe.append(cpe[0])
else:
update_cpe.append(cpe[0])
else:
num_matches += 1
print (" FOUND[%d]" % num_matches)

num_matches = 0
print "**** The below CPEs need a new version added ****"
for cpe in update_cpe:
print cpe
num_matches += 1
print (" FOUND[%d]" % num_matches)

num_matches = 0
print "\n**** The below CPEs are missing ***"
for cpe in missing_cpe:
print cpe
num_matches += 1
print (" FOUND[%d]" % num_matches)

__main__()
117 changes: 74 additions & 43 deletions docs/manual/adding-packages-generic.txt
Expand Up @@ -24,57 +24,59 @@ system is based on hand-written Makefiles or shell scripts.
09: LIBFOO_SITE = http://www.foosoftware.org/download
10: LIBFOO_LICENSE = GPL-3.0+
11: LIBFOO_LICENSE_FILES = COPYING
12: LIBFOO_INSTALL_STAGING = YES
13: LIBFOO_CONFIG_SCRIPTS = libfoo-config
14: LIBFOO_DEPENDENCIES = host-libaaa libbbb
15:
16: define LIBFOO_BUILD_CMDS
17: $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
18: endef
19:
20: define LIBFOO_INSTALL_STAGING_CMDS
21: $(INSTALL) -D -m 0755 $(@D)/libfoo.a $(STAGING_DIR)/usr/lib/libfoo.a
22: $(INSTALL) -D -m 0644 $(@D)/foo.h $(STAGING_DIR)/usr/include/foo.h
23: $(INSTALL) -D -m 0755 $(@D)/libfoo.so* $(STAGING_DIR)/usr/lib
24: endef
25:
26: define LIBFOO_INSTALL_TARGET_CMDS
27: $(INSTALL) -D -m 0755 $(@D)/libfoo.so* $(TARGET_DIR)/usr/lib
28: $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/foo.d
29: endef
30:
31: define LIBFOO_USERS
32: foo -1 libfoo -1 * - - - LibFoo daemon
33: endef
34:
35: define LIBFOO_DEVICES
36: /dev/foo c 666 0 0 42 0 - - -
37: endef
38:
39: define LIBFOO_PERMISSIONS
40: /bin/foo f 4755 foo libfoo - - - - -
41: endef
42:
43: $(eval $(generic-package))
12: LIBFOO_CPE_ID_VENDOR = foosoftware
13: LIBFOO_INSTALL_STAGING = YES
14: LIBFOO_CONFIG_SCRIPTS = libfoo-config
15: LIBFOO_DEPENDENCIES = host-libaaa libbbb
16:
17: define LIBFOO_BUILD_CMDS
18: $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
19: endef
20:
21: define LIBFOO_INSTALL_STAGING_CMDS
22: $(INSTALL) -D -m 0755 $(@D)/libfoo.a $(STAGING_DIR)/usr/lib/libfoo.a
23: $(INSTALL) -D -m 0644 $(@D)/foo.h $(STAGING_DIR)/usr/include/foo.h
24: $(INSTALL) -D -m 0755 $(@D)/libfoo.so* $(STAGING_DIR)/usr/lib
25: endef
26:
27: define LIBFOO_INSTALL_TARGET_CMDS
28: $(INSTALL) -D -m 0755 $(@D)/libfoo.so* $(TARGET_DIR)/usr/lib
29: $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/foo.d
30: endef
31:
32: define LIBFOO_USERS
33: foo -1 libfoo -1 * - - - LibFoo daemon
34: endef
35:
36: define LIBFOO_DEVICES
37: /dev/foo c 666 0 0 42 0 - - -
38: endef
39:
40: define LIBFOO_PERMISSIONS
41: /bin/foo f 4755 foo libfoo - - - - -
42: endef
43:
44: $(eval $(generic-package))
--------------------------------

The Makefile begins on line 7 to 11 with metadata information: the
The Makefile begins on line 7 to 12 with metadata information: the
version of the package (+LIBFOO_VERSION+), the name of the
tarball containing the package (+LIBFOO_SOURCE+) (xz-ed tarball recommended)
the Internet location at which the tarball can be downloaded from
(+LIBFOO_SITE+), the license (+LIBFOO_LICENSE+) and file with the
license text (+LIBFOO_LICENSE_FILES+). All variables must start with
(+LIBFOO_SITE+), the license (+LIBFOO_LICENSE+), the file with the
license text (+LIBFOO_LICENSE_FILES+) and the vendor for vunerability
analysis (+LIBFOO_CPE_ID_VENDOR+). All variables must start with
the same prefix, +LIBFOO_+ in this case. This prefix is always the
uppercased version of the package name (see below to understand where
the package name is defined).

On line 12, we specify that this package wants to install something to
On line 13, we specify that this package wants to install something to
the staging space. This is often needed for libraries, since they must
install header files and other development files in the staging space.
This will ensure that the commands listed in the
+LIBFOO_INSTALL_STAGING_CMDS+ variable will be executed.

On line 13, we specify that there is some fixing to be done to some
On line 14, we specify that there is some fixing to be done to some
of the 'libfoo-config' files that were installed during
+LIBFOO_INSTALL_STAGING_CMDS+ phase.
These *-config files are executable shell script files that are
Expand Down Expand Up @@ -122,14 +124,14 @@ IMAGEMAGICK_CONFIG_SCRIPTS = \
--------------------------------
================================

On line 14, we specify the list of dependencies this package relies
On line 15, we specify the list of dependencies this package relies
on. These dependencies are listed in terms of lower-case package names,
which can be packages for the target (without the +host-+
prefix) or packages for the host (with the +host-+) prefix).
Buildroot will ensure that all these packages are built and installed
'before' the current package starts its configuration.

The rest of the Makefile, lines 16..29, defines what should be done
The rest of the Makefile, lines 17..29, defines what should be done
at the different steps of the package configuration, compilation and
installation.
+LIBFOO_BUILD_CMDS+ tells what steps should be performed to
Expand All @@ -142,16 +144,16 @@ All these steps rely on the +$(@D)+ variable, which
contains the directory where the source code of the package has been
extracted.

On lines 31..43, we define a user that is used by this package (e.g.
On lines 32..44, we define a user that is used by this package (e.g.
to run a daemon as non-root) (+LIBFOO_USERS+).

On line 35..37, we define a device-node file used by this package
On line 36..38, we define a device-node file used by this package
(+LIBFOO_DEVICES+).

On line 39..41, we define the permissions to set to specific files
On line 40..42, we define the permissions to set to specific files
installed by this package (+LIBFOO_PERMISSIONS+).

Finally, on line 43, we call the +generic-package+ function, which
Finally, on line 44, we call the +generic-package+ function, which
generates, according to the variables defined previously, all the
Makefile code necessary to make your package working.

Expand Down Expand Up @@ -460,6 +462,35 @@ information is (assuming the package name is +libfoo+) :
locations, `/lib/firmware`, `/usr/lib/firmware`, `/lib/modules`,
`/usr/lib/modules`, and `/usr/share`, which are automatically excluded.

* +LIBFOO_CPE_ID_VENDOR+
This variable is optional. It only must be defined if the package name
does not match what the CPE ID uses for the vendor. By default it's set
to <pkg-name>_project.

* +LIBFOO_CPE_ID_NAME+
This variable is optional. It only must be defined if the package name
does not match what the CPE ID uses for the name. By default it's set
to <pkg-name>.

* +LIBFOO_CPE_ID_VERSION+
This variable is optional. By default it's set to <pkg-version>.

* +LIBFOO_CPE_ID+ is optional, as the package infrastructure hangles the
default case of a single package's Common Product Enumeration (CPE)
identification string. +make cpe-info+ copies all of these into a
+cpe-manifest.csv+ file. To identify a package's possible CPE,
the National Vunerability Database can be searched at
https://nvd.nist.gov/products/cpe/search.

* +LIBFOO_CVE_PATCHED+ is a space-separated list of the package's Common
Vunerability Enumeration (CVE) identification strings. This list
enumerates CVEs which are fixed by patches added in Buildroot. This
allows the CPE reporting to provide additional detail on CVEs which
have been fixed, even if Buildroot is not yet using an updated upstream
release including the fix. This variable is optional. If it is not
defined, the +CVE PATCHED+ field will appear empty in the manifest
file for this package.

The recommended way to define these variables is to use the following
syntax:

Expand Down
2 changes: 2 additions & 0 deletions linux/linux.mk
Expand Up @@ -7,6 +7,8 @@
LINUX_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION))
LINUX_LICENSE = GPL-2.0
LINUX_LICENSE_FILES = COPYING
LINUX_CPE_ID_VENDOR = $(LINUX_NAME)
LINUX_CPE_ID_NAME = $(LINUX_NAME)_kernel

define LINUX_HELP_CMDS
@echo ' linux-menuconfig - Run Linux kernel menuconfig'
Expand Down
4 changes: 4 additions & 0 deletions package/Makefile.in
Expand Up @@ -398,6 +398,10 @@ TARGET_CONFIGURE_ARGS = \

################################################################################

CPE_PREFIX_OS = cpe:2.3:o
CPE_PREFIX_APP = cpe:2.3:a
CPE_SUFFIX = *:*:*:*:*:*:*

ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
NLS_OPTS = --enable-nls
TARGET_NLS_DEPENDENCIES = host-gettext
Expand Down
1 change: 1 addition & 0 deletions package/audit/audit.mk
Expand Up @@ -8,6 +8,7 @@ AUDIT_VERSION = 2.8.2
AUDIT_SITE = http://people.redhat.com/sgrubb/audit
AUDIT_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
AUDIT_LICENSE_FILES = COPYING COPYING.LIB
AUDIT_CPE_ID_VENDOR = kernel

AUDIT_INSTALL_STAGING = YES

Expand Down
1 change: 1 addition & 0 deletions package/bash/bash.mk
Expand Up @@ -12,6 +12,7 @@ BASH_DEPENDENCIES = ncurses readline host-bison \
BASH_CONF_OPTS = --with-installed-readline --without-bash-malloc
BASH_LICENSE = GPL-3.0+
BASH_LICENSE_FILES = COPYING
BASH_CPE_ID_VENDOR = gnu

BASH_CONF_ENV += \
ac_cv_rl_prefix="$(STAGING_DIR)" \
Expand Down
1 change: 1 addition & 0 deletions package/bridge-utils/bridge-utils.mk
Expand Up @@ -10,6 +10,7 @@ BRIDGE_UTILS_SOURCE = bridge-utils-1.6.tar.xz
BRIDGE_UTILS_AUTORECONF = YES
BRIDGE_UTILS_LICENSE = GPL-2.0+
BRIDGE_UTILS_LICENSE_FILES = COPYING
BRIDGE_CPE_ID_VENDOR = kernel

# Avoid using the host's headers. Location is not important as
# required headers will anyway be found from within the sysroot.
Expand Down
1 change: 1 addition & 0 deletions package/bzip2/bzip2.mk
Expand Up @@ -9,6 +9,7 @@ BZIP2_SITE = http://www.bzip.org/$(BZIP2_VERSION)
BZIP2_INSTALL_STAGING = YES
BZIP2_LICENSE = bzip2 license
BZIP2_LICENSE_FILES = LICENSE
BZIP2_CPE_ID_VENDOR = bzip

ifeq ($(BR2_STATIC_LIBS),)
define BZIP2_BUILD_SHARED_CMDS
Expand Down
1 change: 1 addition & 0 deletions package/crda/crda.mk
Expand Up @@ -10,6 +10,7 @@ CRDA_SITE = $(BR2_KERNEL_MIRROR)/software/network/crda
CRDA_DEPENDENCIES = host-pkgconf host-python-pycrypto libnl libgcrypt
CRDA_LICENSE = ISC
CRDA_LICENSE_FILES = LICENSE
CRDA_CPE_ID_VENDOR = kernel

define CRDA_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) \
Expand Down
1 change: 1 addition & 0 deletions package/dbus-glib/dbus-glib.mk
Expand Up @@ -9,6 +9,7 @@ DBUS_GLIB_SITE = http://dbus.freedesktop.org/releases/dbus-glib
DBUS_GLIB_INSTALL_STAGING = YES
DBUS_GLIB_LICENSE = AFL-2.1 or GPL-2.0+
DBUS_GLIB_LICENSE_FILES = COPYING
DBUS_GLIB_CPE_ID_VENDOR = freedesktop

DBUS_GLIB_CONF_ENV = \
ac_cv_have_abstract_sockets=yes \
Expand Down
1 change: 1 addition & 0 deletions package/dbus/dbus.mk
Expand Up @@ -8,6 +8,7 @@ DBUS_VERSION = 1.12.6
DBUS_SITE = https://dbus.freedesktop.org/releases/dbus
DBUS_LICENSE = AFL-2.1 or GPL-2.0+ (library, tools), GPL-2.0+ (tools)
DBUS_LICENSE_FILES = COPYING
DBUS_CPE_ID_VENDOR = freedesktop
DBUS_INSTALL_STAGING = YES

define DBUS_PERMISSIONS
Expand Down