summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/nis/files/libdl.patch12
-rw-r--r--meta-networking/recipes-support/nis/files/no-selinux.patch16
-rw-r--r--meta-networking/recipes-support/nis/nis.inc2
-rw-r--r--meta-networking/recipes-support/nis/yp-tools_2.14.bb (renamed from meta-networking/recipes-support/nis/yp-tools_2.12.bb)23
-rw-r--r--meta-networking/recipes-support/nis/ypbind-mt_1.38.bb (renamed from meta-networking/recipes-support/nis/ypbind-mt_1.36.bb)37
5 files changed, 33 insertions, 57 deletions
diff --git a/meta-networking/recipes-support/nis/files/libdl.patch b/meta-networking/recipes-support/nis/files/libdl.patch
deleted file mode 100644
index 605af319f..000000000
--- a/meta-networking/recipes-support/nis/files/libdl.patch
+++ /dev/null
@@ -1,12 +0,0 @@
1--- pwdutils-2.6/configure.in.orig 2005-04-19 20:22:36.603052192 -0700
2+++ pwdutils-2.6/configure.in 2005-04-19 21:09:45.308023672 -0700
3@@ -178,6 +178,9 @@
4 AC_CHECK_LIB(ldap, main, LDAP_LIBS="-lldap $LDAP_LIBS" found_ldap_lib=yes,,$LDAP_LIBS)
5 fi
6
7+ dnl this always needs dl
8+ AC_CHECK_LIB(dl, dlopen, LDAP_LIBS="$LDAP_LIBS -ldl")
9+
10 if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \); then
11 AC_CHECK_LIB(ldap50, main, LDAP_LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4" found_ldap_lib=yes need_pthread=true,, -lpthread)
12 fi
diff --git a/meta-networking/recipes-support/nis/files/no-selinux.patch b/meta-networking/recipes-support/nis/files/no-selinux.patch
deleted file mode 100644
index 71da3e393..000000000
--- a/meta-networking/recipes-support/nis/files/no-selinux.patch
+++ /dev/null
@@ -1,16 +0,0 @@
1--- pwdutils-2.6/lib/copy_xattr.c.orig 2005-04-16 17:15:52.916660880 -0700
2+++ pwdutils-2.6/lib/copy_xattr.c 2005-04-16 17:18:10.345768480 -0700
3@@ -127,8 +127,11 @@
4
5 if (lsetxattr (to, name, value, size, 0) != 0)
6 {
7- if (strcmp (name, "security.selinux") == 0 &&
8- is_selinux_enabled() == 0)
9+ if (strcmp (name, "security.selinux") == 0
10+#if defined(WITH_SELINUX)
11+ && is_selinux_enabled() == 0
12+#endif
13+ )
14 fprintf (stderr,
15 _("SELinux not enabled, ignore attribute %s for `%s'.\n"),
16 name, to);
diff --git a/meta-networking/recipes-support/nis/nis.inc b/meta-networking/recipes-support/nis/nis.inc
index 075d2756d..eaff94961 100644
--- a/meta-networking/recipes-support/nis/nis.inc
+++ b/meta-networking/recipes-support/nis/nis.inc
@@ -7,7 +7,7 @@ DESCRIPTION = "NIS Server and Tools"
7HOMEPAGE = "http://www.linux-nis.org/nis/" 7HOMEPAGE = "http://www.linux-nis.org/nis/"
8SECTION = "console/network" 8SECTION = "console/network"
9LICENSE = "GPL-2.0" 9LICENSE = "GPL-2.0"
10LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 10LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
11 11
12inherit autotools gettext pkgconfig 12inherit autotools gettext pkgconfig
13 13
diff --git a/meta-networking/recipes-support/nis/yp-tools_2.12.bb b/meta-networking/recipes-support/nis/yp-tools_2.14.bb
index 001784550..8c6837bac 100644
--- a/meta-networking/recipes-support/nis/yp-tools_2.12.bb
+++ b/meta-networking/recipes-support/nis/yp-tools_2.14.bb
@@ -1,29 +1,32 @@
1# This package builds tools to manage NIS 1# This package builds tools to manage NIS
2# The source package is utils/net/NIS/yp-tools 2# The source package is utils/net/NIS/yp-tools
3# 3#
4PR = "r3" 4require nis.inc
5DESCRIPTION="\ 5
6SUMMARY = "NIS client programs"
7DESCRIPTION = " \
6Network Information Service tools. \ 8Network Information Service tools. \
7This package contains ypcat, ypmatch, ypset, \ 9This package contains ypcat, ypmatch, ypset, \
8ypwhich, yppasswd, domainname, nisdomainname \ 10ypwhich, yppasswd, domainname, nisdomainname \
9and ypdomainname." 11and ypdomainname. \
12\
13This is the final IPv4-only version of yp-tools. \
14"
10 15
11require nis.inc
12SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \ 16SRC_URI = "http://www.linux-nis.org/download/yp-tools/${BP}.tar.bz2 \
13 file://domainname.service \ 17 file://domainname.service \
14" 18"
15 19SRC_URI[md5sum] = "ba1f121c17e3ad65368be173b977cd13"
16SRC_URI[md5sum] = "ce1e06d86caa285fa8cd76fdf103f51e" 20SRC_URI[sha256sum] = "d01f70fadc643a55107a0edc47c6be99d0306bcc4f66df56f65e74238b0124c9"
17SRC_URI[sha256sum] = "6ae8321666eea7837da343eea90ea30273fb74943ad111d5a4befd2afb252063"
18
19CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true"
20 21
21inherit systemd 22inherit systemd
23SYSTEMD_SERVICE_${PN} = "domainname.service"
22 24
23RPROVIDES_${PN} += "${PN}-systemd" 25RPROVIDES_${PN} += "${PN}-systemd"
24RREPLACES_${PN} += "${PN}-systemd" 26RREPLACES_${PN} += "${PN}-systemd"
25RCONFLICTS_${PN} += "${PN}-systemd" 27RCONFLICTS_${PN} += "${PN}-systemd"
26SYSTEMD_SERVICE_${PN} = "domainname.service" 28
29CACHED_CONFIGUREVARS += "ac_cv_prog_STRIP=/bin/true"
27 30
28do_install_append() { 31do_install_append() {
29 install -d ${D}${systemd_unitdir}/system 32 install -d ${D}${systemd_unitdir}/system
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb
index 35ef16a89..f7e6b43d9 100644
--- a/meta-networking/recipes-support/nis/ypbind-mt_1.36.bb
+++ b/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb
@@ -1,8 +1,9 @@
1# This package builds the NIS ypbind daemon 1# This package builds the NIS ypbind daemon
2# The source package is utils/net/NIS/ypbind-mt 2# The source package is utils/net/NIS/ypbind-mt
3# 3#
4PR = "r3" 4require nis.inc
5DESCRIPTION="\ 5
6DESCRIPTION = " \
6Multithreaded NIS bind service (ypbind-mt). \ 7Multithreaded NIS bind service (ypbind-mt). \
7ypbind-mt is a complete new implementation of a NIS \ 8ypbind-mt is a complete new implementation of a NIS \
8binding daemon for Linux. It has the following \ 9binding daemon for Linux. It has the following \
@@ -11,23 +12,28 @@ Uses threads for better response. Supports multiple \
11domain bindings. Supports /var/yp/binding/* file \ 12domain bindings. Supports /var/yp/binding/* file \
12for Linux libc 4/5 and glibc 2.x. Supports a list \ 13for Linux libc 4/5 and glibc 2.x. Supports a list \
13of known secure NIS server (/etc/yp.conf) Binds to \ 14of known secure NIS server (/etc/yp.conf) Binds to \
14the server which answered as first." 15the server which answered as first. \
15HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html" 16\
16 17This is the final IPv4-only version of ypbind-mt. \
17require nis.inc 18"
18 19HOMEPAGE = "http://www.linux-nis.org/nis/ypbind-mt/index.html"
19LIC_FILES_CHKSUM = "file://COPYING;md5=082c9a0886c7c3db1bc862b5b62ffe08" 20DEPENDS = "yp-tools"
21# ypbind-mt now provides all the functionality of ypbind
22# and is used in place of it.
23PROVIDES += "ypbind"
20 24
21SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \ 25SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
22 file://ypbind-yocto.init \ 26 file://ypbind-yocto.init \
23 file://ypbind.service \ 27 file://ypbind.service \
24" 28"
25SRC_URI[md5sum] = "135834db97d78ff6d79fdee2810b4056" 29SRC_URI[md5sum] = "094088c0e282fa7f3b3dd6cc51d0a4e1"
26SRC_URI[sha256sum] = "0eff76c1849f4b38ea1a60280d8397c4240369c641fe5402ce57edf1a90958c7" 30SRC_URI[sha256sum] = "1930ce19f6ccfe10400f3497b31867f71690d2bcd3f5b575199fa915559b7746"
27 31
28# ypbind-mt now provides all the functionality of ypbind 32inherit systemd update-rc.d
29# and is used in place of it. 33
30PROVIDES += "ypbind" 34SYSTEMD_SERVICE_${PN} = "ypbind.service"
35INITSCRIPT_NAME = "ypbind"
36INITSCRIPT_PARAMS = "start 44 3 5 . stop 70 0 1 2 6 ."
31 37
32CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true" 38CACHED_CONFIGUREVARS = "ac_cv_prog_STRIP=/bin/true"
33 39
@@ -37,16 +43,11 @@ do_install_append () {
37 43
38 install -m 0755 ${WORKDIR}/ypbind-yocto.init ${D}${sysconfdir}/init.d/ypbind 44 install -m 0755 ${WORKDIR}/ypbind-yocto.init ${D}${sysconfdir}/init.d/ypbind
39 45
40 # TODO, use update-rc.d
41 ln -s ../init.d/ypbind ${D}${sysconfdir}/rcS.d/S44ypbind
42
43 install -d ${D}${systemd_unitdir}/system 46 install -d ${D}${systemd_unitdir}/system
44 install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system 47 install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
45} 48}
46 49
47inherit systemd
48 50
49RPROVIDES_${PN} += "${PN}-systemd" 51RPROVIDES_${PN} += "${PN}-systemd"
50RREPLACES_${PN} += "${PN}-systemd" 52RREPLACES_${PN} += "${PN}-systemd"
51RCONFLICTS_${PN} += "${PN}-systemd" 53RCONFLICTS_${PN} += "${PN}-systemd"
52SYSTEMD_SERVICE_${PN} = "ypbind.service"