diff options
Diffstat (limited to 'meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb')
-rw-r--r-- | meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb b/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb new file mode 100644 index 000000000..8b42fa7cb --- /dev/null +++ b/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb | |||
@@ -0,0 +1,91 @@ | |||
1 | DESCRIPTION = "netkit-rsh includes the rsh daemon and client." | ||
2 | SECTION = "networking" | ||
3 | HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit" | ||
4 | LICENSE = "BSD-4-Clause" | ||
5 | DEPENDS = "xinetd libgcrypt" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://rsh/rsh.c;beginline=2;endline=3;md5=25737e9d21d9df251dd26b7dcbd8ee29" | ||
8 | |||
9 | SRC_URI = "${DEBIAN_MIRROR}/main/n/netkit-rsh/netkit-rsh_${PV}.orig.tar.gz;name=archive \ | ||
10 | ${DEBIAN_MIRROR}/main/n/netkit-rsh/netkit-rsh_${PV}-15.diff.gz;name=patch15 \ | ||
11 | file://rsh-redone_link_order_file.patch \ | ||
12 | file://no_pam_build_fix.patch \ | ||
13 | file://rexec.xinetd.netkit \ | ||
14 | file://rlogin.xinetd.netkit \ | ||
15 | file://rsh.xinetd.netkit \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[archive.md5sum] = "65f5f28e2fe22d9ad8b17bb9a10df096" | ||
19 | SRC_URI[archive.sha256sum] = "edcac7fa18015f0bc04e573f3f54ae3b638d71335df1ad7dae692779914ad669" | ||
20 | SRC_URI[patch15.md5sum] = "655efc0d541b03ca5de0ae506c805ea3" | ||
21 | SRC_URI[patch15.sha256sum] = "2bc071c438e8b0ed42a0bd2db2d8b681b27a1e9b1798694d9874733293bc2aa9" | ||
22 | |||
23 | inherit pkgconfig | ||
24 | |||
25 | CFLAGS += " -D_GNU_SOURCE -Wno-deprecated-declarations" | ||
26 | LDFLAGS += " -L${STAGING_LIBDIR} -lutil -lcrypt" | ||
27 | |||
28 | PACKAGECONFIG ??= "" | ||
29 | PACKAGECONFIG += " ${@bb.utils.contains("DISTRO_FEATURES", "pam", "pam", "", d)}" | ||
30 | PACKAGECONFIG[pam] = " , --without-pam, libpam, libpam" | ||
31 | |||
32 | do_configure () { | ||
33 | ./configure --prefix=${prefix} | ||
34 | echo "INSTALLROOT=${D}" > MCONFIG | ||
35 | |||
36 | if [ "${@base_contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then | ||
37 | echo "USE_PAM=1" >> MCONFIG | ||
38 | fi | ||
39 | |||
40 | # didn't want to patch these next changes | ||
41 | sed -i 's/netkit-//' ${S}/rsh/pathnames.h | ||
42 | sed -i 's/netkit-//' ${S}/rcp/pathnames.h | ||
43 | } | ||
44 | |||
45 | do_install () { | ||
46 | install -d ${D}${bindir} | ||
47 | install -d ${D}${sbindir} | ||
48 | install -d ${D}${mandir}/man1 | ||
49 | install -d ${D}${mandir}/man8 | ||
50 | install -d ${D}${sysconfdir}/xinetd.d | ||
51 | |||
52 | oe_runmake 'INSTALLROOT=${D}' 'BINMODE=0755' \ | ||
53 | 'DAEMONMODE=0755' 'MANMODE=0644' \ | ||
54 | 'SUIDMODE=4755' \ | ||
55 | 'BINDIR=${bindir}' 'SBINDIR=${sbindir}' \ | ||
56 | 'MANDIR=${mandir}' install | ||
57 | |||
58 | if [ "${@base_contains('PACKAGECONFIG', 'pam', 'pam', '', d)}" != "" ]; then | ||
59 | install -d ${D}${sysconfdir}/pam.d | ||
60 | install -m 0644 debian/hosts.equiv ${D}/${sysconfdir} | ||
61 | install -m 0644 debian/pam.d/rexec ${D}/${sysconfdir}/pam.d | ||
62 | install -m 0644 debian/pam.d/rlogin ${D}/${sysconfdir}/pam.d | ||
63 | install -m 0644 debian/pam.d/rsh ${D}/${sysconfdir}/pam.d | ||
64 | fi | ||
65 | cp ${WORKDIR}/rexec.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rexec | ||
66 | cp ${WORKDIR}/rlogin.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rlogin | ||
67 | cp ${WORKDIR}/rsh.xinetd.netkit ${D}/${sysconfdir}/xinetd.d/rsh | ||
68 | } | ||
69 | |||
70 | PACKAGES = "${PN}-client ${PN}-server ${PN}-doc ${BPN}-dbg" | ||
71 | |||
72 | FILES_${PN}-client = "${bindir}/*" | ||
73 | FILES_${PN}-server = "${sbindir}/* ${sysconfdir}" | ||
74 | FILES_${PN}-doc = "${mandir}" | ||
75 | FILES_${PN}-dbg = "${prefix}/src/debug \ | ||
76 | ${sbindir}/.debug ${bindir}/.debug" | ||
77 | |||
78 | ALTERNATIVE_PRIORITY = "80" | ||
79 | ALTERNATIVE_${PN}-client = "rcp rexec rlogin rsh" | ||
80 | ALTERNATIVE_${PN}-server = "rshd rexecd rlogind" | ||
81 | ALTERNATIVE_LINK_NAME[server] = "${bindir}/rshd" | ||
82 | ALTERNATIVE_TARGET[rshd] = "${sbindir}/in.rshd" | ||
83 | ALTERNATIVE_LINK_NAME[rexecd] = "${bindir}/rexecd" | ||
84 | ALTERNATIVE_TARGET[rexecd] = "${sbindir}/in.rexecd" | ||
85 | ALTERNATIVE_LINK_NAME[rlogind] = "${bindir}/rlogind" | ||
86 | ALTERNATIVE_TARGET[rlogind] = "${sbindir}/in.rlogind" | ||
87 | |||
88 | RCONFLICTS_${PN}-client += "inetutils-rshd" | ||
89 | RPROVIDES_${PN}-rshd = "rshd" | ||
90 | |||
91 | RDEPENDS_${PN} = "xinetd" | ||