rpcbind_0.2.4.bb 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. SUMMARY = "Universal Addresses to RPC Program Number Mapper"
  2. DESCRIPTION = "The rpcbind utility is a server that converts RPC \
  3. program numbers into universal addresses."
  4. SECTION = "console/network"
  5. HOMEPAGE = "http://sourceforge.net/projects/rpcbind/"
  6. BUGTRACKER = "http://sourceforge.net/tracker/?group_id=201237&atid=976751"
  7. DEPENDS = "libtirpc quota"
  8. LICENSE = "BSD"
  9. LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
  10. file://src/rpcinfo.c;beginline=1;endline=27;md5=f8a8cd2cb25ac5aa16767364fb0e3c24"
  11. SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
  12. file://init.d \
  13. file://remove-sys-queue.patch \
  14. ${UCLIBCPATCHES} \
  15. ${MUSLPATCHES} \
  16. file://rpcbind.conf \
  17. file://rpcbind.socket \
  18. file://rpcbind.service \
  19. "
  20. MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
  21. UCLIBCPATCHES ?= ""
  22. MUSLPATCHES ?= ""
  23. SRC_URI[md5sum] = "cf10cd41ed8228fc54c316191c1f07fe"
  24. SRC_URI[sha256sum] = "074a9a530dc7c11e0d905aa59bcb0847c009313f02e98d3d798aa9568f414c66"
  25. inherit autotools update-rc.d systemd pkgconfig
  26. PACKAGECONFIG ??= "tcp-wrappers"
  27. PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
  28. INITSCRIPT_NAME = "rpcbind"
  29. INITSCRIPT_PARAMS = "start 12 2 3 4 5 . stop 60 0 1 6 ."
  30. SYSTEMD_SERVICE_${PN} = "rpcbind.service"
  31. inherit useradd
  32. USERADD_PACKAGES = "${PN}"
  33. USERADD_PARAM_${PN} = "--system --no-create-home --home-dir / \
  34. --shell /bin/false --user-group rpc"
  35. PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
  36. PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/, \
  37. --without-systemdsystemunitdir, \
  38. systemd \
  39. "
  40. EXTRA_OECONF += " --enable-warmstarts --with-rpcuser=rpc"
  41. do_install_append () {
  42. mv ${D}${bindir} ${D}${sbindir}
  43. install -d ${D}${sysconfdir}/init.d
  44. sed -e 's,/etc/,${sysconfdir}/,g' \
  45. -e 's,/sbin/,${sbindir}/,g' \
  46. ${WORKDIR}/init.d > ${D}${sysconfdir}/init.d/rpcbind
  47. chmod 0755 ${D}${sysconfdir}/init.d/rpcbind
  48. install -m 0755 ${WORKDIR}/rpcbind.conf ${D}${sysconfdir}
  49. install -d ${D}${systemd_unitdir}/system
  50. install -m 0644 ${WORKDIR}/rpcbind.socket ${D}${systemd_unitdir}/system
  51. install -m 0644 ${WORKDIR}/rpcbind.service ${D}${systemd_unitdir}/system
  52. sed -i -e 's,@SBINDIR@,${sbindir},g' \
  53. -e 's,@SYSCONFDIR@,${sysconfdir},g' \
  54. ${D}${systemd_unitdir}/system/rpcbind.service
  55. }