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 | This is the final IPv4-only version of ypbind-mt. \ |
| 18 | " |
| 19 | HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html" |
| 20 | DEPENDS = " \ |
| 21 | yp-tools \ |
| 22 | ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
| 23 | " |
| 24 | RDEPENDS_${PN} += "yp-tools" |
| 25 | |
| 26 | # ypbind-mt now provides all the functionality of ypbind |
| 27 | # and is used in place of it. |
| 28 | PROVIDES += "ypbind" |
| 29 | |
| 30 | SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \ |
| 31 | file://ypbind.init \ |
| 32 | file://ypbind.service \ |
| 33 | " |
| 34 | SRC_URI[md5sum] = "094088c0e282fa7f3b3dd6cc51d0a4e1" |
| 35 | SRC_URI[sha256sum] = "1930ce19f6ccfe10400f3497b31867f71690d2bcd3f5b575199fa915559b7746" |
| 36 | |
| 37 | inherit systemd update-rc.d |
| 38 | |
| 39 | SYSTEMD_SERVICE_${PN} = "ypbind.service" |
| 40 | INITSCRIPT_NAME = "ypbind" |
| 41 | INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ." |
| 42 | |
| 43 | CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" |
| 44 | |
| 45 | do_install_append () { |
| 46 | install -d ${D}${sysconfdir}/init.d |
| 47 | install -d ${D}${sysconfdir}/rcS.d |
| 48 | |
| 49 | install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind |
| 50 | |
| 51 | install -d ${D}${systemd_unitdir}/system |
| 52 | install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system |
| 53 | } |
| 54 | |
| 55 | |
| 56 | RPROVIDES_${PN} += "${PN}-systemd" |
| 57 | RREPLACES_${PN} += "${PN}-systemd" |
| 58 | RCONFLICTS_${PN} += "${PN}-systemd" |