dhcpcd_10.2.2.bb 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. SECTION = "console/network"
  2. SUMMARY = "dhcpcd - a DHCP client"
  3. DESCRIPTION = "dhcpcd runs on your machine and silently configures your \
  4. computer to work on the attached networks without trouble \
  5. and mostly without configuration."
  6. HOMEPAGE = "http://roy.marples.name/projects/dhcpcd/"
  7. LICENSE = "BSD-2-Clause"
  8. LIC_FILES_CHKSUM = "file://LICENSE;md5=4dda5beb433a809f2e0aeffbf9da3d91"
  9. SRC_URI = "git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=master \
  10. file://0001-remove-INCLUDEDIR-to-prevent-build-issues.patch \
  11. file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
  12. file://dhcpcd.service \
  13. file://dhcpcd@.service \
  14. file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \
  15. "
  16. SRCREV = "f6983c18dbf7989f43a2838beeaf62a54c53ff1d"
  17. S = "${WORKDIR}/git"
  18. # Doesn't use automake so we can't do out-of-tree builds
  19. inherit pkgconfig autotools-brokensep systemd useradd
  20. SYSTEMD_SERVICE:${PN} = "dhcpcd.service"
  21. PACKAGECONFIG ?= "udev ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
  22. PACKAGECONFIG[udev] = "--with-udev,--without-udev,udev,udev"
  23. PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
  24. # ntp conflicts with chrony
  25. PACKAGECONFIG[ntp] = "--with-hook=ntp, , ,ntp"
  26. PACKAGECONFIG[chrony] = "--with-hook=ntp, , ,chrony"
  27. PACKAGECONFIG[ypbind] = "--with-eghook=yp, , ,ypbind-mt"
  28. # add option to override DBDIR location
  29. DBDIR ?= "${localstatedir}/lib/${BPN}"
  30. EXTRA_OECONF = "--enable-ipv4 \
  31. --dbdir=${DBDIR} \
  32. --sbindir=${base_sbindir} \
  33. --runstatedir=/run \
  34. --enable-privsep \
  35. --privsepuser=dhcpcd \
  36. --with-hooks \
  37. --with-eghooks \
  38. "
  39. USERADD_PACKAGES = "${PN}"
  40. USERADD_PARAM:${PN} = "--system -d ${DBDIR} -M -s /bin/false -U dhcpcd"
  41. # This isn't autoconf but is instead a configure script that tries to look like
  42. # autoconf, so just run it directly.
  43. do_configure() {
  44. oe_runconf
  45. }
  46. do_install:append () {
  47. # install systemd unit files
  48. install -d ${D}${systemd_system_unitdir}
  49. install -m 0644 ${UNPACKDIR}/dhcpcd*.service ${D}${systemd_system_unitdir}
  50. chmod 700 ${D}${DBDIR}
  51. chown dhcpcd:dhcpcd ${D}${DBDIR}
  52. }
  53. FILES:${PN}-dbg += "${libdir}/dhcpcd/dev/.debug"