summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/nis/ypbind-mt_2.6.bb')
-rw-r--r--meta-networking/recipes-support/nis/ypbind-mt_2.6.bb62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb
new file mode 100644
index 0000000000..1a64e6c2e1
--- /dev/null
+++ b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb
@@ -0,0 +1,62 @@
1# This package builds the NIS ypbind daemon
2# The source package is utils/net/NIS/ypbind-mt
3#
4require nis.inc
5
6DESCRIPTION = " \
7Multithreaded NIS bind service (ypbind-mt). \
8ypbind-mt is a complete new implementation of a NIS \
9binding daemon for Linux. It has the following \
10features. Supports ypbind protocol V1 and V2. \
11Uses threads for better response. Supports multiple \
12domain bindings. Supports /var/yp/binding/* file \
13for Linux libc 4/5 and glibc 2.x. Supports a list \
14of known secure NIS server (/etc/yp.conf) Binds to \
15the server which answered as first. \
16\
17This is the final IPv4-only version of ypbind-mt. \
18"
19HOMEPAGE = "https://github.com/thkukuk/ypbind-mt/"
20DEPENDS = " \
21 yp-tools \
22 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
23 "
24DEPENDS_append_libc-musl = " bsd-headers nss"
25RDEPENDS_${PN} += "yp-tools"
26
27# ypbind-mt now provides all the functionality of ypbind
28# and is used in place of it.
29PROVIDES += "ypbind"
30
31SRC_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 \
35 "
36SRC_URI[md5sum] = "7cf89641fdc128d0919207e4b7caaf1d"
37SRC_URI[sha256sum] = "0696c0263c4fd48a4ff2ce6c109f05f37aab0f71646d81cb22c7c28591bf80eb"
38
39inherit systemd update-rc.d
40
41SYSTEMD_SERVICE_${PN} = "ypbind.service"
42INITSCRIPT_NAME = "ypbind"
43INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ."
44
45CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true"
46
47CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/nss3"
48
49do_install_append () {
50 install -d ${D}${sysconfdir}/init.d
51 install -d ${D}${sysconfdir}/rcS.d
52
53 install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind
54
55 install -d ${D}${systemd_unitdir}/system
56 install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
57}
58
59
60RPROVIDES_${PN} += "${PN}-systemd"
61RREPLACES_${PN} += "${PN}-systemd"
62RCONFLICTS_${PN} += "${PN}-systemd"