Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [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 | HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html" |
| 18 | DEPENDS = "yp-tools ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
| 19 | PROVIDES += "ypbind" |
| 20 | |
| 21 | PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools" |
| 22 | |
| 23 | SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \ |
| 24 | file://ypbind.init \ |
| 25 | file://ypbind.service \ |
| 26 | " |
| 27 | SRC_URI[md5sum] = "54e2040d8266ae7d302d081ca310c8a8" |
| 28 | SRC_URI[sha256sum] = "dc2f7d97c94dcab0acfdcd115cd8b464eb8c427e4bb0fe68404ae7465f517cd3" |
| 29 | |
| 30 | inherit systemd update-rc.d |
| 31 | |
| 32 | SYSTEMD_SERVICE_${PN} = "ypbind.service" |
| 33 | INITSCRIPT_NAME = "ypbind" |
| 34 | INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ." |
| 35 | |
| 36 | CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" |
| 37 | |
| 38 | EXTRA_OECONF = "PKG_CONFIG_PATH='${STAGING_LIBDIR}/yp-nis/pkgconfig/'" |
| 39 | |
| 40 | do_install_append () { |
| 41 | install -d ${D}${sysconfdir}/init.d |
| 42 | install -d ${D}${sysconfdir}/rcS.d |
| 43 | |
| 44 | install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind |
| 45 | |
| 46 | install -d ${D}${systemd_unitdir}/system |
| 47 | install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system |
| 48 | } |
| 49 | |
| 50 | |
| 51 | RPROVIDES_${PN} += "${PN}-systemd" |
| 52 | RREPLACES_${PN} += "${PN}-systemd" |
| 53 | RCONFLICTS_${PN} += "${PN}-systemd" |