summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/openflow/openflow.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-protocols/openflow/openflow.inc')
-rw-r--r--meta-networking/recipes-protocols/openflow/openflow.inc60
1 files changed, 0 insertions, 60 deletions
diff --git a/meta-networking/recipes-protocols/openflow/openflow.inc b/meta-networking/recipes-protocols/openflow/openflow.inc
deleted file mode 100644
index 7b404f540..000000000
--- a/meta-networking/recipes-protocols/openflow/openflow.inc
+++ /dev/null
@@ -1,60 +0,0 @@
1SUMMARY = "OpenFlow communications protocol"
2DESCRIPTION = "\
3Open standard that enables researchers to run experimental protocols in \
4contained networks. OpenFlow is a communications interface between \
5control and forwarding planes of a software-defined networking architecture.\
6"
7HOMEPAGE = "http://www.openflow.org"
8
9SECTION = "net"
10LICENSE = "GPL-2.0-only"
11
12LIC_FILES_CHKSUM = "file://COPYING;md5=e870c934e2c3d6ccf085fd7cf0a1e2e2"
13
14SRC_URI = "git://github.com/mininet/openflow;protocol=https;branch=master"
15
16CVE_STATUS[CVE-2015-1611] = "not-applicable-config: Not referred to our implementation of openflow"
17CVE_STATUS[CVE-2015-1612] = "not-applicable-config: Not referred to our implementation of openflow"
18CVE_STATUS[CVE-2018-1078] = "cpe-incorrect: This CVE is not for this product but cve-check assumes it is \
19because two CPE collides when checking the NVD database"
20
21DEPENDS = "virtual/libc"
22
23PACKAGECONFIG ??= ""
24PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl openssl-native, libssl"
25
26EXTRA_OECONF += " \
27 KARCH=${TARGET_ARCH} \
28 ${@bb.utils.contains('PACKAGECONFIG', 'openssl', 'SSL_LIBS="-lssl -lcrypto"', '', d)} \
29 "
30
31S = "${WORKDIR}/git"
32
33inherit autotools-brokensep pkgconfig
34
35do_configure:prepend() {
36 ./boot.sh
37}
38
39do_install:append() {
40 # Remove /var/run as it is created on startup
41 rm -rf ${D}${localstatedir}/run
42
43 # /var/log/openflow needs to be created in runtime. Use rmdir to catch if
44 # upstream stops creating /var/log/openflow, or adds something else in
45 # /var/log.
46 rmdir ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/log
47 rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
48
49 # Create /var/log/openflow in runtime.
50 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
51 install -d ${D}${nonarch_libdir}/tmpfiles.d
52 echo "d ${localstatedir}/log/${BPN} - - - -" > ${D}${nonarch_libdir}/tmpfiles.d/${BPN}.conf
53 fi
54 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'sysvinit', d)}" ]; then
55 install -d ${D}${sysconfdir}/default/volatiles
56 echo "d root root 0755 ${localstatedir}/log/${BPN} none" > ${D}${sysconfdir}/default/volatiles/99_${BPN}
57 fi
58}
59
60FILES:${PN} += "${nonarch_libdir}/tmpfiles.d"