kea_2.6.1.bb 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=618093ea9de92c70a115268c1d53421f"
  7. DEPENDS = "boost log4cplus openssl"
  8. SRC_URI = "http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \
  9. file://kea-dhcp4.service \
  10. file://kea-dhcp6.service \
  11. file://kea-dhcp-ddns.service \
  12. file://kea-dhcp4-server \
  13. file://kea-dhcp6-server \
  14. file://kea-dhcp-ddns-server \
  15. file://fix-multilib-conflict.patch \
  16. file://fix_pid_keactrl.patch \
  17. file://0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch \
  18. file://0001-Replace-Name-NameString-with-vector-of-uint8_t.patch \
  19. file://0002-Fix-unittests-Typo-in-Name-Name-append-to-ndata_-not.patch \
  20. "
  21. SRC_URI[sha256sum] = "d2ce14a91c2e248ad2876e29152d647bcc5e433bc68dafad0ee96ec166fcfad1"
  22. inherit autotools systemd update-rc.d upstream-version-is-even
  23. INITSCRIPT_NAME = "kea-dhcp4-server"
  24. INITSCRIPT_PARAMS = "defaults 30"
  25. SYSTEMD_SERVICE:${PN} = "kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service"
  26. SYSTEMD_AUTO_ENABLE = "disable"
  27. DEBUG_OPTIMIZATION:remove:mips = " -Og"
  28. DEBUG_OPTIMIZATION:append:mips = " -O"
  29. BUILD_OPTIMIZATION:remove:mips = " -Og"
  30. BUILD_OPTIMIZATION:append:mips = " -O"
  31. DEBUG_OPTIMIZATION:remove:mipsel = " -Og"
  32. DEBUG_OPTIMIZATION:append:mipsel = " -O"
  33. BUILD_OPTIMIZATION:remove:mipsel = " -Og"
  34. BUILD_OPTIMIZATION:append:mipsel = " -O"
  35. CXXFLAGS:remove = "-fvisibility-inlines-hidden"
  36. EXTRA_OECONF = "--with-boost-libs=-lboost_system \
  37. --with-log4cplus=${STAGING_DIR_TARGET}${prefix} \
  38. --with-openssl=${STAGING_DIR_TARGET}${prefix}"
  39. do_configure:prepend() {
  40. # replace abs_top_builddir to avoid introducing the build path
  41. # don't expand the abs_top_builddir on the target as the abs_top_builddir is meanlingless on the target
  42. find ${S} -type f -name *.sh.in | xargs sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g"
  43. sed -i "s:@abs_top_builddir@:@abs_top_builddir_placeholder@:g" ${S}/src/bin/admin/kea-admin.in
  44. }
  45. # patch out build host paths for reproducibility
  46. do_compile:prepend:class-target() {
  47. sed -i -e "s,${WORKDIR},,g" ${B}/config.report
  48. }
  49. do_install:append() {
  50. install -d ${D}${sysconfdir}/init.d
  51. install -d ${D}${systemd_system_unitdir}
  52. install -m 0644 ${UNPACKDIR}/kea-dhcp*service ${D}${systemd_system_unitdir}
  53. install -m 0755 ${UNPACKDIR}/kea-*-server ${D}${sysconfdir}/init.d
  54. sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \
  55. -e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \
  56. ${D}${systemd_system_unitdir}/kea-dhcp*service ${D}${sbindir}/keactrl
  57. sed -i "s:${B}/../${BPN}-${PV}:@abs_top_builddir_placeholder@:g" ${D}${sbindir}/kea-admin
  58. }
  59. do_install:append() {
  60. rm -rf "${D}${localstatedir}"
  61. }
  62. CONFFILES:${PN} = "${sysconfdir}/kea/keactrl.conf"
  63. FILES:${PN}-staticdev += "${libdir}/kea/hooks/*.a ${libdir}/hooks/*.a"
  64. FILES:${PN} += "${libdir}/hooks/*.so"
  65. PARALLEL_MAKEINST = ""