diff options
Diffstat (limited to 'meta/recipes-connectivity/kea/kea_2.0.1.bb')
| -rw-r--r-- | meta/recipes-connectivity/kea/kea_2.0.1.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/kea/kea_2.0.1.bb b/meta/recipes-connectivity/kea/kea_2.0.1.bb new file mode 100644 index 0000000000..900ceb62e4 --- /dev/null +++ b/meta/recipes-connectivity/kea/kea_2.0.1.bb | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | SUMMARY = "ISC Kea DHCP Server" | ||
| 2 | DESCRIPTION = "Kea is the next generation of DHCP software developed by ISC. It supports both DHCPv4 and DHCPv6 protocols along with their extensions, e.g. prefix delegation and dynamic updates to DNS." | ||
| 3 | HOMEPAGE = "http://kea.isc.org" | ||
| 4 | SECTION = "connectivity" | ||
| 5 | LICENSE = "MPL-2.0 & Apache-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=07b7477a1d815a4aacab73b1531f577a" | ||
| 7 | |||
| 8 | DEPENDS = "boost log4cplus openssl" | ||
| 9 | |||
| 10 | SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \ | ||
| 11 | file://kea-dhcp4.service \ | ||
| 12 | file://kea-dhcp6.service \ | ||
| 13 | file://kea-dhcp-ddns.service \ | ||
| 14 | file://kea-dhcp4-server \ | ||
| 15 | file://kea-dhcp6-server \ | ||
| 16 | file://kea-dhcp-ddns-server \ | ||
| 17 | file://fix-multilib-conflict.patch \ | ||
| 18 | file://fix_pid_keactrl.patch \ | ||
| 19 | file://0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch \ | ||
| 20 | " | ||
| 21 | SRC_URI[sha256sum] = "f50bb9a954e314316b4033a175dc807496bb9c1754110bd92a21c165a9e84c57" | ||
| 22 | |||
| 23 | inherit autotools systemd update-rc.d upstream-version-is-even | ||
| 24 | |||
| 25 | INITSCRIPT_NAME = "kea-dhcp4-server" | ||
| 26 | INITSCRIPT_PARAMS = "defaults 30" | ||
| 27 | |||
| 28 | SYSTEMD_SERVICE:${PN} = "kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service" | ||
| 29 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 30 | |||
| 31 | DEBUG_OPTIMIZATION:remove:mips = " -Og" | ||
| 32 | DEBUG_OPTIMIZATION:append:mips = " -O" | ||
| 33 | BUILD_OPTIMIZATION:remove:mips = " -Og" | ||
| 34 | BUILD_OPTIMIZATION:append:mips = " -O" | ||
| 35 | |||
| 36 | DEBUG_OPTIMIZATION:remove:mipsel = " -Og" | ||
| 37 | DEBUG_OPTIMIZATION:append:mipsel = " -O" | ||
| 38 | BUILD_OPTIMIZATION:remove:mipsel = " -Og" | ||
| 39 | BUILD_OPTIMIZATION:append:mipsel = " -O" | ||
| 40 | |||
| 41 | EXTRA_OECONF = "--with-boost-libs=-lboost_system \ | ||
| 42 | --with-log4cplus=${STAGING_DIR_TARGET}${prefix} \ | ||
| 43 | --with-openssl=${STAGING_DIR_TARGET}${prefix}" | ||
| 44 | |||
| 45 | do_configure:prepend() { | ||
| 46 | # replace abs_top_builddir to avoid introducing the build path | ||
| 47 | # don't expand the abs_top_builddir on the target as the abs_top_builddir is meanlingless on the target | ||
| 48 | find ${S} -type f -name *.sh.in | xargs sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g" | ||
| 49 | sed -i "s:@abs_top_srcdir@:@abs_top_srcdir_placeholder@:g" ${S}/src/bin/admin/kea-admin.in | ||
| 50 | } | ||
| 51 | |||
| 52 | # patch out build host paths for reproducibility | ||
| 53 | do_compile:prepend:class-target() { | ||
| 54 | sed -i -e "s,${WORKDIR},,g" ${B}/config.report | ||
| 55 | } | ||
| 56 | |||
| 57 | do_install:append() { | ||
| 58 | install -d ${D}${sysconfdir}/init.d | ||
| 59 | install -d ${D}${systemd_system_unitdir} | ||
| 60 | |||
| 61 | install -m 0644 ${WORKDIR}/kea-dhcp*service ${D}${systemd_system_unitdir} | ||
| 62 | install -m 0755 ${WORKDIR}/kea-*-server ${D}${sysconfdir}/init.d | ||
| 63 | sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \ | ||
| 64 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
| 65 | ${D}${systemd_system_unitdir}/kea-dhcp*service ${D}${sbindir}/keactrl | ||
| 66 | } | ||
| 67 | |||
| 68 | do_install:append() { | ||
| 69 | rm -rf "${D}${localstatedir}" | ||
| 70 | } | ||
| 71 | |||
| 72 | CONFFILES:${PN} = "${sysconfdir}/kea/keactrl.conf" | ||
| 73 | |||
| 74 | FILES:${PN}-staticdev += "${libdir}/kea/hooks/*.a ${libdir}/hooks/*.a" | ||
| 75 | FILES:${PN} += "${libdir}/hooks/*.so" | ||
| 76 | |||
| 77 | PARALLEL_MAKEINST = "" | ||
