Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | # This package builds tools to manage NIS |
| 2 | # The source package is utils/net/NIS/yp-tools |
| 3 | # |
| 4 | require nis.inc |
| 5 | |
| 6 | SUMMARY = "NIS client programs" |
| 7 | DESCRIPTION = " \ |
| 8 | Network Information Service tools. \ |
| 9 | This package contains ypcat, ypmatch, ypset, \ |
| 10 | ypwhich, yppasswd, domainname, nisdomainname \ |
| 11 | and ypdomainname. \ |
| 12 | " |
| 13 | |
| 14 | PNBLACKLIST[yp-tools] ?= "BROKEN: fails to build for qemuarm." |
| 15 | |
| 16 | SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \ |
| 17 | file://domainname.service \ |
| 18 | file://yp-tools-ipv4-ipv6-Provide-an-in-place-version-of-mapv4v6addr.patch \ |
| 19 | " |
| 20 | SRC_URI[md5sum] = "acebeecc11a73fb8097503670344834c" |
| 21 | SRC_URI[sha256sum] = "812be817df3d4c25813552be336c6c6ad5aedaf65611b81af3ad9f98fb3c2e50" |
| 22 | |
| 23 | DEPENDS = "libtirpc" |
| 24 | |
| 25 | inherit autotools systemd |
| 26 | SYSTEMD_SERVICE_${PN} = "domainname.service" |
| 27 | |
| 28 | RPROVIDES_${PN} += "${PN}-systemd" |
| 29 | RREPLACES_${PN} += "${PN}-systemd" |
| 30 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 31 | |
| 32 | CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true" |
| 33 | |
| 34 | EXTRA_OECONF = " \ |
| 35 | --disable-rpath \ |
| 36 | --libdir=${libdir}/yp-nis/ \ |
| 37 | --includedir=${includedir}/yp-nis/ \ |
| 38 | " |
| 39 | |
| 40 | FILES_${PN} += " ${libdir}/yp-nis/*.so.*.* ${libdir}/yp-nis/pkgconfig/" |
| 41 | FILES_${PN}-dbg += " ${libdir}/yp-nis/.debug" |
| 42 | FILES_${PN}-dev += " ${libdir}/yp-nis/*.so ${libdir}/yp-nis/*.so.[12] ${libdir}/yp-nis/*.la" |
| 43 | FILES_${PN}-staticdev += " ${libdir}/yp-nis/*.a" |
| 44 | |
| 45 | do_install_append() { |
| 46 | install -d ${D}${systemd_unitdir}/system |
| 47 | install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system |
| 48 | } |