diff options
Diffstat (limited to 'meta-networking/recipes-support/nis/yp-tools_4.2.2.bb')
-rw-r--r-- | meta-networking/recipes-support/nis/yp-tools_4.2.2.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb b/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb new file mode 100644 index 000000000..a3f0a7698 --- /dev/null +++ b/meta-networking/recipes-support/nis/yp-tools_4.2.2.bb | |||
@@ -0,0 +1,46 @@ | |||
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 | SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \ | ||
15 | file://domainname.service \ | ||
16 | file://0001-ypbind3_binding_dup.c-Include-string.h-for-strdup-de.patch \ | ||
17 | file://0002-yp_dump_bindings.c-Include-string.h-for-memset.patch \ | ||
18 | " | ||
19 | SRC_URI[md5sum] = "fb4a8bffb44ae5d3390351d67f320ef3" | ||
20 | SRC_URI[sha256sum] = "137f19a986382b275bf4a2b1a69eb26689d6f4ac056ddaa21784d6b80eb98faa" | ||
21 | |||
22 | DEPENDS = "libtirpc libnsl2" | ||
23 | |||
24 | inherit autotools systemd | ||
25 | SYSTEMD_SERVICE_${PN} = "domainname.service" | ||
26 | |||
27 | RPROVIDES_${PN} += "${PN}-systemd" | ||
28 | RREPLACES_${PN} += "${PN}-systemd" | ||
29 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
30 | |||
31 | CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true" | ||
32 | |||
33 | EXTRA_OECONF = " \ | ||
34 | --disable-rpath --disable-domainname \ | ||
35 | " | ||
36 | CFLAGS_append_libc-musl = " -Wno-error=\#warnings" | ||
37 | |||
38 | FILES_${PN} += " ${libdir}/yp-nis/*.so.*.* ${libdir}/yp-nis/pkgconfig/" | ||
39 | FILES_${PN}-dbg += " ${libdir}/yp-nis/.debug" | ||
40 | FILES_${PN}-dev += " ${libdir}/yp-nis/*.so ${libdir}/yp-nis/*.so.[12] ${libdir}/yp-nis/*.la" | ||
41 | FILES_${PN}-staticdev += " ${libdir}/yp-nis/*.a" | ||
42 | |||
43 | do_install_append() { | ||
44 | install -d ${D}${systemd_unitdir}/system | ||
45 | install -m 0644 ${WORKDIR}/domainname.service ${D}${systemd_unitdir}/system | ||
46 | } | ||