Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | # This package builds the NIS ypbind daemon |
| 2 | # The source package is utils/net/NIS/ypbind-mt |
| 3 | # |
| 4 | require nis.inc |
| 5 | |
| 6 | DESCRIPTION = " \ |
| 7 | Multithreaded NIS bind service (ypbind-mt). \ |
| 8 | ypbind-mt is a complete new implementation of a NIS \ |
| 9 | binding daemon for Linux. It has the following \ |
| 10 | features. Supports ypbind protocol V1 and V2. \ |
| 11 | Uses threads for better response. Supports multiple \ |
| 12 | domain bindings. Supports /var/yp/binding/* file \ |
| 13 | for Linux libc 4/5 and glibc 2.x. Supports a list \ |
| 14 | of known secure NIS server (/etc/yp.conf) Binds to \ |
| 15 | the server which answered as first. \ |
| 16 | \ |
| 17 | This is the final IPv4-only version of ypbind-mt. \ |
| 18 | " |
| 19 | HOMEPAGE = "https://github.com/thkukuk/ypbind-mt/" |
| 20 | DEPENDS = " \ |
| 21 | yp-tools \ |
| 22 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 23 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | DEPENDS:append:libc-musl = " bsd-headers nss" |
| 25 | RDEPENDS:${PN} += "yp-tools" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 26 | |
| 27 | # ypbind-mt now provides all the functionality of ypbind |
| 28 | # and is used in place of it. |
| 29 | PROVIDES += "ypbind" |
| 30 | |
| 31 | SRC_URI = "https://github.com/thkukuk/ypbind-mt/releases/download/v${PV}/${BPN}-${PV}.tar.xz \ |
| 32 | file://ypbind.init \ |
| 33 | file://ypbind.service \ |
| 34 | file://0001-dns_hosts-Fix-build-with-musl.patch \ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 35 | file://0001-Add-configure-time-check-for-gettid-API.patch \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 36 | " |
| 37 | SRC_URI[md5sum] = "7cf89641fdc128d0919207e4b7caaf1d" |
| 38 | SRC_URI[sha256sum] = "0696c0263c4fd48a4ff2ce6c109f05f37aab0f71646d81cb22c7c28591bf80eb" |
| 39 | |
| 40 | inherit systemd update-rc.d |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | SYSTEMD_SERVICE:${PN} = "ypbind.service" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 43 | INITSCRIPT_NAME = "ypbind" |
| 44 | INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ." |
| 45 | |
| 46 | CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" |
| 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | CFLAGS:append = " -I${STAGING_INCDIR}/nss3 -I${STAGING_INCDIR}/nspr" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | do_install:append () { |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 51 | install -d ${D}${sysconfdir}/init.d |
| 52 | install -d ${D}${sysconfdir}/rcS.d |
| 53 | |
| 54 | install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind |
| 55 | |
| 56 | install -d ${D}${systemd_unitdir}/system |
| 57 | install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system |
| 58 | } |
| 59 | |
| 60 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 61 | RPROVIDES:${PN} += "${PN}-systemd" |
| 62 | RREPLACES:${PN} += "${PN}-systemd" |
| 63 | RCONFLICTS:${PN} += "${PN}-systemd" |